Documentation ¶
Index ¶
- Variables
- type Config
- type Conn
- func (conn *Conn) Begin() error
- func (conn *Conn) Commit() error
- func (conn *Conn) Exec(query string, args ...any) (sql.Result, error)
- func (conn *Conn) NamedExec(query string, arg any) (sql.Result, error)
- func (conn *Conn) NamedQuery(query string, args any) (*sqlx.Rows, error)
- func (conn *Conn) QueryRow(query string, args ...any) *sql.Row
- func (conn *Conn) Rebind(s string) string
- func (conn *Conn) Rollback() error
- func (conn *Conn) Select(dest interface{}, query string, args ...interface{}) error
- func (conn *Conn) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type SSLMode
- type Transactioner
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTransactionNotStarted = errors.New("transaction not started") ErrTransactionAlreadyStarted = errors.New("transaction already started") )
View Source
var TryDomain = "hiper.dk"
TryDomain is current just set to hiper.dk since I work at hiper
Functions ¶
This section is empty.
Types ¶
type Config ¶
func GetDatabaseEntryConnection ¶ added in v0.0.3
func NewConfigFromEnv ¶ added in v0.6.0
func NewConfigFromEnv() *Config
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func ConnectFromEnv ¶
func ConnectFromEnv() *Conn
func (*Conn) NamedQuery ¶ added in v0.0.3
type Transactioner ¶
Click to show internal directories.
Click to hide internal directories.