Documentation
¶
Index ¶
- func InitSQLDBClient() error
- type SQLDB
- func (s *SQLDB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (s *SQLDB) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (s *SQLDB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- type SQLDBService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSQLDBClient ¶
func InitSQLDBClient() error
Types ¶
type SQLDB ¶
type SQLDB struct {
// contains filtered or unexported fields
}
func (*SQLDB) ExecContext ¶
func (*SQLDB) QueryContext ¶
type SQLDBService ¶
type SQLDBService interface { QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) }
var SQLDBClient SQLDBService
Click to show internal directories.
Click to hide internal directories.