Documentation
¶
Index ¶
- type DBOption
- type DBOptions
- type DBSource
- type Executor
- func (e *Executor) BuildBuffered(ctx context.Context, sess *Session) ([]any, error)
- func (e *Executor) Exec(ctx context.Context, sess *Session, options ...DBOption) error
- func (e *Executor) Execute(ctx context.Context, aView *view.View, options ...Option) error
- func (e *Executor) ExecuteStmts(ctx context.Context, dbSource DBSource, it StmtIterator, options ...DBOption) error
- type Option
- type Options
- type Session
- type SqlBuilder
- type StmtIterator
- type TemplateStmtIterator
- type Tx
- type TxTransient
- type ViewDBSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) BuildBuffered ¶ added in v0.39.0
BuildBuffered materializes a template execution sequence without executing its DML. Root-owned units of work use the returned order at final completion.
func (*Executor) ExecuteStmts ¶
type Option ¶
Option represents executor session option
func WithParameter ¶
WithParameter return parameter option
type Session ¶
type Session struct {
Session *vsession.Session
SessionHandler *extension.Session
View *view.View
TemplateState *expand.State
DataUnit *expand.DataUnit
// contains filtered or unexported fields
}
func NewSession ¶
type StmtIterator ¶
type TemplateStmtIterator ¶
type TemplateStmtIterator struct {
DataUnit *expand.DataUnit
Data []*expand.SQLStatment
// contains filtered or unexported fields
}
func NewTemplateStmtIterator ¶
func NewTemplateStmtIterator(dataUnit *expand.DataUnit, data []*expand.SQLStatment) *TemplateStmtIterator
func (*TemplateStmtIterator) HasAny ¶
func (t *TemplateStmtIterator) HasAny() bool
func (*TemplateStmtIterator) HasNext ¶
func (t *TemplateStmtIterator) HasNext() bool
func (*TemplateStmtIterator) Next ¶
func (t *TemplateStmtIterator) Next() interface{}
type TxTransient ¶
type TxTransient struct{}
func (*TxTransient) Commit ¶
func (t *TxTransient) Commit() error
func (*TxTransient) Rollback ¶
func (t *TxTransient) Rollback() error
type ViewDBSource ¶
type ViewDBSource struct {
// contains filtered or unexported fields
}
func NewViewDBSource ¶
func NewViewDBSource(view *view.View) *ViewDBSource
func (*ViewDBSource) CanBatch ¶
func (v *ViewDBSource) CanBatch(table string) bool
func (*ViewDBSource) CanBatchGlobally ¶
func (v *ViewDBSource) CanBatchGlobally() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.