Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxRows = 100
View Source
const DefaultTimeout = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func (*Executor) Execute ¶
Execute runs a read-only (SELECT/WITH) query; mutating statements are rejected by validateReadOnlyQuery, so this executor performs no side effects and needs no idempotency handling itself. Custom SQL *write* tools built on this pattern must instead deduplicate by the framework-injected idempotency key (core.IdempotencyKeyFromContext): the key is stable across recovery replays of the same logical execution, so writes should use it as a UPSERT conflict key / INSERT IGNORE discriminator or a dedupe-table primary key rather than issuing a bare INSERT.
Click to show internal directories.
Click to hide internal directories.