MCPcopy Create free account

hub / github.com/bytebase/dbhub / functions

Functions717 in github.com/bytebase/dbhub

↓ 1 callersMethodexecuteReadOnly
* 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 callersFunctionexpandTilde
* Expand tilde (~) in file paths to home directory
src/utils/ssh-config-parser.ts:31
↓ 1 callersMethodexplainQuery
* 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 callersMethodextractLimitValue
* 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 callersFunctionextractRowsFromMultiStatement
(results: any)
src/utils/multi-statement-result-parser.ts:53
↓ 1 callersMethodextractTopValue
* 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 callersFunctionfetchRequests
(sourceId?: string)
frontend/src/api/requests.ts:6
↓ 1 callersFunctionfindDefaultSSHKey
* 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 callersFunctionfixtureTomlPath
(fixtureName: string)
src/__fixtures__/helpers.ts:30
↓ 1 callersMethodforEachSearchParam
(callback: (value: string, key: string) => void)
src/utils/safe-url.ts:22
↓ 1 callersFunctionformatDate
(timestamp: string)
frontend/src/components/views/RequestView.tsx:21
↓ 1 callersFunctionformatExecutionTime
(ms: number)
frontend/src/components/tool/ResultsTable.tsx:15
↓ 1 callersFunctionformatTime
(timestamp: string)
frontend/src/components/views/RequestView.tsx:12
↓ 1 callersFunctionformatTimestamp
(date: Date)
frontend/src/components/tool/ResultsTabs.tsx:16
↓ 1 callersMethodforwardTo
* Forward a connection through an SSH client to a target host.
src/utils/ssh-tunnel.ts:238
↓ 1 callersFunctiongenerateBanner
(version: string, modes: string[] = [])
src/server.ts:36
↓ 1 callersFunctiongenerateStartupTable
(sources: SourceDisplayInfo[])
src/utils/startup-table.ts:95
↓ 1 callersMethodgetAllSampleDSNs
* Get sample DSNs for all available connectors
src/connectors/manager.ts:368
↓ 1 callersMethodgetAllTools
* Get all unique tools across all sources (for tools/list response) * Returns the union of all enabled tools
src/tools/registry.ts:227
↓ 1 callersMethodgetAuthToken
()
src/utils/__tests__/aws-rds-signer.test.ts:15
↓ 1 callersFunctiongetClientIdentifier
(extra: any)
src/utils/client-identifier.ts:13
↓ 1 callersMethodgetConnector
* Get a connector by ID
src/connectors/interface.ts:272
↓ 1 callersMethodgetConnectorForDSN
* Get connector for a DSN string * Tries to find a connector that can handle the given DSN format
src/connectors/interface.ts:280
↓ 1 callersMethodgetCurrentSchema
()
src/connectors/mariadb/index.ts:575
↓ 1 callersMethodgetCurrentSchema
()
src/connectors/mysql/index.ts:588
↓ 1 callersMethodgetDefaultSchema
* 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 callersMethodgetId
Get the source ID for this connector instance (set by ConnectorManager)
src/connectors/interface.ts:142
↓ 1 callersMethodgetSampleDSN
()
src/connectors/sqlserver/index.ts:150
↓ 1 callersMethodgetSampleDSN
()
src/connectors/postgres/index.ts:131
↓ 1 callersMethodgetSampleDSN
()
src/connectors/mariadb/index.ts:99
↓ 1 callersMethodgetSampleDSN
()
src/connectors/mysql/index.ts:107
↓ 1 callersMethodgetSampleDSN
()
src/connectors/sqlite/index.ts:84
↓ 1 callersFunctiongetSqliteInMemorySetupSql
()
src/config/demo-loader.ts:59
↓ 1 callersMethodgetTableComment
* 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 callersMethodgetTableRowCount
* 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 callersFunctionhandleChange
(name: string, value: any)
frontend/src/components/tool/ParameterForm.tsx:13
↓ 1 callersMethodhasParameterizedLimit
* 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 callersFunctionhighlightText
(text: string, searchTerm: string)
frontend/src/components/tool/ResultsTable.tsx:22
↓ 1 callersMethodisValidDSN
(dsn: string)
src/connectors/sqlserver/index.ts:154
↓ 1 callersMethodisValidDSN
(dsn: string)
src/connectors/postgres/index.ts:135
↓ 1 callersMethodisValidDSN
(dsn: string)
src/connectors/mariadb/index.ts:103
↓ 1 callersMethodisValidDSN
(dsn: string)
src/connectors/mysql/index.ts:111
↓ 1 callersMethodisValidDSN
(dsn: string)
src/connectors/sqlite/index.ts:88
↓ 1 callersFunctionloadEnvFiles
()
src/config/env.ts:81
↓ 1 callersFunctionmain
()
src/server.ts:55
↓ 1 callersFunctionmergeSourceFieldsIntoDSN
* 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 callersFunctionobfuscateSSHConfig
(config: SSHTunnelConfig)
src/utils/dsn-obfuscate.ts:148
↓ 1 callersFunctionparseHostAndDatabase
* Parse host and database from source config
src/utils/startup-table.ts:35
↓ 1 callersFunctionparseUserAgent
(ua: string)
frontend/src/components/views/RequestView.tsx:36
↓ 1 callersFunctionprocessSourceConfigs
* Process source configurations (expand paths, populate fields from DSN)
src/config/toml-loader.ts:646
↓ 1 callersFunctionprotocolToConnectorType
* Maps a protocol string to a ConnectorType
src/utils/dsn-obfuscate.ts:187
↓ 1 callersMethodqueryOne
Run an introspection query and return a single row (or undefined).
src/connectors/sqlite/index.ts:160
↓ 1 callersMethodrefreshIamSourceConnection
(source: SourceConfig)
src/connectors/manager.ts:487
↓ 1 callersFunctionregisterCustomTool
* Register a custom tool
src/tools/index.ts:92
↓ 1 callersFunctionregisterExecuteSqlTool
* Register execute_sql tool for a source
src/tools/index.ts:47
↓ 1 callersMethodregisterLazySource
* Register a lazy source without establishing connection * Connection will be established on first use via ensureConnected()
src/connectors/manager.ts:71
↓ 1 callersFunctionregisterSearchObjectsTool
* Register search_objects tool for a source
src/tools/index.ts:66
↓ 1 callersFunctionregisterTools
(server: McpServer)
src/tools/index.ts:17
↓ 1 callersMethodrender
()
frontend/src/components/ErrorBoundary.tsx:29
↓ 1 callersFunctionresolveAllowedHosts
()
src/config/env.ts:433
↓ 1 callersFunctionresolvePort
()
src/config/env.ts:316
↓ 1 callersFunctionresolveSourceConfigs
()
src/config/env.ts:656
↓ 1 callersFunctionresolveTransport
()
src/config/env.ts:288
↓ 1 callersFunctionscanDollarQuotedBlock
(sql: string, i: number)
src/utils/sql-parser.ts:104
↓ 1 callersFunctionscanMultiLineCommentMySQL
* MySQL/MariaDB-specific multi-line comment scanner that preserves conditional comments. * MySQL conditional comments (`/*!nnnnn ... *\/`) and MariaD
src/utils/sql-parser.ts:59
↓ 1 callersFunctionscanNestedMultiLineComment
(sql: string, i: number)
src/utils/sql-parser.ts:67
↓ 1 callersFunctionscanSingleLineCommentMySQL
* 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 callersMethodscheduleIamRefresh
(source: SourceConfig)
src/connectors/manager.ts:450
↓ 1 callersFunctionsearchColumns
* Search for columns
src/tools/search-objects.ts:382
↓ 1 callersFunctionsearchIndexes
* Search for indexes
src/tools/search-objects.ts:540
↓ 1 callersFunctionsearchSchemas
* Search for schemas
src/tools/search-objects.ts:141
↓ 1 callersFunctionsearchTables
* Search for tables
src/tools/search-objects.ts:179
↓ 1 callersFunctionsearchViews
* Search for views
src/tools/search-objects.ts:284
↓ 1 callersMethodsetupTestData
(connector: Connector)
src/connectors/__tests__/mysql.integration.test.ts:94
↓ 1 callersFunctionsuppressSqliteExperimentalWarning
()
src/connectors/sqlite/suppress-experimental-warning.ts:17
↓ 1 callersFunctiontokenHasExplicitPort
* 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 callersFunctiontunnelMessage
(sourceId: string)
src/utils/error-classifier.ts:49
↓ 1 callersFunctionunreachableMessage
(sourceId: string)
src/utils/error-classifier.ts:39
↓ 1 callersFunctionuseIsMobile
()
frontend/src/hooks/use-mobile.ts:5
↓ 1 callersMethodvalidateCustomTool
* Validate a custom tool configuration
src/tools/registry.ts:86
↓ 1 callersFunctionvalidateDSNFieldConflicts
* 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 callersMethodvalidateParameter
* Validate a custom tool parameter definition
src/tools/registry.ts:32
↓ 1 callersFunctionvalidateSourceConfig
* Validate a single source configuration
src/config/toml-loader.ts:373
↓ 1 callersFunctionvalidateTomlConfig
* Validate the structure of the parsed TOML configuration
src/config/toml-loader.ts:85
↓ 1 callersFunctionvalidateToolsConfig
* Validate tools configuration
src/config/toml-loader.ts:143
↓ 1 callersFunctionzodToParameters
(schema: Record<string, z.ZodType<any>>)
src/utils/tool-metadata.ts:74
FunctionAccordion
(props: AccordionPrimitive.Root.Props)
frontend/src/components/ui/accordion.tsx:8
FunctionAccordionItem
({ className, ...props }: AccordionPrimitive.Item.Props)
frontend/src/components/ui/accordion.tsx:12
FunctionAccordionPanel
({ className, children, ...props }: AccordionPrimitive.Panel.Props)
frontend/src/components/ui/accordion.tsx:44
FunctionAccordionTrigger
({ className, children, ...props }: AccordionPrimitive.Trigger.Props)
frontend/src/components/ui/accordion.tsx:22
FunctionActivityIcon
({ className = 'w-5 h-5' }: ActivityIconProps)
frontend/src/components/icons/ActivityIcon.tsx:5
FunctionAlert
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
frontend/src/components/ui/alert.tsx:26
FunctionAlertAction
({ className, ...props }: React.ComponentProps<"div">)
frontend/src/components/ui/alert.tsx:67
FunctionAlertDescription
({ className, ...props }: React.ComponentProps<"div">)
frontend/src/components/ui/alert.tsx:51
FunctionAlertDialogBackdrop
({ className, ...props }: AlertDialogPrimitive.Backdrop.Props)
frontend/src/components/ui/alert-dialog.tsx:17
FunctionAlertDialogClose
(props: AlertDialogPrimitive.Close.Props)
frontend/src/components/ui/alert-dialog.tsx:133
FunctionAlertDialogDescription
({ className, ...props }: AlertDialogPrimitive.Description.Props)
frontend/src/components/ui/alert-dialog.tsx:120
FunctionAlertDialogFooter
({ className, variant = "default", ...props }: React.ComponentProps<"div"> & { variant?: "default" | "
frontend/src/components/ui/alert-dialog.tsx:86
FunctionAlertDialogHeader
({ className, ...props }: React.ComponentProps<"div">)
frontend/src/components/ui/alert-dialog.tsx:70
FunctionAlertDialogPopup
({ className, ...props }: AlertDialogPrimitive.Popup.Props)
frontend/src/components/ui/alert-dialog.tsx:49
← previousnext →201–300 of 717, ranked by callers