Documentation
¶
Index ¶
- func GetPgStorage(connectStr string) (*pgxpool.Pool, error)
- func SetConnectOption(source map[string]string)
- func SetDbFilePath(filePath string)
- type DBStatus
- type TPGStorage
- func (pg *TPGStorage) Close()
- func (pg *TPGStorage) Execute(strSQL string, args ...interface{}) (int64, error)
- func (pg *TPGStorage) ExecuteDDLs(ctx context.Context, ddlList []string) error
- func (pg *TPGStorage) ExecuteSQL(ctx context.Context, strSQL string, args ...interface{}) error
- func (pg *TPGStorage) GetConn(ctx context.Context) (*pgxpool.Conn, error)
- func (pg *TPGStorage) GetSchema() string
- func (pg *TPGStorage) QuerySQL(strSQL string, args ...interface{}) (pgx.Rows, error)
- type TStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConnectOption ¶
func SetDbFilePath ¶
func SetDbFilePath(filePath string)
Types ¶
type TPGStorage ¶
type TPGStorage struct {
// contains filtered or unexported fields
}
func GetPgServ ¶
func GetPgServ() (*TPGStorage, error)
func (*TPGStorage) Close ¶
func (pg *TPGStorage) Close()
func (*TPGStorage) Execute ¶
func (pg *TPGStorage) Execute(strSQL string, args ...interface{}) (int64, error)
func (*TPGStorage) ExecuteDDLs ¶
func (pg *TPGStorage) ExecuteDDLs(ctx context.Context, ddlList []string) error
func (*TPGStorage) ExecuteSQL ¶
func (pg *TPGStorage) ExecuteSQL(ctx context.Context, strSQL string, args ...interface{}) error
func (*TPGStorage) GetSchema ¶
func (pg *TPGStorage) GetSchema() string
func (*TPGStorage) QuerySQL ¶
func (pg *TPGStorage) QuerySQL(strSQL string, args ...interface{}) (pgx.Rows, error)
type TStorage ¶
func (*TStorage) ExecuteSQL ¶
Click to show internal directories.
Click to hide internal directories.