Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrKeyNotFound = ""
)
View Source
const LogLevel = 7
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigPostgreSql ¶
type ConfigPostgreSql struct {
Connection string
}
type IClient ¶
type IClient interface { PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) Prepare(query string) (*sql.Stmt, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) Exec(query string, args ...interface{}) (sql.Result, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row QueryRow(query string, args ...interface{}) *sql.Row }
type IDB ¶
type IDB interface { IClient PingContext(ctx context.Context) error Ping() error Close() error SetMaxIdleConns(n int) SetMaxOpenConns(n int) SetConnMaxLifetime(d time.Duration) Stats() sql.DBStats BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) Begin() (*sql.Tx, error) Driver() driver.Driver }
type NullFloat64 ¶
type NullFloat64 struct {
sql.NullFloat64
}
type NullString ¶
type NullString struct {
sql.NullString
}
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
func (NullString) UnmarshalJSON ¶
func (ns NullString) UnmarshalJSON(v interface{}) error
type NullStringArray ¶
type NullStringArray struct { Slice []string Valid bool // Valid is true if array string is not NULL }
func (*NullStringArray) Scan ¶
func (nsa *NullStringArray) Scan(value interface{}) error
Scan implements the Scanner interface.
Click to show internal directories.
Click to hide internal directories.