Documentation ¶
Index ¶
- Variables
- func FromSecs(s float64) time.Time
- func InSavepoint(ctx context.Context, conn *sqlite.Conn, name string, transaction func() error) (err error)
- func QuoteIdentifier(s string) string
- func QuoteText(s string) string
- func ToSecs(t time.Time) float64
- type DB
- func (db *DB) Close() error
- func (db *DB) CreateRunner(ctx context.Context, runner *com.Runner) error
- func (db *DB) GetRunnerByToken(ctx context.Context, token string, getDeleted bool) (*com.Runner, error)
- func (db *DB) GetRunnerTags(ctx context.Context, runner *com.Runner) error
- func (db *DB) Migrate(ctx context.Context) error
- func (db *DB) SetRunnerUpdatedTime(ctx context.Context, runner *com.Runner, t time.Time) error
- func (db *DB) TagRunner(ctx context.Context, runner *com.Runner, tags []string) (err error)
- type Patch
- type PatchSet
- type ReleaseError
- type RollbackError
- type SimplePatch
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConnection = errors.New("no connection")
Functions ¶
func InSavepoint ¶
func QuoteIdentifier ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) GetRunnerByToken ¶
func (*DB) GetRunnerTags ¶
func (*DB) SetRunnerUpdatedTime ¶
type ReleaseError ¶
func (*ReleaseError) Error ¶
func (e *ReleaseError) Error() string
type RollbackError ¶
func (*RollbackError) Error ¶
func (e *RollbackError) Error() string
type SimplePatch ¶
type SimplePatch struct {
// contains filtered or unexported fields
}
func NewSimplePatch ¶
func StatementPatch ¶
func StatementPatch(name, component string, version int, sqlStatements ...string) *SimplePatch
func (*SimplePatch) Component ¶
func (p *SimplePatch) Component() string
func (*SimplePatch) Name ¶
func (p *SimplePatch) Name() string
func (*SimplePatch) Version ¶
func (p *SimplePatch) Version() int
Click to show internal directories.
Click to hide internal directories.