Documentation ¶
Index ¶
- type Configs
- type Database
- func (d *Database) CheckHasTable(table string) (bool, error)
- func (database *Database) Close()
- func (d *Database) Exec(query string, inserts []interface{}) (sql.Result, error)
- func (d *Database) MakeRecord(properties map[string]interface{}, table string) *Record
- func (database *Database) Name() string
- func (d *Database) QueryRaw(query string, escaped []interface{}) ([]map[string]interface{}, error)
- func (d *Database) Row(query string, id int64) (map[string]interface{}, error)
- func (d *Database) RowByStringField(query string, field string) (map[string]interface{}, error)
- func (d *Database) SetSchema(schemaName string)
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Schemaless bool // contains filtered or unexported fields }
Database is a database connection
func MakeSchemaless ¶
MakeSchemaless makes a Database instance without a schema yet
func (*Database) Close ¶
func (database *Database) Close()
Close closes the database instance's connection
func (*Database) MakeRecord ¶
MakeRecord makes a record
func (*Database) RowByStringField ¶
Row gets a row from the query
Click to show internal directories.
Click to hide internal directories.