schema

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQLiteKitVersion    = "dev"
	SchemaFormatVersion = "v1.1.0"
)

Variables

This section is empty.

Functions

func Apply

func Apply(files fs.FS) error

Types

type FileState

type FileState struct {
	Name       string
	Checksum   string
	Statements []Statement
}

type MetaValue

type MetaValue struct {
	Key   string
	Value string
}

type Statement

type Statement struct {
	Index int
	SQL   string
	Hash  string
}

type StoredFile

type StoredFile struct {
	Name      string
	Checksum  string
	StmtCount int
	AppliedAt time.Time
	UpdatedAt time.Time
}

type StoredStatement

type StoredStatement struct {
	FileName  string
	StmtIndex int
	StmtHash  string
	StmtSQL   string
	AppliedAt time.Time
}

Jump to

Keyboard shortcuts

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