postgres

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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
}

func (*PgxDb) Delete added in v0.1.2

func (s *PgxDb) Delete(query string, dat ...interface{}) (rows_affected int64, err error)

func (*PgxDb) Exec added in v0.1.2

func (s *PgxDb) Exec(query string, dat ...interface{}) (rows_affected int64, err error)

func (*PgxDb) Insert added in v0.1.2

func (s *PgxDb) Insert(query string, dat ...interface{}) (data int64, err error)

func (*PgxDb) Select added in v0.1.2

func (s *PgxDb) Select(query string, dat ...interface{}) (data []byte, err error)

func (*PgxDb) Update added in v0.1.2

func (s *PgxDb) Update(query string, dat ...interface{}) (rows_affected int64, err error)

type SqlDb added in v0.1.2

type SqlDb struct {
	// contains filtered or unexported fields
}

func (*SqlDb) Delete added in v0.1.2

func (s *SqlDb) Delete(query string, dat ...interface{}) (rows_affected int64, err error)

func (*SqlDb) Exec added in v0.1.2

func (s *SqlDb) Exec(query string, dat ...interface{}) (rows_affected int64, err error)

func (*SqlDb) Insert added in v0.1.2

func (s *SqlDb) Insert(query string, dat ...interface{}) (data int64, err error)

func (*SqlDb) Select added in v0.1.2

func (s *SqlDb) Select(query string, dat ...interface{}) (data []byte, err error)

func (*SqlDb) Update added in v0.1.2

func (s *SqlDb) Update(query string, dat ...interface{}) (rows_affected int64, err error)

type SqlxDb added in v0.1.2

type SqlxDb struct {
	// contains filtered or unexported fields
}

func (*SqlxDb) Delete added in v0.1.2

func (s *SqlxDb) Delete(query string, dat ...interface{}) (rows_affected int64, err error)

func (*SqlxDb) Exec added in v0.1.2

func (s *SqlxDb) Exec(query string, dat ...interface{}) (rows_affected int64, err error)

func (*SqlxDb) Insert added in v0.1.2

func (s *SqlxDb) Insert(query string, dat ...interface{}) (data int64, err error)

func (*SqlxDb) Select added in v0.1.2

func (s *SqlxDb) Select(query string, dat ...interface{}) (data []byte, err error)

func (*SqlxDb) Update added in v0.1.2

func (s *SqlxDb) Update(query string, dat ...interface{}) (rows_affected int64, err error)

Directories

Path Synopsis
base_repo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL