Documentation
¶
Index ¶
- type DbVar
- type IDb
- type Postgres
- type PostgresSlave
- type SqlMaster
- type SqlSlave
- type SqlTransaction
- type VS
- func (*VS) BuildPostgresConnection(model DbVar) (connectionStr string)
- func (*VS) BuildPostgresInstance(masterConnection string, slaveConnection string) Postgres
- func (*VS) BuildPostgresInstanceSlave(slaveConnection string) Postgres
- func (*VS) Rebind(sqlQuery string) string
- func (*VS) SqlIn(sqlQuery string, sqlPars ...interface{}) (string, []interface{}, error)
- func (*VS) SymbolParsPostgres(sqlQuery *string, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDb ¶
func (*IDb) SetDB ¶
func (slf *IDb) SetDB(obj interface{})
============================================ Created by andy pangaribuan on 2020/04/01 Copyright BoltIdea. All rights reserved. ============================================
func (*IDb) Transaction ¶
func (slf *IDb) Transaction() *SqlTransaction
type PostgresSlave ¶
type PostgresSlave struct {
Slave SqlSlave
}
type SqlMaster ¶
type SqlMaster struct {
// contains filtered or unexported fields
}
func (*SqlMaster) Transaction ¶
func (slf *SqlMaster) Transaction() *SqlTransaction
type SqlSlave ¶
type SqlSlave struct {
// contains filtered or unexported fields
}
type SqlTransaction ¶
type SqlTransaction struct { SqlQueries []string SqlPars [][]interface{} // contains filtered or unexported fields }
func (*SqlTransaction) Commit ¶
func (slf *SqlTransaction) Commit() *v_ext.DbTxError
func (*SqlTransaction) Exec ¶
func (slf *SqlTransaction) Exec(sqlQuery string, sqlPars ...interface{})
type VS ¶
type VS struct{}
var Db *VS
============================================ Created by andy pangaribuan on 2020/04/01 Copyright BoltIdea. All rights reserved. ============================================
func (*VS) BuildPostgresConnection ¶
============================================ Created by andy pangaribuan on 2020/04/01 Copyright BoltIdea. All rights reserved. ============================================
func (*VS) BuildPostgresInstance ¶
func (*VS) BuildPostgresInstanceSlave ¶
Click to show internal directories.
Click to hide internal directories.