MCPcopy Index your code

hub / github.com/dbos-inc/dbos-transact-golang / functions

Functions1,194 in github.com/dbos-inc/dbos-transact-golang

↓ 462 callersMethodRun
(ctx DBOSContext, input string)
dbos/workflows_test.go:415
↓ 397 callersMethodError
Error returns a formatted error message including the error code. This implements the standard Go error interface.
dbos/errors.go:51
↓ 395 callersMethodGetResult
(opts ...GetResultOption)
dbos/workflow.go:109
↓ 345 callersFunctionRegisterWorkflow
RegisterWorkflow registers a function as a durable workflow that can be executed and recovered. The function is registered with type safety - P repres
dbos/workflow.go:672
↓ 309 callersFunctionRunWorkflow
RunWorkflow executes a workflow function with type safety and durability guarantees. The workflow can be executed immediately or enqueued for later ex
dbos/workflow.go:1028
↓ 265 callersMethodGetWorkflowID
Deprecate a patch
dbos/dbos.go:161
↓ 132 callersFunctionsetupDBOS
* Test database setup */
dbos/utils_test.go:187
↓ 116 callersMethodScan
(dest ...any)
dbos/dbq.go:73
↓ 108 callersMethodrenderSQL
New creates a new SystemDatabase instance and runs migrations renderSQL formats a canonical pg-style query string with sprintf and runs it through the
dbos/system_database.go:699
↓ 105 callersMethodClose
()
dbos/dbq.go:43
↓ 103 callersMethodSet
()
dbos/utils_test.go:256
↓ 102 callersFunctionWithWorkflowID
WithWorkflowID sets a custom workflow ID instead of generating one automatically.
dbos/workflow.go:874
↓ 100 callersFunctionLaunch
Launch launches the DBOS runtime using the provided DBOSContext. This is a package-level wrapper for the DBOSContext.Launch() method. Example: ctx,
dbos/dbos.go:926
↓ 99 callersMethodGetStatus
Wait for workflow completion and return the result
dbos/workflow.go:110
↓ 99 callersMethodSchemaPrefix
SchemaPrefix returns the qualified-table prefix, e.g. `"dbos".` for Postgres or "" for SQLite (no schemas). Includes the trailing dot.
dbos/dialect.go:53
↓ 96 callersFunctionWithQueue
WithQueue enqueues the workflow to the specified queue instead of executing immediately. Queued workflows will be processed by the queue runner accord
dbos/workflow.go:893
↓ 93 callersMethodExec
(ctx context.Context, query string, args ...any)
dbos/dbq.go:26
↓ 92 callersMethodQueryRow
(ctx context.Context, query string, args ...any)
dbos/dbq.go:28
↓ 89 callersFunctionRunAsStep
RunAsStep executes a function as a durable step within a workflow. Steps provide at-least-once execution guarantees and automatic retry capabilities.
dbos/workflow.go:1937
↓ 81 callersFunctionwithRetrierLogger
withRetrierLogger sets the logger for the retrier
dbos/system_database.go:5468
↓ 78 callersFunctionNewEvent
()
dbos/utils_test.go:242
↓ 74 callersMethodWait
()
dbos/utils_test.go:248
↓ 72 callersMethodErr
()
dbos/dbq.go:66
↓ 67 callersFunctionGetWorkflowSteps
GetWorkflowSteps retrieves the execution steps of a workflow. Returns a list of step information including step IDs, names, outputs, errors, and child
dbos/workflow.go:4401
↓ 66 callersFunctionWithWorkflowName
(name string)
dbos/workflow.go:594
↓ 62 callersMethodName
Name returns a stable identifier for the dialect.
dbos/dialect.go:49
↓ 60 callersFunctionWithStepName
WithStepName sets a custom name for the step. If the step name has already been set by a previous call to WithStepName, this option will be ignored
dbos/workflow.go:1676
↓ 58 callersMethodGetApplicationVersion
Delete workflows and all their associated data Accessors
dbos/dbos.go:182
↓ 56 callersMethodIs
Implements https://pkg.go.dev/errors#Is
dbos/errors.go:62
↓ 56 callersMethodSleep
Read values from a durable stream asynchronously
dbos/dbos.go:158
↓ 54 callersFunctionretryWithResult
retryWithResult executes a function that returns a value with retry logic It uses the non-generic retry function under the hood
dbos/system_database.go:5555
↓ 51 callersMethodDone
()
dbos/dbos.go:312
↓ 49 callersFunctionListWorkflows
ListWorkflows retrieves a list of workflows based on the provided filters. The function supports filtering by workflow IDs, status, time ranges, name
dbos/workflow.go:4250
↓ 48 callersMethodDecode
Decode deserializes a string from the database back into a value.
dbos/serialization.go:32
↓ 48 callersFunctionShutdown
Shutdown gracefully shuts down the DBOS runtime using the provided DBOSContext and timeout. This is a package-level wrapper for the DBOSContext.Shutdo
dbos/dbos.go:943
↓ 47 callersMethodValue
(key any)
dbos/dbos.go:320
↓ 46 callersMethodsendResponse
(response any, responseType string)
dbos/conductor.go:1641
↓ 45 callersMethodQuery
(ctx context.Context, query string, args ...any)
dbos/dbq.go:27
↓ 43 callersFunctionNewDBOSContext
NewDBOSContext creates a new DBOS context with the provided configuration. The context must be launched with Launch() for workflow execution and shoul
dbos/dbos.go:587
↓ 42 callersFunctionNewWorkflowQueue
NewWorkflowQueue creates a new workflow queue with the specified name and configuration options. Deprecated: Use [RegisterQueue], which persists the
dbos/queue.go:257
↓ 41 callersFunctionEnqueue
Enqueue adds a workflow to a named queue for later execution with type safety. The workflow will be persisted with ENQUEUED status until picked up by
dbos/client.go:433
↓ 41 callersFunctionregisterWFQ
registerWFQ / retrieveWFQ / listWFQ are test helpers that call the public queue API (which returns the Queue interface) and unwrap the concrete *Workf
dbos/queues_test.go:25
↓ 39 callersFunctionbackendDatabaseURL
*testing.T -> string; ensures setupDBOS and follow-up callers (e.g. NewClient) share the same sqlite file.
dbos/utils_test.go:43
↓ 39 callersFunctionqueueEntriesAreCleanedUp
(ctx DBOSContext)
dbos/utils_test.go:284
↓ 38 callersMethodListWorkflows
(opts ...ListWorkflowsOption)
dbos/client.go:31
↓ 37 callersMethodtoSlice
()
dbos/conductor_protocol.go:31
↓ 36 callersMethodNext
()
dbos/dbq.go:64
↓ 36 callersMethodShutdown
(timeout time.Duration)
dbos/client.go:62
↓ 35 callersFunctionWithEnqueueApplicationVersion
WithEnqueueApplicationVersion overrides the application version for the enqueued workflow.
dbos/client.go:116
↓ 33 callersFunctionnewStepExecutionError
(workflowID, stepName string, err error)
dbos/errors.go:171
↓ 33 callersFunctiontestAllSerializationPaths
testAllSerializationPaths tests workflow recovery and verifies all read paths. This is the unified test function that exercises: 1. Workflow recovery:
dbos/serialization_test.go:24
↓ 32 callersMethodClear
()
dbos/utils_test.go:263
↓ 32 callersFunctionrecoverPendingWorkflows
(ctx *dbosContext, executorIDs []string)
dbos/recovery.go:3
↓ 32 callersFunctionretry
retry executes a function with retry logic using functional optionsr
dbos/system_database.go:5483
↓ 31 callersFunctionnewWorkflowExecutionError
(workflowID string, err error)
dbos/errors.go:162
↓ 30 callersMethodEncode
Encode serializes a value to a string representation for database storage.
dbos/serialization.go:30
↓ 29 callersMethodDebounce
(ctx DBOSContext, key string, delay time.Duration, input P, opts ...WorkflowOption)
dbos/debouncer.go:164
↓ 28 callersMethodRollback
(ctx context.Context)
dbos/dbq.go:35
↓ 27 callersFunctiongetDatabaseURL
getDatabaseURL returns a default database URL if none is configured, following dbos/utils_test.go pattern
cmd/dbos/cli_integration_test.go:75
↓ 26 callersFunctionGetWorkflowID
GetWorkflowID retrieves the workflow ID from the context if called within a DBOS workflow. Returns an error if not called from within a workflow conte
dbos/workflow.go:3303
↓ 25 callersMethodCommit
(ctx context.Context)
dbos/dbq.go:34
↓ 25 callersMethodsendTextMessage
sendTextMessage sends a text WebSocket message to the connected client
dbos/conductor_test.go:222
↓ 24 callersMethodLaunch
Context Lifecycle
dbos/dbos.go:142
↓ 24 callersFunctionSetEvent
SetEvent sets a key-value event for the current workflow with type safety. Events are persistent and can be retrieved by other workflows using GetEven
dbos/workflow.go:2614
↓ 24 callersFunctionWithQueueBasePollingInterval
WithQueueBasePollingInterval sets the initial polling interval for the queue. This is the starting interval and the minimum - the queue will never pol
dbos/queue.go:229
↓ 24 callersFunctionsetWorkflowStatusPending
setWorkflowStatusPending sets the workflow's status to PENDING in the DB (clearing output, error, started_at_epoch_ms).
dbos/utils_test.go:270
↓ 23 callersFunctionWithWorkflowIDs
WithWorkflowIDs filters workflows by the specified workflow IDs.
dbos/workflow.go:3897
↓ 22 callersMethodBeginTx
(ctx context.Context, opts TxOptions)
dbos/dbq.go:41
↓ 21 callersFunctionNewClient
NewClient creates a new DBOS client with the provided configuration. The client manages its own DBOSContext internally. Example: config := dbos.Cli
dbos/client.go:81
↓ 21 callersFunctionWithGlobalConcurrency
WithGlobalConcurrency limits the total number of workflows that can run concurrently from the queue across all executors. This provides global concurr
dbos/queue.go:186
↓ 21 callersFunctionWithWorkflowIDPrefix
WithWorkflowIDPrefix filters workflows by workflow ID prefix(es).
dbos/workflow.go:3967
↓ 21 callersMethodshutdown
(ctx context.Context, timeout time.Duration)
dbos/system_database.go:31
↓ 20 callersFunctionSend
Send sends a message to another workflow with type safety. Send can be called from within a workflow (as a durable step) or from outside workflows. W
dbos/workflow.go:2458
↓ 19 callersMethodlaunch
SysDB management
dbos/system_database.go:30
↓ 19 callersMethodwaitForConnection
(timeout time.Duration)
dbos/conductor_test.go:207
↓ 18 callersFunctionCreateSchedule
CreateSchedule creates a new schedule for a workflow. The reconciler loop picks the new schedule up on its next tick and installs it in the cron sched
dbos/workflow.go:4827
↓ 18 callersFunctionWithDeduplicationID
WithDeduplicationID sets a deduplication ID for a queue workflow.
dbos/workflow.go:908
↓ 18 callersFunctionWithTimeout
WithTimeout returns a copy of the DBOS context that is canceled after the given timeout.
dbos/dbos.go:502
↓ 18 callersFunctionresetTestDatabase
* Test database reset. Deletes rows from dbos-managed tables instead of dropping the database, which is much cheaper — especially on CockroachDB where
dbos/utils_test.go:65
↓ 18 callersFunctionresolveEncoder
resolveEncoder returns the serializer to use for encoding values within a workflow. Priority: portable workflow → user custom serializer → default JSO
dbos/serialization.go:256
↓ 18 callersFunctionrunAsTxn
runAsTxn executes a step function that receives a transaction when run on its own. The step body and checkpoint share one transaction, so system DB wr
dbos/workflow.go:2039
↓ 17 callersMethodaddWhereAny
Manually expand array parameters for databases that don't support them
dbos/system_database.go:5346
↓ 16 callersFunctionWithEnqueueWorkflowID
WithEnqueueWorkflowID sets a custom workflow ID instead of generating one automatically.
dbos/client.go:109
↓ 15 callersFunctionnewConductor
(dbosCtx *dbosContext, config conductorConfig)
dbos/conductor.go:73
↓ 14 callersFunctionGetWorkflowAggregates
GetWorkflowAggregates returns aggregate counts of workflows grouped by one or more columns and/or by created_at time bucket. At least one GroupBy* fl
dbos/workflow.go:4513
↓ 14 callersMethodgetURL
()
dbos/conductor_test.go:163
↓ 14 callersMethodlistWorkflows
(ctx context.Context, input listWorkflowsDBInput)
dbos/system_database.go:36
↓ 14 callersFunctionnewMockWebSocketServer
()
dbos/conductor_test.go:44
↓ 13 callersFunctionGetSchedule
GetSchedule gets a schedule by name. Example: schedule, err := dbos.GetSchedule(ctx, "my-schedule")
dbos/workflow.go:5083
↓ 13 callersFunctionWithStatus
WithStatus filters workflows by the specified list of statuses.
dbos/workflow.go:3904
↓ 13 callersMethodnextStepID
nextStepID returns the next step ID and increments the counter
dbos/workflow.go:83
↓ 12 callersMethodGetSchedule
(scheduleName string)
dbos/client.go:49
↓ 12 callersFunctionListSchedules
ListSchedules lists schedules, optionally filtered by the supplied options. Pass no options to return all schedules. Example: schedules, err := dbo
dbos/workflow.go:5136
↓ 12 callersFunctionPgxPool
PgxPool unwraps the underlying *pgxpool.Pool. Returns nil if the Pool is not pgx-backed. Used by call sites that still need pgx-specific features (not
dbos/dbq.go:131
↓ 12 callersMethodWithCancel
Returns a copy of the DBOS context with the given key-value pair
dbos/dbos.go:191
↓ 12 callersFunctionWithQueueName
WithQueueName filters workflows by the specified queue name(s). This is typically used when listing queued workflows.
dbos/workflow.go:3989
↓ 12 callersMethodWithTimeout
Returns a copy that is not canceled when the parent is canceled
dbos/dbos.go:189
↓ 12 callersFunctionWriteStream
WriteStream writes a value to a durable stream with type safety. Streams are append-only and ordered by offset. WriteStream can only be called from w
dbos/workflow.go:2757
↓ 12 callersFunctionretrieveWFQ
(ctx DBOSContext, name string)
dbos/queues_test.go:35
↓ 11 callersMethodRewriteQuery
RewriteQuery converts a canonical Postgres-style query (with $N placeholders and a "%s" schema-prefix slot already rendered) into the dialect's native
dbos/dialect.go:59
next →1–100 of 1,194, ranked by callers