MCPcopy Create free account

hub / github.com/Datakitpage/Datakit / functions

Functions1,611 in github.com/Datakitpage/Datakit

↓ 161 callersMethodget
(endpoint: string, options?: RequestOptions)
frontend/src/lib/api/apiClient.ts:140
↓ 159 callersMethodget
* Gets a value from cache
backend/api/src/postgres-proxy/utils/cache.util.ts:59
↓ 153 callersFunctionescapeColumnName
(columnName: string)
frontend/src/lib/duckdb/inspector/utils/filtering.ts:52
↓ 140 callersMethodset
* Sets a value in cache
backend/api/src/postgres-proxy/utils/cache.util.ts:92
↓ 120 callersMethodhas
* Checks if a key exists in cache (without updating access stats)
backend/api/src/postgres-proxy/utils/cache.util.ts:112
↓ 100 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 67 callersFunctionsafeToNumber
(value: any, defaultValue: number = 0)
frontend/src/lib/duckdb/inspector/utils/bigint.ts:58
↓ 48 callersFunctionfetch
(request, env, ctx)
backend/feedback-api/src/index.ts:11
↓ 48 callersMethodpost
( endpoint: string, data?: any, options?: RequestOptions )
frontend/src/lib/api/apiClient.ts:144
↓ 43 callersMethoddelete
(endpoint: string, options?: RequestOptions)
frontend/src/lib/api/apiClient.ts:180
↓ 41 callersMethodcanActivate
(context: ExecutionContext)
backend/api/src/auth/guards/test/jwt-auth.guard.spec.ts:11
↓ 36 callersFunctionisOriginAllowed
( origin: string, allowedOrigins: string[], )
backend/api/src/utils/cors.utils.ts:21
↓ 33 callersFunctionprocessDuckDBResult
(data: any[])
frontend/src/lib/duckdb/inspector/utils/bigint.ts:27
↓ 32 callersMethodexecuteQuery
(connectionId: string, query: QueryRequest)
frontend/src/lib/api/postgresService.ts:153
↓ 23 callersMethodgenerateUniqueEmail
* Generate test data with unique identifiers
backend/integration_tests/utils/test-helpers.ts:200
↓ 22 callersMethodcreate
(email: string, password: string, name?: string)
backend/api/src/users/users.service.ts:18
↓ 20 callersMethodfindOne
(id: string)
backend/api/src/users/users.service.ts:40
↓ 19 callersMethodanalyzeQuery
* Analyze a SQL query and determine the best execution target
frontend/src/lib/duckdb/utils/queryRouter.ts:52
↓ 19 callersMethodvalidate
(payload: JwtPayload)
backend/api/src/auth/strategies/jwt.strategy.ts:39
↓ 18 callersMethodcreateAuthenticatedUser
* Create a user and return auth tokens
backend/integration_tests/utils/test-helpers.ts:10
↓ 18 callersFunctionuseAuth
()
frontend/src/hooks/auth/useAuth.ts:3
↓ 17 callersMethodcanActivate
(context: ExecutionContext)
backend/api/src/auth/guards/test/local-auth.guard.spec.ts:11
↓ 17 callersFunctionselectActiveFile
(state: AppState)
frontend/src/store/selectors/appSelectors.ts:27
↓ 16 callersMethodcalculateCredits
( modelId: string, inputTokens: number, outputTokens: number, )
backend/api/src/credits/credits.service.ts:40
↓ 16 callersMethodcheckCredits
( userId: string, estimatedCredits: number, )
backend/api/src/credits/credits.service.ts:51
↓ 16 callersFunctiondownloadFile
(content: string, fileName: string, mimeType: string)
frontend/src/components/tabs/preview/inspector/utils/exportUtils.ts:9
↓ 16 callersMethodlogin
(user: any, ipAddress?: string, userAgent?: string)
backend/api/src/auth/auth.service.ts:39
↓ 15 callersMethodencryptPassword
* Encrypts a password using AES-256-CBC with optional key derivation
backend/api/src/postgres-proxy/utils/security.util.ts:26
↓ 14 callersMethoddecryptPassword
* Decrypts a password
backend/api/src/postgres-proxy/utils/security.util.ts:70
↓ 13 callersMethodfindByEmail
(email: string)
backend/api/src/users/users.service.ts:53
↓ 13 callersMethodgetRemainingCredits
(userId: string)
backend/api/src/credits/credits.service.ts:180
↓ 13 callersMethodupdate
(id: string, updateData: Partial<User>)
backend/api/src/users/users.service.ts:60
↓ 12 callersMethodchatCompletions
( @Request() req, @Body() body: AIRequest, @Res({ passthrough: false }) res: Response, )
backend/api/src/ai/ai.controller.ts:59
↓ 12 callersMethodfindOne
(id: string, userId: string)
backend/api/src/workspaces/workspaces.service.ts:66
↓ 12 callersMethodgetDownloadedModels
()
frontend/src/lib/ai/modelManager.ts:127
↓ 12 callersMethodprocessAnthropicStream
( anthropicResponse: any, res: Response, context: StreamingContext, )
backend/api/src/ai/streaming.service.ts:43
↓ 11 callersFunctioncreateId
()
frontend/src/store/pythonStore.ts:136
↓ 11 callersFunctionrebuildTree
(nodeMap: Map<string, FolderNode>)
frontend/src/store/folderStore.ts:54
↓ 11 callersMethoduseCredits
(userId: string, amount: number)
backend/api/src/subscriptions/subscriptions.service.ts:86
↓ 11 callersMethodvalidatePassword
(password: string)
backend/api/src/auth/validators/password.validator.ts:40
↓ 11 callersMethodvalidateRefreshToken
(token: string)
backend/api/src/auth/refresh-token.service.ts:53
↓ 10 callersFunctioncreateMockStream
(chunks: string[])
backend/api/src/ai/test/streaming.service.spec.ts:134
↓ 10 callersFunctionexecutePaginatedQuery
( { sql, page, pageSize, applyPagination = true, countTotalRows = true, }: PaginatedQu
frontend/src/lib/duckdb/query.ts:22
↓ 10 callersMethodexecuteQuery
( userId: string, connectionId: string, queryDto: ExecuteQueryDto, )
backend/api/src/postgres-proxy/postgres-proxy.service.ts:393
↓ 9 callersMethodabort
* Abort reading the stream
frontend/src/lib/streamReader.ts:186
↓ 9 callersMethodauthenticatedGet
* Make an authenticated GET request
backend/integration_tests/utils/test-helpers.ts:78
↓ 9 callersMethodclear
* Clears all cache entries
backend/api/src/postgres-proxy/utils/cache.util.ts:144
↓ 9 callersMethoddelete
* Deletes a specific key from cache
backend/api/src/postgres-proxy/utils/cache.util.ts:120
↓ 9 callersMethodformatFileSize
* Format file size for display
frontend/src/lib/data/dataProcessingUtil.ts:163
↓ 9 callersMethodgenerateRefreshToken
( userId: string, ipAddress?: string, userAgent?: string, )
backend/api/src/auth/refresh-token.service.ts:18
↓ 9 callersFunctioninsertMarkdownFormat
(format: string)
frontend/src/components/tabs/notebooks/PythonCell.tsx:115
↓ 9 callersMethodmakeRequest
(endpoint: string, options: SafeRequestOptions = {})
frontend/src/lib/ai/providers/safeApiProvider.ts:32
↓ 8 callersMethodexpectUnauthorized
* Expect an unauthorized error response
backend/integration_tests/utils/test-helpers.ts:245
↓ 8 callersMethodfindByUserId
(userId: string)
backend/api/src/subscriptions/subscriptions.service.ts:55
↓ 8 callersMethodgenerateCompletion
( userId: string, request: AIRequest, )
backend/api/src/ai/ai.service.ts:80
↓ 8 callersFunctiongetNumericFilterClauseFallback
(columnName: string)
frontend/src/lib/duckdb/inspector/utils/filtering.ts:42
↓ 8 callersMethodgetStats
* Gets cache statistics
backend/api/src/postgres-proxy/utils/cache.util.ts:153
↓ 8 callersMethodrefreshAccessToken
( refreshToken: string, ipAddress?: string, userAgent?: string, )
backend/api/src/auth/auth.service.ts:114
↓ 8 callersMethodsignup
(signupDto: SignupDto, ipAddress?: string, userAgent?: string)
backend/api/src/auth/auth.service.ts:68
↓ 8 callersFunctionuseNotifications
()
frontend/src/hooks/useNotifications.tsx:105
↓ 8 callersMethodvalidateSQLSecurity
* Validates SQL query for security risks
backend/api/src/postgres-proxy/utils/security.util.ts:112
↓ 7 callersMethodbuildConnectionString
* Builds a safe PostgreSQL connection string
backend/api/src/postgres-proxy/utils/database.util.ts:230
↓ 7 callersMethodcheckChatCompletions
(@Request() req, @Body() body: AIRequest)
backend/api/src/ai/ai.controller.ts:27
↓ 7 callersMethodcheckPasswordStrength
* Check password strength without personal information validation
backend/api/src/auth/services/password.service.ts:15
↓ 7 callersMethodcreateActiveSubscription
(planType: 'FREE' | 'STARTER' | 'PRO' | 'ENTERPRISE', userId: string)
backend/integration_tests/fixtures/subscription.fixtures.ts:88
↓ 7 callersMethodcreateCreditUsageData
(overrides: Partial<CreateCreditUsageData> = {})
backend/integration_tests/fixtures/credit.fixtures.ts:15
↓ 7 callersMethodcreateRefreshTokenData
(overrides: Partial<CreateRefreshTokenData> = {})
backend/integration_tests/fixtures/auth.fixtures.ts:30
↓ 7 callersFunctioncreateSystemPrompt
(context: AIContextData)
frontend/src/lib/ai/prompts/sqlPrompts.ts:257
↓ 7 callersMethodestimateCredits
( modelId: string, inputTokens: number, outputTokens: number = 1000, // Default estimated output
backend/api/src/credits/credits.service.ts:172
↓ 7 callersMethodgenerateUniquePassword
()
backend/integration_tests/utils/test-helpers.ts:210
↓ 7 callersMethodgetConnection
( userId: string, connectionId: string, )
backend/api/src/postgres-proxy/postgres-proxy.service.ts:340
↓ 7 callersMethodgetTableSchema
( userId: string, connectionId: string, schemaName: string, tableName: string, )
backend/api/src/postgres-proxy/postgres-proxy.service.ts:830
↓ 7 callersFunctiongetTextFilterClause
(columnName: string, excludeEmpty: boolean = false)
frontend/src/lib/duckdb/inspector/utils/filtering.ts:75
↓ 7 callersFunctionhasApiKey
(provider: AIProvider | 'datakit')
frontend/src/components/tabs/ai/ModelSelector.tsx:132
↓ 7 callersMethodrotateRefreshToken
( oldToken: string, ipAddress?: string, userAgent?: string, )
backend/api/src/auth/refresh-token.service.ts:103
↓ 7 callersMethodtestMethod
(arg1: string, arg2: string)
backend/api/src/postgres-proxy/utils/cache.util.spec.ts:348
↓ 7 callersFunctiontoggleTable
(tableId: string)
frontend/src/components/tabs/query/SchemaBrowser.tsx:389
↓ 6 callersMethodattachPostgreSQLDatabase
* Safely attaches a PostgreSQL database to DuckDB
backend/api/src/postgres-proxy/utils/database.util.ts:73
↓ 6 callersMethodcleanDatabase
()
backend/integration_tests/setup/database-utils.ts:41
↓ 6 callersFunctioncreateDataAnalysisPrompt
( userPrompt: string, context: AIContextData, dataPreview?: any[] )
frontend/src/lib/ai/prompts/sqlPrompts.ts:411
↓ 6 callersFunctioncreateSQLPrompt
( userPrompt: string, context: AIContextData, options?: { includeExplanation?: boolean; maxRows?
frontend/src/lib/ai/prompts/sqlPrompts.ts:368
↓ 6 callersMethodcreateWorkspaceData
(overrides: Partial<CreateWorkspaceData> = {})
backend/integration_tests/fixtures/workspace.fixtures.ts:19
↓ 6 callersMethodfindByWorkspaceId
(workspaceId: string)
backend/api/src/subscriptions/subscriptions.service.ts:114
↓ 6 callersMethodgetApiHeaders
()
frontend/src/lib/ai/providers/datakit.ts:48
↓ 6 callersMethodgetCreditsRemaining
(userId: string)
backend/api/src/subscriptions/subscriptions.service.ts:103
↓ 6 callersFunctiongetNumericFilterClause
( columnName: string, config: NumericFilterConfig = { useRegexFilter: true, includeInfinite: false } )
frontend/src/lib/duckdb/inspector/utils/filtering.ts:15
↓ 6 callersFunctiongetProviderColorClass
( provider: AIProvider, type: 'bg' | 'border' | 'text' )
frontend/src/components/tabs/ai/ApiKeyModal.tsx:159
↓ 6 callersMethodgetStrengthDescription
* Generate password strength score description
backend/api/src/auth/services/password.service.ts:118
↓ 6 callersFunctionhandleCORSError
(error: Error)
frontend/src/lib/ai/providers/safeApiProvider.ts:123
↓ 6 callersMethodinitializeDatabase
()
backend/integration_tests/setup/database-utils.ts:12
↓ 6 callersMethodlogout
(refreshToken: string)
backend/api/src/auth/auth.service.ts:164
↓ 6 callersFunctionparseAllowedOrigins
( originsString: string | undefined, defaultOrigins: string[] = [], )
backend/api/src/utils/cors.utils.ts:96
↓ 6 callersFunctionparseDatasetId
(input: string)
frontend/src/hooks/remote/huggingface/api.ts:151
↓ 6 callersMethodqueueRequest
( model: string, body: any, apiCall: () => Promise<any>, )
backend/api/src/ai/queue/rate-limiter.service.ts:36
↓ 6 callersMethodrefresh
(@Request() req, @Response() res)
backend/api/src/auth/auth.controller.ts:135
↓ 6 callersMethodrequest
( endpoint: string, options: RequestOptions = {} )
frontend/src/lib/api/apiClient.ts:104
↓ 6 callersMethodstream
( endpoint: string, data?: any, options?: RequestOptions )
frontend/src/lib/api/apiClient.ts:185
↓ 6 callersMethodvalidateConnectionConfig
* Validates a connection configuration
backend/api/src/postgres-proxy/utils/database.util.ts:254
↓ 6 callersMethodwriteSSEData
(res: Response, data: any)
backend/api/src/ai/streaming.service.ts:29
↓ 5 callersMethodattachPostgresDatabase
( db: duckdb.Database, connection: PostgresConnection, decryptedPassword: string, connectionId
backend/api/src/postgres-proxy/postgres-proxy.service.ts:117
next →1–100 of 1,611, ranked by callers