Documentation ¶
Index ¶
- Variables
- type IL
- type IM
- type SL
- type SM
- type SQLDriver
- func (ds *SQLDriver) BeginTransaction() (interface{}, error)
- func (ds *SQLDriver) CheckHashtable(hashtable string) error
- func (ds *SQLDriver) CloseConnection() error
- func (ds *SQLDriver) CommitTransaction(trans interface{}) error
- func (ds *SQLDriver) Connection() struct{ ... }
- func (ds *SQLDriver) CreateConnection(alias, connStr string) error
- func (ds *SQLDriver) CreateDatabase(logData []SM) ([]SM, error)
- func (ds *SQLDriver) Properties() struct{ ... }
- func (ds *SQLDriver) Query(queries []nt.Query, trans interface{}) ([]IM, error)
- func (ds *SQLDriver) QueryKey(options IM, trans interface{}) (result []IM, err error)
- func (ds *SQLDriver) QuerySQL(sqlString string, params []interface{}, trans interface{}) ([]IM, error)
- func (ds *SQLDriver) RollbackTransaction(trans interface{}) error
- func (ds *SQLDriver) Update(options nt.Update) (int64, error)
- func (ds *SQLDriver) UpdateHashtable(hashtable, refname, value string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Drivers []string
Drivers -> Nervatura linked database drivers
Functions ¶
This section is empty.
Types ¶
type SQLDriver ¶
type SQLDriver struct { Config IM // contains filtered or unexported fields }
SQLDriver a go database/sql DataDriver
func (*SQLDriver) BeginTransaction ¶
BeginTransaction begins a transaction and returns an *sql.Tx
func (*SQLDriver) CheckHashtable ¶
CheckHashtable - check/create a password ref. table
func (*SQLDriver) CloseConnection ¶
func (*SQLDriver) CommitTransaction ¶
CommitTransaction commit a *sql.Tx transaction
func (*SQLDriver) Connection ¶
Connection - returns the database connection
func (*SQLDriver) CreateConnection ¶
CreateConnection create a new database connection
func (*SQLDriver) CreateDatabase ¶
CreateDatabase - create a Nervatura Database
func (*SQLDriver) Properties ¶
Properties - DataDriver features
func (*SQLDriver) QuerySQL ¶
func (ds *SQLDriver) QuerySQL(sqlString string, params []interface{}, trans interface{}) ([]IM, error)
QuerySQL executes a SQL query
func (*SQLDriver) RollbackTransaction ¶
RollbackTransaction rollback a *sql.Tx transaction
func (*SQLDriver) Update ¶
Update is a basic nosql friendly update/insert/delete and returns the update/insert id
func (*SQLDriver) UpdateHashtable ¶
UpdateHashtable - set a password
Click to show internal directories.
Click to hide internal directories.