Documentation ¶
Index ¶
- type Database
- func (db *Database) BeginTransaction() bool
- func (db *Database) Close()
- func (db *Database) CommitTransaction() bool
- func (db *Database) Count(table string) int64
- func (db *Database) CountWhereInt(table string, field string, value int) int64
- func (db *Database) Create(filePath, scheme string) bool
- func (db *Database) DefaultPragmas() bool
- func (db *Database) Delete(table, idColumnName string, idValue int) bool
- func (db *Database) ErrorCode() int
- func (db *Database) ErrorString() string
- func (db *Database) ExecQuery(query string) bool
- func (db *Database) FinishTransaction(success bool) bool
- func (db *Database) Insert(table string, fields []*field.Field) (int64, bool)
- func (db *Database) LastInsertedRowID() int64
- func (db *Database) Open(filePath string) bool
- func (db *Database) Remove() bool
- func (db *Database) RollbackTransaction() bool
- func (db *Database) Select(query string) row.Result
- func (db *Database) SelectAndHandle(query string, handler func(row.Row))
- func (db *Database) Update(table string, fields []*field.Field) bool
- func (db *Database) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) BeginTransaction ¶
func (*Database) CommitTransaction ¶
func (*Database) CountWhereInt ¶
func (*Database) DefaultPragmas ¶
func (*Database) ErrorString ¶
func (*Database) FinishTransaction ¶
func (*Database) LastInsertedRowID ¶
func (*Database) RollbackTransaction ¶
func (*Database) SelectAndHandle ¶
Click to show internal directories.
Click to hide internal directories.