Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytebase/dbhub
/ functions
Functions
717 in github.com/bytebase/dbhub
⨍
Functions
717
◇
Types & classes
137
↓ 1 callers
Method
executeReadOnly
* Execute a query inside a transaction that always rolls back, preventing * any modifications from persisting. SQL Server has no native READ ONLY
src/connectors/sqlserver/index.ts:718
↓ 1 callers
Function
expandTilde
* Expand tilde (~) in file paths to home directory
src/utils/ssh-config-parser.ts:31
↓ 1 callers
Method
explainQuery
* Return the estimated execution plan for a query using SHOWPLAN_XML. * * SHOWPLAN_XML compiles the statement and returns its plan without execu
src/connectors/sqlserver/index.ts:818
↓ 1 callers
Method
extractLimitValue
* Extract existing LIMIT value from SQL if present. * Strips comments and string literals first to avoid false positives.
src/utils/sql-row-limiter.ts:44
↓ 1 callers
Function
extractRowsFromMultiStatement
(results: any)
src/utils/multi-statement-result-parser.ts:53
↓ 1 callers
Method
extractTopValue
* Extract existing TOP value from SQL if present (SQL Server). * Strips comments and string literals first to avoid false positives.
src/utils/sql-row-limiter.ts:58
↓ 1 callers
Function
fetchRequests
(sourceId?: string)
frontend/src/api/requests.ts:6
↓ 1 callers
Function
findDefaultSSHKey
* Find the first existing SSH key from default locations. * Resolves symlinks and returns the real path if found.
src/utils/ssh-config-parser.ts:78
↓ 1 callers
Function
fixtureTomlPath
(fixtureName: string)
src/__fixtures__/helpers.ts:30
↓ 1 callers
Method
forEachSearchParam
(callback: (value: string, key: string) => void)
src/utils/safe-url.ts:22
↓ 1 callers
Function
formatDate
(timestamp: string)
frontend/src/components/views/RequestView.tsx:21
↓ 1 callers
Function
formatExecutionTime
(ms: number)
frontend/src/components/tool/ResultsTable.tsx:15
↓ 1 callers
Function
formatTime
(timestamp: string)
frontend/src/components/views/RequestView.tsx:12
↓ 1 callers
Function
formatTimestamp
(date: Date)
frontend/src/components/tool/ResultsTabs.tsx:16
↓ 1 callers
Method
forwardTo
* Forward a connection through an SSH client to a target host.
src/utils/ssh-tunnel.ts:238
↓ 1 callers
Function
generateBanner
(version: string, modes: string[] = [])
src/server.ts:36
↓ 1 callers
Function
generateStartupTable
(sources: SourceDisplayInfo[])
src/utils/startup-table.ts:95
↓ 1 callers
Method
getAllSampleDSNs
* Get sample DSNs for all available connectors
src/connectors/manager.ts:368
↓ 1 callers
Method
getAllTools
* Get all unique tools across all sources (for tools/list response) * Returns the union of all enabled tools
src/tools/registry.ts:227
↓ 1 callers
Method
getAuthToken
()
src/utils/__tests__/aws-rds-signer.test.ts:15
↓ 1 callers
Function
getClientIdentifier
(extra: any)
src/utils/client-identifier.ts:13
↓ 1 callers
Method
getConnector
* Get a connector by ID
src/connectors/interface.ts:272
↓ 1 callers
Method
getConnectorForDSN
* Get connector for a DSN string * Tries to find a connector that can handle the given DSN format
src/connectors/interface.ts:280
↓ 1 callers
Method
getCurrentSchema
()
src/connectors/mariadb/index.ts:575
↓ 1 callers
Method
getCurrentSchema
()
src/connectors/mysql/index.ts:588
↓ 1 callers
Method
getDefaultSchema
* Get the schema that searches should default to when no schema is specified. * * Returns a single schema name when the connection is scoped to
src/connectors/interface.ts:170
↓ 1 callers
Method
getId
Get the source ID for this connector instance (set by ConnectorManager)
src/connectors/interface.ts:142
↓ 1 callers
Method
getSampleDSN
()
src/connectors/sqlserver/index.ts:150
↓ 1 callers
Method
getSampleDSN
()
src/connectors/postgres/index.ts:131
↓ 1 callers
Method
getSampleDSN
()
src/connectors/mariadb/index.ts:99
↓ 1 callers
Method
getSampleDSN
()
src/connectors/mysql/index.ts:107
↓ 1 callers
Method
getSampleDSN
()
src/connectors/sqlite/index.ts:84
↓ 1 callers
Function
getSqliteInMemorySetupSql
()
src/config/demo-loader.ts:59
↓ 1 callers
Method
getTableComment
* Get the comment/description for a table. * Optional — connectors that don't support table comments (e.g. SQLite) may omit this. * @returns The
src/connectors/interface.ts:250
↓ 1 callers
Method
getTableRowCount
* Get estimated row count for a table using database statistics. * Uses catalog statistics (e.g. pg_class.reltuples) instead of COUNT(*) for perfor
src/connectors/interface.ts:243
↓ 1 callers
Function
handleChange
(name: string, value: any)
frontend/src/components/tool/ParameterForm.tsx:13
↓ 1 callers
Method
hasParameterizedLimit
* Check if a LIMIT clause uses a parameter placeholder (not a literal number). * Strips comments and string literals first to avoid false positives
src/utils/sql-row-limiter.ts:109
↓ 1 callers
Function
highlightText
(text: string, searchTerm: string)
frontend/src/components/tool/ResultsTable.tsx:22
↓ 1 callers
Method
isValidDSN
(dsn: string)
src/connectors/sqlserver/index.ts:154
↓ 1 callers
Method
isValidDSN
(dsn: string)
src/connectors/postgres/index.ts:135
↓ 1 callers
Method
isValidDSN
(dsn: string)
src/connectors/mariadb/index.ts:103
↓ 1 callers
Method
isValidDSN
(dsn: string)
src/connectors/mysql/index.ts:111
↓ 1 callers
Method
isValidDSN
(dsn: string)
src/connectors/sqlite/index.ts:88
↓ 1 callers
Function
loadEnvFiles
()
src/config/env.ts:81
↓ 1 callers
Function
main
()
src/server.ts:55
↓ 1 callers
Function
mergeSourceFieldsIntoDSN
* Merge "dual-home" fields (those that can be expressed either as a TOML field * or as a DSN query parameter) into an existing DSN. Only appends a pa
src/config/toml-loader.ts:760
↓ 1 callers
Function
obfuscateSSHConfig
(config: SSHTunnelConfig)
src/utils/dsn-obfuscate.ts:148
↓ 1 callers
Function
parseHostAndDatabase
* Parse host and database from source config
src/utils/startup-table.ts:35
↓ 1 callers
Function
parseUserAgent
(ua: string)
frontend/src/components/views/RequestView.tsx:36
↓ 1 callers
Function
processSourceConfigs
* Process source configurations (expand paths, populate fields from DSN)
src/config/toml-loader.ts:646
↓ 1 callers
Function
protocolToConnectorType
* Maps a protocol string to a ConnectorType
src/utils/dsn-obfuscate.ts:187
↓ 1 callers
Method
queryOne
Run an introspection query and return a single row (or undefined).
src/connectors/sqlite/index.ts:160
↓ 1 callers
Method
refreshIamSourceConnection
(source: SourceConfig)
src/connectors/manager.ts:487
↓ 1 callers
Function
registerCustomTool
* Register a custom tool
src/tools/index.ts:92
↓ 1 callers
Function
registerExecuteSqlTool
* Register execute_sql tool for a source
src/tools/index.ts:47
↓ 1 callers
Method
registerLazySource
* Register a lazy source without establishing connection * Connection will be established on first use via ensureConnected()
src/connectors/manager.ts:71
↓ 1 callers
Function
registerSearchObjectsTool
* Register search_objects tool for a source
src/tools/index.ts:66
↓ 1 callers
Function
registerTools
(server: McpServer)
src/tools/index.ts:17
↓ 1 callers
Method
render
()
frontend/src/components/ErrorBoundary.tsx:29
↓ 1 callers
Function
resolveAllowedHosts
()
src/config/env.ts:433
↓ 1 callers
Function
resolvePort
()
src/config/env.ts:316
↓ 1 callers
Function
resolveSourceConfigs
()
src/config/env.ts:656
↓ 1 callers
Function
resolveTransport
()
src/config/env.ts:288
↓ 1 callers
Function
scanDollarQuotedBlock
(sql: string, i: number)
src/utils/sql-parser.ts:104
↓ 1 callers
Function
scanMultiLineCommentMySQL
* MySQL/MariaDB-specific multi-line comment scanner that preserves conditional comments. * MySQL conditional comments (`/*!nnnnn ... *\/`) and MariaD
src/utils/sql-parser.ts:59
↓ 1 callers
Function
scanNestedMultiLineComment
(sql: string, i: number)
src/utils/sql-parser.ts:67
↓ 1 callers
Function
scanSingleLineCommentMySQL
* MySQL/MariaDB single-line comment scanner. Unlike ANSI SQL, MySQL and MariaDB * only begin a `--` comment when the two dashes are followed by white
src/utils/sql-parser.ts:31
↓ 1 callers
Method
scheduleIamRefresh
(source: SourceConfig)
src/connectors/manager.ts:450
↓ 1 callers
Function
searchColumns
* Search for columns
src/tools/search-objects.ts:382
↓ 1 callers
Function
searchIndexes
* Search for indexes
src/tools/search-objects.ts:540
↓ 1 callers
Function
searchSchemas
* Search for schemas
src/tools/search-objects.ts:141
↓ 1 callers
Function
searchTables
* Search for tables
src/tools/search-objects.ts:179
↓ 1 callers
Function
searchViews
* Search for views
src/tools/search-objects.ts:284
↓ 1 callers
Method
setupTestData
(connector: Connector)
src/connectors/__tests__/mysql.integration.test.ts:94
↓ 1 callers
Function
suppressSqliteExperimentalWarning
()
src/connectors/sqlite/suppress-experimental-warning.ts:17
↓ 1 callers
Function
tokenHasExplicitPort
* Whether a ProxyJump token carries an explicit `:port` (vs. relying on the * default). Handles an optional `user@` prefix and bracketed IPv6 (`[host
src/utils/ssh-config-parser.ts:421
↓ 1 callers
Function
tunnelMessage
(sourceId: string)
src/utils/error-classifier.ts:49
↓ 1 callers
Function
unreachableMessage
(sourceId: string)
src/utils/error-classifier.ts:39
↓ 1 callers
Function
useIsMobile
()
frontend/src/hooks/use-mobile.ts:5
↓ 1 callers
Method
validateCustomTool
* Validate a custom tool configuration
src/tools/registry.ts:86
↓ 1 callers
Function
validateDSNFieldConflicts
* Reject standalone fields that contradict a DSN. * * A DSN already encodes the connection identity (type/host/port/database/user/ * password) and
src/config/toml-loader.ts:272
↓ 1 callers
Method
validateParameter
* Validate a custom tool parameter definition
src/tools/registry.ts:32
↓ 1 callers
Function
validateSourceConfig
* Validate a single source configuration
src/config/toml-loader.ts:373
↓ 1 callers
Function
validateTomlConfig
* Validate the structure of the parsed TOML configuration
src/config/toml-loader.ts:85
↓ 1 callers
Function
validateToolsConfig
* Validate tools configuration
src/config/toml-loader.ts:143
↓ 1 callers
Function
zodToParameters
(schema: Record<string, z.ZodType<any>>)
src/utils/tool-metadata.ts:74
Function
Accordion
(props: AccordionPrimitive.Root.Props)
frontend/src/components/ui/accordion.tsx:8
Function
AccordionItem
({ className, ...props }: AccordionPrimitive.Item.Props)
frontend/src/components/ui/accordion.tsx:12
Function
AccordionPanel
({ className, children, ...props }: AccordionPrimitive.Panel.Props)
frontend/src/components/ui/accordion.tsx:44
Function
AccordionTrigger
({ className, children, ...props }: AccordionPrimitive.Trigger.Props)
frontend/src/components/ui/accordion.tsx:22
Function
ActivityIcon
({ className = 'w-5 h-5' }: ActivityIconProps)
frontend/src/components/icons/ActivityIcon.tsx:5
Function
Alert
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
frontend/src/components/ui/alert.tsx:26
Function
AlertAction
({ className, ...props }: React.ComponentProps<"div">)
frontend/src/components/ui/alert.tsx:67
Function
AlertDescription
({ className, ...props }: React.ComponentProps<"div">)
frontend/src/components/ui/alert.tsx:51
Function
AlertDialogBackdrop
({ className, ...props }: AlertDialogPrimitive.Backdrop.Props)
frontend/src/components/ui/alert-dialog.tsx:17
Function
AlertDialogClose
(props: AlertDialogPrimitive.Close.Props)
frontend/src/components/ui/alert-dialog.tsx:133
Function
AlertDialogDescription
({ className, ...props }: AlertDialogPrimitive.Description.Props)
frontend/src/components/ui/alert-dialog.tsx:120
Function
AlertDialogFooter
({ className, variant = "default", ...props }: React.ComponentProps<"div"> & { variant?: "default" | "
frontend/src/components/ui/alert-dialog.tsx:86
Function
AlertDialogHeader
({ className, ...props }: React.ComponentProps<"div">)
frontend/src/components/ui/alert-dialog.tsx:70
Function
AlertDialogPopup
({ className, ...props }: AlertDialogPrimitive.Popup.Props)
frontend/src/components/ui/alert-dialog.tsx:49
← previous
next →
201–300 of 717, ranked by callers