github.com/mahkhaled/pop@v4.13.1+incompatible/store.go (about) 1 package pop 2 3 import ( 4 "database/sql" 5 6 "github.com/jmoiron/sqlx" 7 ) 8 9 // Store is an interface that must be implemented in order for Pop 10 // to be able to use the value as a way of talking to a datastore. 11 type store interface { 12 Select(interface{}, string, ...interface{}) error 13 Get(interface{}, string, ...interface{}) error 14 NamedExec(string, interface{}) (sql.Result, error) 15 Exec(string, ...interface{}) (sql.Result, error) 16 PrepareNamed(string) (*sqlx.NamedStmt, error) 17 Transaction() (*Tx, error) 18 Rollback() error 19 Commit() error 20 Close() error 21 }