Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dbos-inc/dbos-transact-golang
/ functions
Functions
1,194 in github.com/dbos-inc/dbos-transact-golang
⨍
Functions
1,194
◇
Types & classes
323
↓ 462 callers
Method
Run
(ctx DBOSContext, input string)
dbos/workflows_test.go:415
↓ 397 callers
Method
Error
Error returns a formatted error message including the error code. This implements the standard Go error interface.
dbos/errors.go:51
↓ 395 callers
Method
GetResult
(opts ...GetResultOption)
dbos/workflow.go:109
↓ 345 callers
Function
RegisterWorkflow
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 callers
Function
RunWorkflow
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 callers
Method
GetWorkflowID
Deprecate a patch
dbos/dbos.go:161
↓ 132 callers
Function
setupDBOS
* Test database setup */
dbos/utils_test.go:187
↓ 116 callers
Method
Scan
(dest ...any)
dbos/dbq.go:73
↓ 108 callers
Method
renderSQL
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 callers
Method
Close
()
dbos/dbq.go:43
↓ 103 callers
Method
Set
()
dbos/utils_test.go:256
↓ 102 callers
Function
WithWorkflowID
WithWorkflowID sets a custom workflow ID instead of generating one automatically.
dbos/workflow.go:874
↓ 100 callers
Function
Launch
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 callers
Method
GetStatus
Wait for workflow completion and return the result
dbos/workflow.go:110
↓ 99 callers
Method
SchemaPrefix
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 callers
Function
WithQueue
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 callers
Method
Exec
(ctx context.Context, query string, args ...any)
dbos/dbq.go:26
↓ 92 callers
Method
QueryRow
(ctx context.Context, query string, args ...any)
dbos/dbq.go:28
↓ 89 callers
Function
RunAsStep
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 callers
Function
withRetrierLogger
withRetrierLogger sets the logger for the retrier
dbos/system_database.go:5468
↓ 78 callers
Function
NewEvent
()
dbos/utils_test.go:242
↓ 74 callers
Method
Wait
()
dbos/utils_test.go:248
↓ 72 callers
Method
Err
()
dbos/dbq.go:66
↓ 67 callers
Function
GetWorkflowSteps
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 callers
Function
WithWorkflowName
(name string)
dbos/workflow.go:594
↓ 62 callers
Method
Name
Name returns a stable identifier for the dialect.
dbos/dialect.go:49
↓ 60 callers
Function
WithStepName
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 callers
Method
GetApplicationVersion
Delete workflows and all their associated data Accessors
dbos/dbos.go:182
↓ 56 callers
Method
Is
Implements https://pkg.go.dev/errors#Is
dbos/errors.go:62
↓ 56 callers
Method
Sleep
Read values from a durable stream asynchronously
dbos/dbos.go:158
↓ 54 callers
Function
retryWithResult
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 callers
Method
Done
()
dbos/dbos.go:312
↓ 49 callers
Function
ListWorkflows
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 callers
Method
Decode
Decode deserializes a string from the database back into a value.
dbos/serialization.go:32
↓ 48 callers
Function
Shutdown
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 callers
Method
Value
(key any)
dbos/dbos.go:320
↓ 46 callers
Method
sendResponse
(response any, responseType string)
dbos/conductor.go:1641
↓ 45 callers
Method
Query
(ctx context.Context, query string, args ...any)
dbos/dbq.go:27
↓ 43 callers
Function
NewDBOSContext
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 callers
Function
NewWorkflowQueue
NewWorkflowQueue creates a new workflow queue with the specified name and configuration options. Deprecated: Use [RegisterQueue], which persists the
dbos/queue.go:257
↓ 41 callers
Function
Enqueue
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 callers
Function
registerWFQ
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 callers
Function
backendDatabaseURL
*testing.T -> string; ensures setupDBOS and follow-up callers (e.g. NewClient) share the same sqlite file.
dbos/utils_test.go:43
↓ 39 callers
Function
queueEntriesAreCleanedUp
(ctx DBOSContext)
dbos/utils_test.go:284
↓ 38 callers
Method
ListWorkflows
(opts ...ListWorkflowsOption)
dbos/client.go:31
↓ 37 callers
Method
toSlice
()
dbos/conductor_protocol.go:31
↓ 36 callers
Method
Next
()
dbos/dbq.go:64
↓ 36 callers
Method
Shutdown
(timeout time.Duration)
dbos/client.go:62
↓ 35 callers
Function
WithEnqueueApplicationVersion
WithEnqueueApplicationVersion overrides the application version for the enqueued workflow.
dbos/client.go:116
↓ 33 callers
Function
newStepExecutionError
(workflowID, stepName string, err error)
dbos/errors.go:171
↓ 33 callers
Function
testAllSerializationPaths
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 callers
Method
Clear
()
dbos/utils_test.go:263
↓ 32 callers
Function
recoverPendingWorkflows
(ctx *dbosContext, executorIDs []string)
dbos/recovery.go:3
↓ 32 callers
Function
retry
retry executes a function with retry logic using functional optionsr
dbos/system_database.go:5483
↓ 31 callers
Function
newWorkflowExecutionError
(workflowID string, err error)
dbos/errors.go:162
↓ 30 callers
Method
Encode
Encode serializes a value to a string representation for database storage.
dbos/serialization.go:30
↓ 29 callers
Method
Debounce
(ctx DBOSContext, key string, delay time.Duration, input P, opts ...WorkflowOption)
dbos/debouncer.go:164
↓ 28 callers
Method
Rollback
(ctx context.Context)
dbos/dbq.go:35
↓ 27 callers
Function
getDatabaseURL
getDatabaseURL returns a default database URL if none is configured, following dbos/utils_test.go pattern
cmd/dbos/cli_integration_test.go:75
↓ 26 callers
Function
GetWorkflowID
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 callers
Method
Commit
(ctx context.Context)
dbos/dbq.go:34
↓ 25 callers
Method
sendTextMessage
sendTextMessage sends a text WebSocket message to the connected client
dbos/conductor_test.go:222
↓ 24 callers
Method
Launch
Context Lifecycle
dbos/dbos.go:142
↓ 24 callers
Function
SetEvent
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 callers
Function
WithQueueBasePollingInterval
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 callers
Function
setWorkflowStatusPending
setWorkflowStatusPending sets the workflow's status to PENDING in the DB (clearing output, error, started_at_epoch_ms).
dbos/utils_test.go:270
↓ 23 callers
Function
WithWorkflowIDs
WithWorkflowIDs filters workflows by the specified workflow IDs.
dbos/workflow.go:3897
↓ 22 callers
Method
BeginTx
(ctx context.Context, opts TxOptions)
dbos/dbq.go:41
↓ 21 callers
Function
NewClient
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 callers
Function
WithGlobalConcurrency
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 callers
Function
WithWorkflowIDPrefix
WithWorkflowIDPrefix filters workflows by workflow ID prefix(es).
dbos/workflow.go:3967
↓ 21 callers
Method
shutdown
(ctx context.Context, timeout time.Duration)
dbos/system_database.go:31
↓ 20 callers
Function
Send
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 callers
Method
launch
SysDB management
dbos/system_database.go:30
↓ 19 callers
Method
waitForConnection
(timeout time.Duration)
dbos/conductor_test.go:207
↓ 18 callers
Function
CreateSchedule
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 callers
Function
WithDeduplicationID
WithDeduplicationID sets a deduplication ID for a queue workflow.
dbos/workflow.go:908
↓ 18 callers
Function
WithTimeout
WithTimeout returns a copy of the DBOS context that is canceled after the given timeout.
dbos/dbos.go:502
↓ 18 callers
Function
resetTestDatabase
* 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 callers
Function
resolveEncoder
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 callers
Function
runAsTxn
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 callers
Method
addWhereAny
Manually expand array parameters for databases that don't support them
dbos/system_database.go:5346
↓ 16 callers
Function
WithEnqueueWorkflowID
WithEnqueueWorkflowID sets a custom workflow ID instead of generating one automatically.
dbos/client.go:109
↓ 15 callers
Function
newConductor
(dbosCtx *dbosContext, config conductorConfig)
dbos/conductor.go:73
↓ 14 callers
Function
GetWorkflowAggregates
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 callers
Method
getURL
()
dbos/conductor_test.go:163
↓ 14 callers
Method
listWorkflows
(ctx context.Context, input listWorkflowsDBInput)
dbos/system_database.go:36
↓ 14 callers
Function
newMockWebSocketServer
()
dbos/conductor_test.go:44
↓ 13 callers
Function
GetSchedule
GetSchedule gets a schedule by name. Example: schedule, err := dbos.GetSchedule(ctx, "my-schedule")
dbos/workflow.go:5083
↓ 13 callers
Function
WithStatus
WithStatus filters workflows by the specified list of statuses.
dbos/workflow.go:3904
↓ 13 callers
Method
nextStepID
nextStepID returns the next step ID and increments the counter
dbos/workflow.go:83
↓ 12 callers
Method
GetSchedule
(scheduleName string)
dbos/client.go:49
↓ 12 callers
Function
ListSchedules
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 callers
Function
PgxPool
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 callers
Method
WithCancel
Returns a copy of the DBOS context with the given key-value pair
dbos/dbos.go:191
↓ 12 callers
Function
WithQueueName
WithQueueName filters workflows by the specified queue name(s). This is typically used when listing queued workflows.
dbos/workflow.go:3989
↓ 12 callers
Method
WithTimeout
Returns a copy that is not canceled when the parent is canceled
dbos/dbos.go:189
↓ 12 callers
Function
WriteStream
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 callers
Function
retrieveWFQ
(ctx DBOSContext, name string)
dbos/queues_test.go:35
↓ 11 callers
Method
RewriteQuery
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