Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/amalshaji/dbcooper
/ functions
Functions
723 in github.com/amalshaji/dbcooper
⨍
Functions
723
◇
Types & classes
140
↓ 185 callers
Method
execute_query
Execute query using the pooled connection
src-tauri/src/database/pool_manager.rs:420
↓ 148 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 29 callers
Function
create_test_driver
Helper function to create a test Redis driver
src-tauri/tests/redis_integration_tests.rs:14
↓ 29 callers
Function
test_table_name
Generate a unique test table name to avoid conflicts
src-tauri/tests/postgres_integration_tests.rs:25
↓ 26 callers
Method
get_table_data
Get table data using the pooled connection
src-tauri/src/database/pool_manager.rs:377
↓ 25 callers
Function
create_test_driver
Helper function to create a test PostgreSQL driver
src-tauri/tests/postgres_integration_tests.rs:12
↓ 24 callers
Function
unified_execute_query
( db_type: String, host: Option<String>, port: Option<i64>, database: Option<String>, user
src-tauri/src/commands/database.rs:342
↓ 22 callers
Function
drop_table
Helper to clean up a test table
src-tauri/tests/postgres_integration_tests.rs:30
↓ 20 callers
Function
create_driver_with_table
Helper to create a driver and set up a test table
src-tauri/tests/sqlite_integration_tests.rs:23
↓ 20 callers
Function
create_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 callers
Function
create_test_driver
Helper function to create a test ClickHouse driver
src-tauri/tests/clickhouse_integration_tests.rs:12
↓ 17 callers
Method
get_key_details
Get detailed information about a specific key
src-tauri/src/database/redis.rs:585
↓ 17 callers
Method
handle_connection_error
Check if error is a connection error and handle reset if needed
src-tauri/src/database/redis.rs:156
↓ 17 callers
Function
test_table_name
Generate a unique test table name to avoid conflicts
src-tauri/tests/clickhouse_integration_tests.rs:26
↓ 16 callers
Method
connect
Explicitly connect (or reconnect) a connection
src-tauri/src/database/pool_manager.rs:228
↓ 16 callers
Function
getShortcutKey
(key: string)
src/components/CommandPalette.tsx:55
↓ 16 callers
Function
test_key
Generate a unique test key to avoid conflicts
src-tauri/tests/redis_integration_tests.rs:27
↓ 14 callers
Function
drop_table
Helper to clean up a test table
src-tauri/tests/clickhouse_integration_tests.rs:31
↓ 12 callers
Method
get_schema_overview
Get schema overview using the pooled connection
src-tauri/src/database/pool_manager.rs:429
↓ 12 callers
Method
list_tables
List tables using the pooled connection
src-tauri/src/database/pool_manager.rs:368
↓ 11 callers
Method
execute_query_json
Execute a query and return JSON results using raw HTTP
src-tauri/src/database/clickhouse.rs:57
↓ 11 callers
Function
formatFunctionSignature
( summary: Pick<FunctionSummary, "schema" | "name" | "identity_args">, includeSchema: boolean = true, )
src/types/tabTypes.ts:116
↓ 11 callers
Method
get_connection_with_retry
Get connection with retry on failure
src-tauri/src/database/redis.rs:144
↓ 11 callers
Method
get_table_structure
Get table structure using the pooled connection
src-tauri/src/database/pool_manager.rs:406
↓ 11 callers
Method
set_key
Set a key value (for string types)
src-tauri/src/database/redis.rs:696
↓ 11 callers
Method
test_connection
(&self)
src-tauri/src/database/redis.rs:337
↓ 10 callers
Function
format_sql_value
Format a JSON value for SQL insertion
src-tauri/src/commands/database.rs:825
↓ 10 callers
Function
temp_sqlite_path
Helper to create a temporary SQLite file path
src-tauri/tests/unified_commands_tests.rs:16
↓ 10 callers
Function
test_table_name
Helper to generate unique table name
src-tauri/tests/unified_commands_tests.rs:22
↓ 9 callers
Function
ensure_connection
Ensure connection exists, create if not (with lock to prevent concurrent reconnects)
src-tauri/src/commands/pool.rs:155
↓ 9 callers
Function
get_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 callers
Function
reconnect
Disconnect and retry connect (with lock)
src-tauri/src/commands/pool.rs:175
↓ 8 callers
Function
create_driver
Simple driver creation without SSH support (for backwards compatibility)
src-tauri/src/commands/database.rs:147
↓ 8 callers
Function
create_test_driver
Helper function to create a test SQLite driver with a temporary database
src-tauri/tests/sqlite_integration_tests.rs:14
↓ 7 callers
Method
get_cached
Get a cached driver if it exists (without creating new connection)
src-tauri/src/database/pool_manager.rs:356
↓ 6 callers
Function
fetchConnections
()
src/pages/Connections.tsx:116
↓ 6 callers
Function
getExportErrorMessage
( error: unknown, stage: "svg" | "dialog" | "write" | "reveal", )
src/components/SchemaVisualizer.tsx:775
↓ 6 callers
Method
get_pool
(&self)
src-tauri/src/database/sqlite.rs:29
↓ 6 callers
Method
get_pool_with_retry
(&self)
src-tauri/src/database/postgres.rs:124
↓ 5 callers
Method
build_connection_info
(&self)
src-tauri/src/database/redis.rs:57
↓ 5 callers
Method
build_connection_info_with_host
( &self, host: &str, port: i64, )
src-tauri/src/database/redis.rs:61
↓ 5 callers
Function
build_connection_string
( host: &str, port: i64, database: &str, username: &str, password: &str, ssl: bool, )
src-tauri/src/commands/postgres.rs:11
↓ 5 callers
Function
formatBytes
(bytes: number)
src/components/UpdateChecker.tsx:23
↓ 5 callers
Function
getPrimaryKeyRowKey
( row: Record<string, unknown>, columns: TableColumn[], )
src/pages/ConnectionDetails.tsx:212
↓ 5 callers
Function
get_row_count
Helper to get row count from a table
src-tauri/tests/sqlite_integration_tests.rs:47
↓ 5 callers
Function
useSidebar
()
src/components/ui/sidebar.tsx:47
↓ 4 callers
Method
delete_key
Delete a key
src-tauri/src/database/redis.rs:684
↓ 4 callers
Function
driver
(config: RedisConfig)
src-tauri/src/database/redis.rs:247
↓ 4 callers
Method
get_function_definition
Get a function definition using the pooled connection
src-tauri/src/database/pool_manager.rs:442
↓ 4 callers
Function
isUuidColumn
(column: TableColumn)
src/lib/columnUtils.ts:6
↓ 4 callers
Method
search_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 callers
Method
set_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 callers
Method
set_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 callers
Function
stringifyCellValue
(value: unknown)
src/components/InlineEditableCell.tsx:21
↓ 4 callers
Function
validate_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 callers
Function
checkForUpdates
(manual: boolean = false)
src/components/UpdateChecker.tsx:59
↓ 3 callers
Function
create_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 callers
Method
disconnect
Disconnect and remove a connection from the pool
src-tauri/src/database/pool_manager.rs:281
↓ 3 callers
Method
get_pool
(&self)
src-tauri/src/database/postgres.rs:69
↓ 3 callers
Function
handleRedisSearch
()
src/pages/ConnectionDetails.tsx:3238
↓ 3 callers
Function
isSqlFunction
(value: string)
src/lib/sqlFunctions.ts:108
↓ 3 callers
Function
is_identifier_char
(ch: char)
src-tauri/src/database/mod.rs:15
↓ 3 callers
Function
query_returns_rows
(query: &str)
src-tauri/src/database/mod.rs:144
↓ 3 callers
Method
set_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 callers
Method
set_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 callers
Function
stripTrailingSemicolon
(query: string)
src/pages/ConnectionDetails.tsx:152
↓ 3 callers
Function
unified_test_connection
( db_type: String, host: Option<String>, port: Option<i64>, database: Option<String>, user
src-tauri/src/commands/database.rs:202
↓ 3 callers
Method
update_ttl
Update TTL for a key
src-tauri/src/database/redis.rs:919
↓ 3 callers
Function
useTheme
()
src/contexts/ThemeContext.tsx:34
↓ 2 callers
Function
applyThemeClass
(theme: Theme)
src/contexts/ThemeContext.tsx:19
↓ 2 callers
Method
build_url
(&self)
src-tauri/src/database/clickhouse.rs:51
↓ 2 callers
Function
commit
()
src/components/InlineEditableCell.tsx:101
↓ 2 callers
Function
createQueryTab
( query: string = "", savedQueryId: number | null = null, savedQueryName: string | null = null, )
src/types/tabTypes.ts:152
↓ 2 callers
Function
createTableDataTab
(tableName: string)
src/types/tabTypes.ts:124
↓ 2 callers
Function
drop_function
Helper to clean up a test function
src-tauri/tests/clickhouse_integration_tests.rs:45
↓ 2 callers
Function
drop_schema
Helper to clean up a test schema
src-tauri/tests/postgres_integration_tests.rs:37
↓ 2 callers
Function
formatQuerySuccessDetail
(affectedRows: number | null)
src/pages/ConnectionDetails.tsx:234
↓ 2 callers
Function
getLayoutedElements
( tables: TableWithStructure[], showColumns: boolean, )
src/components/SchemaVisualizer.tsx:57
↓ 2 callers
Function
getObjectCount
(objects: SchemaObjects)
src/components/connection-details/ObjectExplorer.tsx:336
↓ 2 callers
Function
getRowFieldValues
( row: Record<string, unknown>, )
src/components/RowEditSheet.tsx:54
↓ 2 callers
Method
get_connect_lock
Get or create a lock for a specific connection UUID
src-tauri/src/database/pool_manager.rs:87
↓ 2 callers
Method
get_connection
Get or create a cached connection
src-tauri/src/database/redis.rs:116
↓ 2 callers
Function
get_connection_config
Helper to get or create connection config from database
src-tauri/src/commands/pool.rs:109
↓ 2 callers
Function
handleDeleteClick
(connection: Connection)
src/pages/Connections.tsx:163
↓ 2 callers
Function
handleDeleteQuery
(query: SavedQuery)
src/pages/ConnectionDetails.tsx:1551
↓ 2 callers
Function
handleDuplicateConnection
(connection: Connection)
src/pages/Connections.tsx:186
↓ 2 callers
Function
handleEditConnection
(connection: Connection)
src/pages/Connections.tsx:153
↓ 2 callers
Function
handleExportConnection
(connection: Connection)
src/pages/Connections.tsx:217
↓ 2 callers
Function
handleUpdateHashField
(index: number, field: "key" | "value", value: string)
src/components/RedisKeySheet.tsx:168
↓ 2 callers
Function
handleUpdateZsetMember
( index: number, field: "member" | "score", value: string | number, )
src/components/RedisKeySheet.tsx:195
↓ 2 callers
Function
insert_table_row
( db_type: String, host: Option<String>, port: Option<i64>, database: Option<String>, user
src-tauri/src/commands/database.rs:586
↓ 2 callers
Function
isAutoIncrementColumn
(column: TableColumn)
src/components/RowInsertSheet.tsx:40
↓ 2 callers
Function
isWrappableQuery
(query: string)
src/pages/ConnectionDetails.tsx:180
↓ 2 callers
Function
parseNumericValue
(value: string, columnType: string)
src/components/field-inputs/NumericFieldInput.tsx:12
↓ 2 callers
Function
parseStatements
(sql: string)
src/lib/sqlParser.ts:36
↓ 2 callers
Method
query_error_result
( &self, error: sqlx::Error, start_time: std::time::Instant, )
src-tauri/src/database/postgres.rs:96
↓ 2 callers
Function
renderEmptyState
()
src/pages/ConnectionDetails.tsx:3224
↓ 2 callers
Function
reset
()
src/components/InlineEditableCell.tsx:128
↓ 2 callers
Method
reset_pool
(&self)
src-tauri/src/database/postgres.rs:88
↓ 2 callers
Function
resolveSystemTheme
()
src/contexts/ThemeContext.tsx:13
next →
1–100 of 723, ranked by callers