MCPcopy Index your code

hub / github.com/amalshaji/dbcooper / functions

Functions723 in github.com/amalshaji/dbcooper

↓ 185 callersMethodexecute_query
Execute query using the pooled connection
src-tauri/src/database/pool_manager.rs:420
↓ 148 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 29 callersFunctioncreate_test_driver
Helper function to create a test Redis driver
src-tauri/tests/redis_integration_tests.rs:14
↓ 29 callersFunctiontest_table_name
Generate a unique test table name to avoid conflicts
src-tauri/tests/postgres_integration_tests.rs:25
↓ 26 callersMethodget_table_data
Get table data using the pooled connection
src-tauri/src/database/pool_manager.rs:377
↓ 25 callersFunctioncreate_test_driver
Helper function to create a test PostgreSQL driver
src-tauri/tests/postgres_integration_tests.rs:12
↓ 24 callersFunctionunified_execute_query
( db_type: String, host: Option<String>, port: Option<i64>, database: Option<String>, user
src-tauri/src/commands/database.rs:342
↓ 22 callersFunctiondrop_table
Helper to clean up a test table
src-tauri/tests/postgres_integration_tests.rs:30
↓ 20 callersFunctioncreate_driver_with_table
Helper to create a driver and set up a test table
src-tauri/tests/sqlite_integration_tests.rs:23
↓ 20 callersFunctioncreate_test_pool
Create a test SQLite pool with the app schema Returns both pool and temp file (temp file must stay alive during test)
src-tauri/tests/app_data_tests.rs:14
↓ 19 callersFunctioncreate_test_driver
Helper function to create a test ClickHouse driver
src-tauri/tests/clickhouse_integration_tests.rs:12
↓ 17 callersMethodget_key_details
Get detailed information about a specific key
src-tauri/src/database/redis.rs:585
↓ 17 callersMethodhandle_connection_error
Check if error is a connection error and handle reset if needed
src-tauri/src/database/redis.rs:156
↓ 17 callersFunctiontest_table_name
Generate a unique test table name to avoid conflicts
src-tauri/tests/clickhouse_integration_tests.rs:26
↓ 16 callersMethodconnect
Explicitly connect (or reconnect) a connection
src-tauri/src/database/pool_manager.rs:228
↓ 16 callersFunctiongetShortcutKey
(key: string)
src/components/CommandPalette.tsx:55
↓ 16 callersFunctiontest_key
Generate a unique test key to avoid conflicts
src-tauri/tests/redis_integration_tests.rs:27
↓ 14 callersFunctiondrop_table
Helper to clean up a test table
src-tauri/tests/clickhouse_integration_tests.rs:31
↓ 12 callersMethodget_schema_overview
Get schema overview using the pooled connection
src-tauri/src/database/pool_manager.rs:429
↓ 12 callersMethodlist_tables
List tables using the pooled connection
src-tauri/src/database/pool_manager.rs:368
↓ 11 callersMethodexecute_query_json
Execute a query and return JSON results using raw HTTP
src-tauri/src/database/clickhouse.rs:57
↓ 11 callersFunctionformatFunctionSignature
( summary: Pick<FunctionSummary, "schema" | "name" | "identity_args">, includeSchema: boolean = true, )
src/types/tabTypes.ts:116
↓ 11 callersMethodget_connection_with_retry
Get connection with retry on failure
src-tauri/src/database/redis.rs:144
↓ 11 callersMethodget_table_structure
Get table structure using the pooled connection
src-tauri/src/database/pool_manager.rs:406
↓ 11 callersMethodset_key
Set a key value (for string types)
src-tauri/src/database/redis.rs:696
↓ 11 callersMethodtest_connection
(&self)
src-tauri/src/database/redis.rs:337
↓ 10 callersFunctionformat_sql_value
Format a JSON value for SQL insertion
src-tauri/src/commands/database.rs:825
↓ 10 callersFunctiontemp_sqlite_path
Helper to create a temporary SQLite file path
src-tauri/tests/unified_commands_tests.rs:16
↓ 10 callersFunctiontest_table_name
Helper to generate unique table name
src-tauri/tests/unified_commands_tests.rs:22
↓ 9 callersFunctionensure_connection
Ensure connection exists, create if not (with lock to prevent concurrent reconnects)
src-tauri/src/commands/pool.rs:155
↓ 9 callersFunctionget_redis_config_from_uuid
Retrieves Redis configuration and connection details from the database using the connection UUID. This helper function queries the SQLite database to
src-tauri/src/commands/database.rs:877
↓ 9 callersFunctionreconnect
Disconnect and retry connect (with lock)
src-tauri/src/commands/pool.rs:175
↓ 8 callersFunctioncreate_driver
Simple driver creation without SSH support (for backwards compatibility)
src-tauri/src/commands/database.rs:147
↓ 8 callersFunctioncreate_test_driver
Helper function to create a test SQLite driver with a temporary database
src-tauri/tests/sqlite_integration_tests.rs:14
↓ 7 callersMethodget_cached
Get a cached driver if it exists (without creating new connection)
src-tauri/src/database/pool_manager.rs:356
↓ 6 callersFunctionfetchConnections
()
src/pages/Connections.tsx:116
↓ 6 callersFunctiongetExportErrorMessage
( error: unknown, stage: "svg" | "dialog" | "write" | "reveal", )
src/components/SchemaVisualizer.tsx:775
↓ 6 callersMethodget_pool
(&self)
src-tauri/src/database/sqlite.rs:29
↓ 6 callersMethodget_pool_with_retry
(&self)
src-tauri/src/database/postgres.rs:124
↓ 5 callersMethodbuild_connection_info
(&self)
src-tauri/src/database/redis.rs:57
↓ 5 callersMethodbuild_connection_info_with_host
( &self, host: &str, port: i64, )
src-tauri/src/database/redis.rs:61
↓ 5 callersFunctionbuild_connection_string
( host: &str, port: i64, database: &str, username: &str, password: &str, ssl: bool, )
src-tauri/src/commands/postgres.rs:11
↓ 5 callersFunctionformatBytes
(bytes: number)
src/components/UpdateChecker.tsx:23
↓ 5 callersFunctiongetPrimaryKeyRowKey
( row: Record<string, unknown>, columns: TableColumn[], )
src/pages/ConnectionDetails.tsx:212
↓ 5 callersFunctionget_row_count
Helper to get row count from a table
src-tauri/tests/sqlite_integration_tests.rs:47
↓ 5 callersFunctionuseSidebar
()
src/components/ui/sidebar.tsx:47
↓ 4 callersMethoddelete_key
Delete a key
src-tauri/src/database/redis.rs:684
↓ 4 callersFunctiondriver
(config: RedisConfig)
src-tauri/src/database/redis.rs:247
↓ 4 callersMethodget_function_definition
Get a function definition using the pooled connection
src-tauri/src/database/pool_manager.rs:442
↓ 4 callersFunctionisUuidColumn
(column: TableColumn)
src/lib/columnUtils.ts:6
↓ 4 callersMethodsearch_keys
Search for keys matching a pattern using the Redis `SCAN` command (non-blocking). This performs an incremental scan of the keyspace: - The scan start
src-tauri/src/database/redis.rs:505
↓ 4 callersMethodset_list_key
Set a list key value. This method creates or replaces a Redis list key with the provided values. The values array must not be empty - empty arrays wi
src-tauri/src/database/redis.rs:729
↓ 4 callersMethodset_set_key
Set a set key value. This method creates or replaces a Redis set key with the provided values. The values array must not be empty - empty arrays will
src-tauri/src/database/redis.rs:777
↓ 4 callersFunctionstringifyCellValue
(value: unknown)
src/components/InlineEditableCell.tsx:21
↓ 4 callersFunctionvalidate_raw_sql_value
Validate that a raw SQL value is in the whitelist of allowed functions. This prevents SQL injection by only allowing known safe SQL functions. Returns
src-tauri/src/commands/database.rs:718
↓ 3 callersFunctioncheckForUpdates
(manual: boolean = false)
src/components/UpdateChecker.tsx:59
↓ 3 callersFunctioncreate_driver_with_ssh
Creates the appropriate database driver based on the db_type, with optional SSH tunnel
src-tauri/src/commands/database.rs:32
↓ 3 callersMethoddisconnect
Disconnect and remove a connection from the pool
src-tauri/src/database/pool_manager.rs:281
↓ 3 callersMethodget_pool
(&self)
src-tauri/src/database/postgres.rs:69
↓ 3 callersFunctionhandleRedisSearch
()
src/pages/ConnectionDetails.tsx:3238
↓ 3 callersFunctionisSqlFunction
(value: string)
src/lib/sqlFunctions.ts:108
↓ 3 callersFunctionis_identifier_char
(ch: char)
src-tauri/src/database/mod.rs:15
↓ 3 callersFunctionquery_returns_rows
(query: &str)
src-tauri/src/database/mod.rs:144
↓ 3 callersMethodset_hash_key
Set a hash key value. This method creates or replaces a Redis hash key with the provided field-value pairs. The fields map must not be empty - empty
src-tauri/src/database/redis.rs:825
↓ 3 callersMethodset_zset_key
Set a sorted set key value. This method creates or replaces a Redis sorted set (zset) key with the provided member-score pairs. The members array mus
src-tauri/src/database/redis.rs:881
↓ 3 callersFunctionstripTrailingSemicolon
(query: string)
src/pages/ConnectionDetails.tsx:152
↓ 3 callersFunctionunified_test_connection
( db_type: String, host: Option<String>, port: Option<i64>, database: Option<String>, user
src-tauri/src/commands/database.rs:202
↓ 3 callersMethodupdate_ttl
Update TTL for a key
src-tauri/src/database/redis.rs:919
↓ 3 callersFunctionuseTheme
()
src/contexts/ThemeContext.tsx:34
↓ 2 callersFunctionapplyThemeClass
(theme: Theme)
src/contexts/ThemeContext.tsx:19
↓ 2 callersMethodbuild_url
(&self)
src-tauri/src/database/clickhouse.rs:51
↓ 2 callersFunctioncommit
()
src/components/InlineEditableCell.tsx:101
↓ 2 callersFunctioncreateQueryTab
( query: string = "", savedQueryId: number | null = null, savedQueryName: string | null = null, )
src/types/tabTypes.ts:152
↓ 2 callersFunctioncreateTableDataTab
(tableName: string)
src/types/tabTypes.ts:124
↓ 2 callersFunctiondrop_function
Helper to clean up a test function
src-tauri/tests/clickhouse_integration_tests.rs:45
↓ 2 callersFunctiondrop_schema
Helper to clean up a test schema
src-tauri/tests/postgres_integration_tests.rs:37
↓ 2 callersFunctionformatQuerySuccessDetail
(affectedRows: number | null)
src/pages/ConnectionDetails.tsx:234
↓ 2 callersFunctiongetLayoutedElements
( tables: TableWithStructure[], showColumns: boolean, )
src/components/SchemaVisualizer.tsx:57
↓ 2 callersFunctiongetObjectCount
(objects: SchemaObjects)
src/components/connection-details/ObjectExplorer.tsx:336
↓ 2 callersFunctiongetRowFieldValues
( row: Record<string, unknown>, )
src/components/RowEditSheet.tsx:54
↓ 2 callersMethodget_connect_lock
Get or create a lock for a specific connection UUID
src-tauri/src/database/pool_manager.rs:87
↓ 2 callersMethodget_connection
Get or create a cached connection
src-tauri/src/database/redis.rs:116
↓ 2 callersFunctionget_connection_config
Helper to get or create connection config from database
src-tauri/src/commands/pool.rs:109
↓ 2 callersFunctionhandleDeleteClick
(connection: Connection)
src/pages/Connections.tsx:163
↓ 2 callersFunctionhandleDeleteQuery
(query: SavedQuery)
src/pages/ConnectionDetails.tsx:1551
↓ 2 callersFunctionhandleDuplicateConnection
(connection: Connection)
src/pages/Connections.tsx:186
↓ 2 callersFunctionhandleEditConnection
(connection: Connection)
src/pages/Connections.tsx:153
↓ 2 callersFunctionhandleExportConnection
(connection: Connection)
src/pages/Connections.tsx:217
↓ 2 callersFunctionhandleUpdateHashField
(index: number, field: "key" | "value", value: string)
src/components/RedisKeySheet.tsx:168
↓ 2 callersFunctionhandleUpdateZsetMember
( index: number, field: "member" | "score", value: string | number, )
src/components/RedisKeySheet.tsx:195
↓ 2 callersFunctioninsert_table_row
( db_type: String, host: Option<String>, port: Option<i64>, database: Option<String>, user
src-tauri/src/commands/database.rs:586
↓ 2 callersFunctionisAutoIncrementColumn
(column: TableColumn)
src/components/RowInsertSheet.tsx:40
↓ 2 callersFunctionisWrappableQuery
(query: string)
src/pages/ConnectionDetails.tsx:180
↓ 2 callersFunctionparseNumericValue
(value: string, columnType: string)
src/components/field-inputs/NumericFieldInput.tsx:12
↓ 2 callersFunctionparseStatements
(sql: string)
src/lib/sqlParser.ts:36
↓ 2 callersMethodquery_error_result
( &self, error: sqlx::Error, start_time: std::time::Instant, )
src-tauri/src/database/postgres.rs:96
↓ 2 callersFunctionrenderEmptyState
()
src/pages/ConnectionDetails.tsx:3224
↓ 2 callersFunctionreset
()
src/components/InlineEditableCell.tsx:128
↓ 2 callersMethodreset_pool
(&self)
src-tauri/src/database/postgres.rs:88
↓ 2 callersFunctionresolveSystemTheme
()
src/contexts/ThemeContext.tsx:13
next →1–100 of 723, ranked by callers