database

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DialectSQLite     = "sqlite"
	DialectMySQL      = "mysql"
	DialectPostgres   = "postgres"
	DialectClickHouse = "clickhouse"
)

Dialect constants identify supported SQL database dialects at composition time.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexDefinition

type IndexDefinition struct {
	Name    string
	Columns []string
	Unique  bool
}

type ModelIndexer

type ModelIndexer interface {
	DefineIndexes() []IndexDefinition
}

ModelIndexer is implemented by models that declare indexes for migration tooling.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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