Documentation ¶
Index ¶
- func DBModelToFields(dbModel DBModel) (*[]Field, error)
- func RowsToFields(rows *sql.Rows) (*[]Field, error)
- type DB
- type DBModel
- type Field
- type FieldList
- type FieldLists
- type SqliteDB
- func (db *SqliteDB) Close() error
- func (db *SqliteDB) CreateTable(model DBModel) error
- func (db *SqliteDB) DropTable(model DBModel) error
- func (db *SqliteDB) Exec(query string, args ...interface{}) (*SqliteExecResult, error)
- func (db *SqliteDB) List(object interface{}, query string, args ...interface{}) error
- func (db *SqliteDB) QueryInto(object interface{}, query string, args ...interface{}) error
- func (db *SqliteDB) QueryRowInto(object interface{}, query string, args ...interface{}) error
- type SqliteExecResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBModelToFields ¶
Types ¶
type FieldLists ¶
type FieldLists []FieldList
func (*FieldLists) Marshal ¶
func (fieldLists *FieldLists) Marshal() ([]byte, error)
type SqliteDB ¶
type SqliteDB struct {
// contains filtered or unexported fields
}
func NewSqliteDB ¶
func (*SqliteDB) CreateTable ¶
func (*SqliteDB) Exec ¶
func (db *SqliteDB) Exec(query string, args ...interface{}) (*SqliteExecResult, error)
func (*SqliteDB) QueryRowInto ¶
type SqliteExecResult ¶
Click to show internal directories.
Click to hide internal directories.