Documentation ¶
Index ¶
- Variables
- func NewPGXPostgresqlDB(cfg config.PGXDbConfig) (db ports.IBaseDb, err error)
- func NewPQPostgresqlDB(cfg config.PQDbConfig) (db ports.IBaseDb, err error)
- func NewSQLXPostgresqlDB(cfg config.SQLXDbConfig) (db ports.IBaseDb, err error)
- type PgxDb
- func (s *PgxDb) Delete(query string, dat ...interface{}) (rows_affected int64, err error)
- func (s *PgxDb) Exec(query string, dat ...interface{}) (rows_affected int64, err error)
- func (s *PgxDb) Insert(query string, dat ...interface{}) (data int64, err error)
- func (s *PgxDb) Select(query string, dat ...interface{}) (data []byte, err error)
- func (s *PgxDb) Update(query string, dat ...interface{}) (rows_affected int64, err error)
- type SqlDb
- func (s *SqlDb) Delete(query string, dat ...interface{}) (rows_affected int64, err error)
- func (s *SqlDb) Exec(query string, dat ...interface{}) (rows_affected int64, err error)
- func (s *SqlDb) Insert(query string, dat ...interface{}) (data int64, err error)
- func (s *SqlDb) Select(query string, dat ...interface{}) (data []byte, err error)
- func (s *SqlDb) Update(query string, dat ...interface{}) (rows_affected int64, err error)
- type SqlxDb
- func (s *SqlxDb) Delete(query string, dat ...interface{}) (rows_affected int64, err error)
- func (s *SqlxDb) Exec(query string, dat ...interface{}) (rows_affected int64, err error)
- func (s *SqlxDb) Insert(query string, dat ...interface{}) (data int64, err error)
- func (s *SqlxDb) Select(query string, dat ...interface{}) (data []byte, err error)
- func (s *SqlxDb) Update(query string, dat ...interface{}) (rows_affected int64, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConnStr string
)
View Source
var (
PQConnStr string
)
View Source
var (
SQLXConnStr string
)
Functions ¶
func NewPGXPostgresqlDB ¶
func NewPGXPostgresqlDB(cfg config.PGXDbConfig) (db ports.IBaseDb, err error)
NewPGXPostgresqlDB Return new Postgresql client
func NewPQPostgresqlDB ¶
func NewPQPostgresqlDB(cfg config.PQDbConfig) (db ports.IBaseDb, err error)
NewPQPostgresqlDB Return new Postgresql client
func NewSQLXPostgresqlDB ¶
func NewSQLXPostgresqlDB(cfg config.SQLXDbConfig) (db ports.IBaseDb, err error)
NewSQLXPostgresqlDB Return new Postgresql client
Types ¶
type PgxDb ¶ added in v0.1.2
type PgxDb struct {
// contains filtered or unexported fields
}
type SqlDb ¶ added in v0.1.2
type SqlDb struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.