Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnDataType ¶
type ColumnDataType string
type DatabaseType ¶
type DatabaseType string
type GlobalThisReader ¶
type PersistenceContext ¶
type PreparedQuery ¶
type PreparedQuery struct {
Query string `json:"query"`
Bind []any `json:"bind"`
QueryType QueryType `json:"queryType"`
CheckPoint []*PreparedQuery `json:"checkPoint"`
DatabaseUpdater []*PreparedQuery `json:"databaseUpdater"`
ResultEnricher []*PreparedQuery `json:"resultEnricher"`
}
type QueryResult ¶
type Repository ¶
type Repository interface {
BindNamed(query string, arg any) (string, []any, error)
Find(query string, args ...any) (map[string]any, error)
FindAll(query string, args ...any) ([]map[string]any, error)
Insert(query string, args ...any) (int64, error)
InsertBatch(query string, args ...any) (int64, error)
// InsertNamedBatch
// Deprecated
InsertNamedBatch(query string, args []any) (int64, error)
Update(query string, args ...any) (int64, error)
Delete(query string, args ...any) (int64, error)
Begin() error
Commit() error
Rollback() error
Exec(query string, args ...any) error
DriverName() string
QueryTotal() int64
SetTraceId(traceId string)
}
type ScriptRunner ¶
Click to show internal directories.
Click to hide internal directories.