Documentation ¶
Index ¶
- func Init(ctx context.Context, conn SchemaExecer) error
- func IsNotInitialized(err error) bool
- type CreateParams
- type DBTX
- type Queries
- func (q *Queries) Create(ctx context.Context, db DBTX, arg CreateParams) (RoachMigration, error)
- func (q *Queries) List(ctx context.Context, db DBTX, key string) ([]RoachMigration, error)
- func (q *Queries) ListForUpdate(ctx context.Context, db DBTX, key string) ([]RoachMigration, error)
- func (q *Queries) Update(ctx context.Context, db DBTX, arg UpdateParams) (RoachMigration, error)
- type RoachMigration
- type SchemaExecer
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotInitialized ¶
IsNotInitialized returns true if the error is due to the migrations table not existing
Types ¶
type CreateParams ¶
type Queries ¶
type Queries struct { }
func (*Queries) Create ¶
func (q *Queries) Create(ctx context.Context, db DBTX, arg CreateParams) (RoachMigration, error)
func (*Queries) ListForUpdate ¶
func (*Queries) Update ¶
func (q *Queries) Update(ctx context.Context, db DBTX, arg UpdateParams) (RoachMigration, error)
type RoachMigration ¶
type SchemaExecer ¶ added in v1.1.0
type UpdateParams ¶
type UpdateParams struct { Completed bool Failed bool FailReason sql.NullString ID string }
Click to show internal directories.
Click to hide internal directories.