Documentation ¶
Index ¶
- func DatabaseDrivers() []string
- func EnableDatabase(engine *common.ScriptEngine) error
- type Database
- func (database *Database) Begin() error
- func (database *Database) Close() error
- func (database *Database) Commit() error
- func (database *Database) Execute(sqlcmd string, args ...any) (int64, error)
- func (database *Database) Init(driver, dsn string) error
- func (database *Database) Open() error
- func (database *Database) Query(sqlcmd string, args ...any) (*Resultset, error)
- func (database *Database) Rollback() error
- type Field
- type Resultset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseDrivers ¶
func DatabaseDrivers() []string
func EnableDatabase ¶
func EnableDatabase(engine *common.ScriptEngine) error
Types ¶
type Database ¶
type Database struct { Driver string DSN string Timeout time.Duration Isolation sql.IsolationLevel // contains filtered or unexported fields }
func NewDatabase ¶
Click to show internal directories.
Click to hide internal directories.