MCPcopy Create free account

hub / github.com/aspen-cloud/triplit / functions

Functions1,840 in github.com/aspen-cloud/triplit

↓ 2 callersFunctionsimulateNetwork
(callback: () => void, latency: number)
packages/integration-tests/utils/test-transport.ts:146
↓ 2 callersFunctionsortViewEntities
(entities: ViewEntity[], order: PreparedOrder)
packages/db/src/query-engine.ts:406
↓ 2 callersFunctionstatementHasViewReference
( filter: FilterStatement )
packages/db/src/query-planner/query-compiler.ts:314
↓ 2 callersFunctionstoreSession
(session: Session | null)
packages/cli/src/auth-state.ts:4
↓ 2 callersFunctionsubQueryToString
( subquery: Pick<CollectionQuery, 'where' | 'limit' | 'order'> )
packages/cli/src/schema.ts:254
↓ 2 callersFunctionsubqueryToView
(subquery: PreparedQuery, generateViewId: () => string)
packages/db/src/query-planner/query-compiler.ts:153
↓ 2 callersFunctiontokenIsExpired
(token: Record<string, any>)
packages/client/src/token.ts:54
↓ 2 callersFunctiontransformTriplitJsonDataInJsonSchema
( collections: Models, collection: string )
packages/utilities/src/json-schema.ts:85
↓ 2 callersFunctiontranspileTsString
(source: string)
packages/cli/src/filesystem.ts:45
↓ 2 callersFunctiontriplitTypeToFastCheckType
( triplitType: (typeof SCALAR_TYPES)[number], { nullable = false, optional = false, }: { nullabl
packages/db/test/fuzzy/query-operators.test.ts:95
↓ 2 callersFunctiontryPreloadingOptionalDeps
()
packages/db/src/utils/optional-dep.ts:18
↓ 2 callersFunctionupdate
(props: ToasterToast)
packages/console/src/hooks/useToast.tsx:142
↓ 2 callersMethodupdate
(collectionName: string, entityId: string, changes: any)
packages/server-core/src/session.ts:234
↓ 2 callersMethodupdateConnectionOptions
* Updates the `token` or `serverUrl` of the client and will inform subscribers. Only will fire to subscribers if the value(s) have changed. * *
packages/client/src/client/triplit-client.ts:1039
↓ 2 callersMethodupdateGlobalVariables
(vars: Record<string, any>)
packages/db/src/db.ts:795
↓ 2 callersMethodupdateOptions
(options: HttpClientOptions<M>)
packages/client/src/http-client/http-client.ts:54
↓ 2 callersMethodupdateToken
* Updates the `token` of the client. This will cause the client to close its current connection to the server and attempt reopen a new one with the pr
packages/client/src/client/triplit-client.ts:1139
↓ 2 callersMethodupdateTokenForSession
* @hidden
packages/client/src/sync-engine.ts:494
↓ 2 callersFunctionupdateTriplitValue
( attribute: string, client: TriplitClient, collection: string, entityId: string, value: TriplitData
packages/console/src/utils/mutate-cells.ts:12
↓ 2 callersFunctionuseClient
()
packages/console/src/components/client-context.tsx:41
↓ 2 callersFunctionuseInfiniteQuery
( client: TriplitClient<M> | WorkerClient<M>, query: Q, options?: Partial<EnabledSubscriptionOptions> )
packages/react/src/use-query.ts:196
↓ 2 callersFunctionuseUnsyncedElements
()
templates/excalidraw/src/triplit.ts:30
↓ 2 callersFunctionvalidateDataType
(type: DataType)
packages/db/src/schema/validation.ts:124
↓ 2 callersFunctionvalidateIdentifier
( identifier: string, schema: Models, collectionName: string, validator: ( dataType: DataType | Re
packages/db/src/schema/utilities.ts:22
↓ 2 callersFunctionvalidateRecordType
(type: RecordType)
packages/db/src/schema/validation.ts:182
↓ 2 callersFunctionvalidateServerUrl
(serverUrl: string | undefined)
packages/client/src/client/triplit-client.ts:1334
↓ 2 callersFunctionvalidateStringType
(type: StringType)
packages/db/src/schema/validation.ts:211
↓ 2 callersMethodwarnError
(e: any)
packages/client/src/client/triplit-client.ts:1277
↓ 2 callersFunctionwhite
(text: string)
packages/cli/src/log-handlers/dev-server-logs.ts:15
↓ 2 callersFunctionwithServerAndCtx
( options: { port: number; serverOptions?: ServerOptions }, callback: (ctx: any, server: any) => void | Pr
packages/integration-tests/cli-tests/schema-management.spec.ts:74
↓ 1 callersMethod#logMessage
(action: Actions, message: ServerSyncMessage | ClientSyncMessage)
packages/cli/src/log-handlers/dev-server-logs.ts:168
↓ 1 callersMethod#logRequest
(path: string[], body?: any)
packages/cli/src/log-handlers/dev-server-logs.ts:118
↓ 1 callersMethod#logResponse
(path: string[], statusCode: number, body?: any)
packages/cli/src/log-handlers/dev-server-logs.ts:128
↓ 1 callersFunctionJWTPayloadIsOfCorrectForm
(token: string)
packages/console/src/utils/remote-helpers.ts:24
↓ 1 callersMethodQuery
(collectionName: CN)
packages/db/src/db.ts:779
↓ 1 callersFunctionRecordType
(properties: any, options?: any)
packages/db/src/schema/data-types/definitions/record.ts:35
↓ 1 callersFunctionStringType
(options?: any)
packages/db/src/schema/data-types/definitions/string.ts:23
↓ 1 callersFunctionTriplitAdapter
( options: TriplitAdapterConnectionOptions )
packages/authjs-adapter/src/index.ts:25
↓ 1 callersMethod_endSpans
* Called internally when a DisposableSpan goes out of scope * and triggers its [Symbol.dispose]() method.
packages/logger/src/index.ts:239
↓ 1 callersMethod_overrideSchema
( newSchema: DBSchema, { failOnBackwardsIncompatibleChange = false } = {} )
packages/db/src/db.ts:615
↓ 1 callersMethodacquireRunningLock
()
packages/db/src/ivm/ivm.ts:212
↓ 1 callersFunctionaddAttribute
( client: TriplitClient<any>, collection: string, path: string[], attribute: DataType, optional: boo
packages/console/src/utils/schema.ts:56
↓ 1 callersFunctionaddConversation
(name: string, currentUserId: string)
templates/chat-template/lib/triplit-mutations.ts:4
↓ 1 callersFunctionaddQueryToViewGraph
( query: PreparedQuery, viewGraph: ViewGraph )
packages/db/src/ivm/view-graph.ts:111
↓ 1 callersFunctionaddTokenFromClient
(client: TriplitClient<any>)
packages/console/src/components/server-viewer.tsx:456
↓ 1 callersFunctionaddUserToConversation
(userId: string, conversationId: string)
templates/chat-template/lib/triplit-mutations.ts:13
↓ 1 callersFunctionaddViewsToViewGraph
( views: HashedViewMap, viewGraph: ViewGraph )
packages/db/src/ivm/view-graph.ts:137
↓ 1 callersMethodaddWebhookTrigger
({ url, collectionName, actions, }: { url: string; collectionName: string; actions:
packages/server-core/src/webhooks-manager.ts:77
↓ 1 callersFunctionall
( arr: any[], predicate: (val: any) => val is T )
packages/db/src/utils/guards.ts:1
↓ 1 callersFunctionapplyBooleanCollapse
* Certain boolean expressions will cause a grouping to always evaluate to true or false. This function collapses those expressions to a single boolean
packages/db/src/query/simplify-query.ts:132
↓ 1 callersFunctionapplyOpToDB
(db: DB, op: EntityOperation)
packages/db/test/ivm.spec.ts:1482
↓ 1 callersFunctionareChangesEmpty
(changes: DBChanges | undefined | null)
packages/db/src/memory-write-buffer.ts:116
↓ 1 callersFunctionassignFractionalIndices
( elements: { fracIndex?: string }[], prevIndex?: string )
templates/excalidraw/src/App.tsx:183
↓ 1 callersMethodassignSessionToken
* Handles a new token and update the sync connection accordingly. * - If the token is the same as the current session, it will just connect if `con
packages/client/src/sync-engine.ts:197
↓ 1 callersFunctionasyncIterConcat
( ...iterators: (AsyncIterable<T> | Iterable<T>)[] )
packages/db/src/utils/iterators.ts:84
↓ 1 callersFunctionasyncIterTake
( iterator: AsyncIterable<any> | Iterable<any>, count: number )
packages/db/src/utils/iterators.ts:59
↓ 1 callersFunctionasyncIterUnique
( iterator: AsyncIterable<T> | Iterable<T>, getId?: (value: T) => any )
packages/db/src/utils/iterators.ts:94
↓ 1 callersFunctionawaitConnect
(client: Triplit.TriplitClient)
packages/cli/src/commands/repl.tsx:13
↓ 1 callersFunctionbindVariablesInFilter
( filter: W, vars: any )
packages/db/src/variables.ts:193
↓ 1 callersFunctionbindViewsInFilter
( filter: W, views: Record<string, ViewEntity[]> )
packages/db/src/ivm/utils.ts:225
↓ 1 callersFunctionbooleanEqual
(a: BooleanType, b: BooleanType)
packages/db/src/schema/data-types/type.ts:527
↓ 1 callersFunctionbuildFiles
()
packages/cli/build.mjs:81
↓ 1 callersMethodbulkInsert
(bulk: BulkInsert<M>)
packages/client/src/http-client/http-client.ts:152
↓ 1 callersFunctioncalcDefaultValue
(config: TypeConfig)
packages/db/src/schema/data-types/type.ts:485
↓ 1 callersFunctionchangeIsInsert
(change: Change)
packages/db/src/ivm/ivm.ts:735
↓ 1 callersFunctionchangesToEntityIds
(changes: DBChanges)
packages/client/src/sync-engine.ts:1312
↓ 1 callersFunctioncheckLMDBDependency
()
packages/cli/src/commands/dev.tsx:292
↓ 1 callersFunctioncheckSQLiteDependency
()
packages/cli/src/commands/dev.tsx:304
↓ 1 callersFunctioncheckServerRunning
(port: number, timeout: number)
packages/integration-tests/cli-tests/dev-server.spec.ts:43
↓ 1 callersFunctionchunkMessage
(message: string, numChunks: number)
packages/client/src/transport/websocket-transport.ts:144
↓ 1 callersFunctioncleanUp
()
packages/db/scripts/traditional-sqlite-comparison-performance.spec.ts:605
↓ 1 callersMethodclear
* Clears the local database of the client. Does not affect the server. * * @param options - The clear options * - `full`: If true, clears the
packages/client/src/client/triplit-client.ts:394
↓ 1 callersMethodclearDB
({ full }: { full?: boolean })
packages/server-core/src/session.ts:65
↓ 1 callersFunctionclearOrganization
()
packages/cli/src/organization-state.ts:19
↓ 1 callersFunctionclearSession
()
packages/cli/src/auth-state.ts:12
↓ 1 callersMethodclose
(reason?: CloseReason)
packages/client/src/transport/http-transport.ts:77
↓ 1 callersMethodclose
(reason?: CloseReason)
packages/client/src/transport/websocket-transport.ts:107
↓ 1 callersFunctioncoerceStringToTriplitType
( value: string | null | Array<any>, definition: DataType )
packages/console/src/components/data-table.tsx:399
↓ 1 callersFunctioncoerceTriplitTypeToInput
( value: TriplitDataTypes, definition: DataType )
packages/console/src/components/data-table.tsx:413
↓ 1 callersFunctioncollectionsDefinitionToFileContent
( collectionsDefinition: Record<string, Collection>, indent = INDENT )
packages/cli/src/schema.ts:60
↓ 1 callersFunctioncompare
( a: T, b: T, op: (typeof SCALAR_OPS)[number] )
packages/db/test/fuzzy/query-operators.test.ts:37
↓ 1 callersFunctioncompareCursors
( cursor1: ValueCursor | undefined, cursor2: ValueCursor | undefined )
packages/client/src/pagination.ts:3
↓ 1 callersFunctioncompareObject
( a: { [key: string]: Value }, b: { [key: string]: Value } )
packages/db/src/codec.ts:273
↓ 1 callersFunctioncompareObjs
(a, b, prefix = '', diffs = new Map())
packages/db/test/fuzzy/insert.test.ts:168
↓ 1 callersFunctioncompareSelectivity
( selectivity1: QuerySelectivity, selectivity2: QuerySelectivity )
packages/db/src/query-planner/heuristics.ts:49
↓ 1 callersFunctioncompileRelationalPlan
(relPlan: RelationalPlan)
packages/db/src/query-planner/query-compiler.ts:285
↓ 1 callersFunctionconstructSchemaIssues
(issues: PossibleDataViolation[])
packages/db/src/schema/diff-issues.ts:578
↓ 1 callersFunctionconvertEntity
(entityData: ViewEntity['data'])
packages/db/src/db.ts:1047
↓ 1 callersFunctionconvertFormToEntity
(attributes: FormValues['attributes'])
packages/console/src/components/create-entity-sheet.tsx:101
↓ 1 callersFunctionconvertFormValueToTriplitValue
* Convert string values to Triplit values as needed
packages/console/src/components/create-entity-sheet.tsx:49
↓ 1 callersFunctioncopyDir
(srcDir: string, destDir: string)
packages/create-triplit-app/src/index.ts:412
↓ 1 callersFunctioncopyTemplates
()
packages/create-triplit-app/copy-templates.mjs:12
↓ 1 callersFunctioncreateBunServer
( options: Parameters<typeof createTriplitHonoServer>[0] )
packages/server/src/bun.ts:4
↓ 1 callersFunctioncreateClientId
(serverUrl: string, token: string)
packages/console/src/components/client-context.tsx:18
↓ 1 callersFunctioncreateCombinedJsonStream
* Unify multiple JSON files into a single JSON object stream, keyed by the filename
packages/cli/src/commands/snapshot/push.ts:85
↓ 1 callersMethodcreateConnection
* Initiate a sync connection with the server
packages/client/src/sync-engine.ts:791
↓ 1 callersFunctioncreateConnectionStatus
( client: TriplitClient<any> | WorkerClient<any> )
packages/angular/src/create-connection-status.ts:5
↓ 1 callersFunctioncreateProject
(args: { name: string; organization_id: string; })
packages/cli/src/commands/project/create.ts:57
↓ 1 callersFunctioncreateProjectWithPrompts
( organizationId: string )
packages/cli/src/commands/project/create.ts:24
↓ 1 callersFunctioncreateQuery
( queryFn: () => { client: TriplitClient<M> | WorkerClient<M>; query: Q; options?: Partial<Enabl
packages/angular/src/create-query.ts:18
← previousnext →501–600 of 1,840, ranked by callers