Documentation ¶
Index ¶
- type NoSqlDB
- func (nsdb *NoSqlDB) AllDocs(ctx context.Context, options ...kivik.Options) (*kivik.Rows, error)
- func (nsdb *NoSqlDB) Exec(query string, args ...interface{}) (sql.Result, error)
- func (nsdb *NoSqlDB) Find(ctx context.Context, query interface{}) (*kivik.Rows, error)
- func (nsdb *NoSqlDB) Get(ctx context.Context, docID string, options ...kivik.Options) (*kivik.Row, error)
- func (nsdb *NoSqlDB) Prepare(query string) (*sql.Stmt, error)
- func (nsdb *NoSqlDB) Put(ctx context.Context, docID string, doc interface{}, options ...kivik.Options) (rev string, err error)
- func (nsdb *NoSqlDB) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (nsdb *NoSqlDB) QueryNoSql(ctx context.Context, ddoc string, view string) (*kivik.Rows, error)
- func (nsdb *NoSqlDB) QueryRow(query string, args ...interface{}) *sql.Row
- type SqlConnTx
- func (sct *SqlConnTx) Commit() error
- func (sdb *SqlConnTx) Exec(query string, args ...interface{}) (sql.Result, error)
- func (sdb *SqlConnTx) Prepare(query string) (*sql.Stmt, error)
- func (sdb *SqlConnTx) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (sdb *SqlConnTx) QueryRow(query string, args ...interface{}) *sql.Row
- func (sct *SqlConnTx) Rollback() error
- func (sct *SqlConnTx) TxBegin() (gdbc.SqlGdbc, error)
- func (sct *SqlConnTx) TxEnd(txFunc func() error) error
- type SqlDBTx
- func (sdt *SqlDBTx) AllDocs(ctx context.Context, options ...kivik.Options) (*kivik.Rows, error)
- func (cdt *SqlDBTx) Commit() error
- func (sdt *SqlDBTx) Exec(query string, args ...interface{}) (sql.Result, error)
- func (sdt *SqlDBTx) Find(ctx context.Context, query interface{}) (*kivik.Rows, error)
- func (sdt *SqlDBTx) Get(ctx context.Context, docID string, options ...kivik.Options) (*kivik.Row, error)
- func (sdt *SqlDBTx) Prepare(query string) (*sql.Stmt, error)
- func (sdt *SqlDBTx) Put(ctx context.Context, docID string, doc interface{}, options ...kivik.Options) (rev string, err error)
- func (sdt *SqlDBTx) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (sdt *SqlDBTx) QueryNoSql(ctx context.Context, ddoc string, view string) (*kivik.Rows, error)
- func (sdt *SqlDBTx) QueryRow(query string, args ...interface{}) *sql.Row
- func (cdt *SqlDBTx) Rollback() error
- func (sdt *SqlDBTx) TxBegin() (gdbc.SqlGdbc, error)
- func (cdt *SqlDBTx) TxEnd(txFunc func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoSqlDB ¶
NoSqlDB is the concrete implementation of NoSqlGdbc
func (*NoSqlDB) Exec ¶
the followings are dummy implementation for SqlGdbc After implementing the following, NoSqlDB will also implements SqlGdbc interface. This making the courseDataServieFactory possible. The functions will never be called, it just makes the interface available If you don't need something similar to courseDataServiceFactory, you can remove the following code.
func (*NoSqlDB) QueryNoSql ¶
type SqlConnTx ¶
SqlConnTx is the concrete implementation of sqlGdbc by using *sql.Tx
type SqlDBTx ¶
SqlDBTx is the concrete implementation of sqlGdbc by using *sql.DB
func (*SqlDBTx) QueryNoSql ¶
The followings are dummy implementation for noSqlGdbc. After implementing the following, SqlDBTx will also implements NoSqlGdbc interface. This making the courseDataServiceFactory possible. The functions will never be called, it just makes the interface available If you don't need something similar to courseDataServiceFactory, you can remove the following code.