Documentation ¶
Index ¶
- type Db
- func (r *Db) Begin() (interface{}, error)
- func (r *Db) Close()
- func (r *Db) Commit(tran interface{}) error
- func (r *Db) CountRows(tx interface{}, tableName string) (rowCount int64, err error)
- func (r *Db) CurrentSession() *domain.Session
- func (r *Db) Executor(tran interface{}) gorp.SqlExecutor
- func (r *Db) GetTransaction(tx interface{}) gorp.SqlExecutor
- func (r *Db) Register()
- func (r *Db) Rollback(tran interface{}) error
- func (r *Db) SequenceExists(tx interface{}, sequenceName string) bool
- func (r *Db) SequenceLastValue(tx interface{}, sequenceName string) (curr int64, err error)
- func (r *Db) SequenceNextValue(tx interface{}, sequenceName string) (next int64, err error)
- func (r *Db) SequenceRemove(tx interface{}, seqName string) (err error)
- func (r *Db) SetCurrentSession(session *domain.Session)
- func (r *Db) SqlTraceOff()
- func (r *Db) SqlTraceOn()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
func (*Db) CurrentSession ¶
func (*Db) Executor ¶
func (r *Db) Executor(tran interface{}) gorp.SqlExecutor
func (*Db) GetTransaction ¶
func (r *Db) GetTransaction(tx interface{}) gorp.SqlExecutor
func (*Db) SequenceExists ¶
func (*Db) SequenceLastValue ¶
Devuelve el actual valor, en caso que no tenga ninguno devuelve cero
func (*Db) SequenceNextValue ¶
func (*Db) SequenceRemove ¶
func (*Db) SetCurrentSession ¶
func (*Db) SqlTraceOff ¶
func (r *Db) SqlTraceOff()
func (*Db) SqlTraceOn ¶
func (r *Db) SqlTraceOn()
Click to show internal directories.
Click to hide internal directories.