Documentation
¶
Index ¶
- func DatabaseDrivers() []string
- 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 ¶ added in v1.8.4
func DatabaseDrivers() []string
Types ¶
type Database ¶ added in v1.8.4
type Database struct {
Driver string
DSN string
Timeout time.Duration
Isolation sql.IsolationLevel
Conn *sql.DB
// contains filtered or unexported fields
}
func NewDatabase ¶ added in v1.8.4
Click to show internal directories.
Click to hide internal directories.