Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Table(name string) Database ID(id string) Database FindOne(document interface{}, filter ...interface{}) (bool, error) FindMany(documents interface{}, filter interface{}) error InsertOne(document interface{}) (id string, err error) InsertMany(documents []interface{}) ([]string, error) UpdateOne(document interface{}) error DeleteOne(filter ...interface{}) error Query(query string, args ...interface{}) (*sql.Rows, error) Exec(query string, args ...interface{}) (sql.Result, error) }
Click to show internal directories.
Click to hide internal directories.