builder

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package builder provides query builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct{}

Builder describes query builder.

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new query buider.

func (*Builder) CurrentVersion

func (b *Builder) CurrentVersion(path, name string) (string, *table.QueryParameters)

CurrentVersion returns query to get current version.

func (*Builder) Delete

func (b *Builder) Delete(path, name string, migration Migration) (string, *table.QueryParameters)

Delete returns delete query.

func (*Builder) Insert

func (b *Builder) Insert(path, name string, migration Migration, appliedAt time.Time) (string, *table.QueryParameters)

Insert returns insert query.

type Migration

type Migration interface {
	Version() int64
	Info() string
}

Migration describes migration interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL