Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilderFor ¶ added in v1.14.0
BuilderFor returns a squirrel statement builder which decorates the provided sql.DB configured for the provided driver.
func WithMigrate ¶ added in v1.14.0
func WithMigrate(o *Options)
func WithSSLDisabled ¶ added in v1.14.0
func WithSSLDisabled(o *Options)
Types ¶
type Driver ¶
type Driver uint8
Driver represents a database driver
const ( // SQLite ... SQLite Driver // Postgres ... Postgres // MySQL ... MySQL // CockroachDB ... CockroachDB )
func (Driver) AdaptError ¶ added in v1.15.0
AdaptError converts specific known-driver errors into wrapped storage errors.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is responsible for migrating the database schema
func NewMigrator ¶
NewMigrator creates a new Migrator
type NullableTimestamp ¶ added in v1.15.0
type NullableTimestamp Timestamp
func (*NullableTimestamp) Scan ¶ added in v1.15.0
func (t *NullableTimestamp) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.