template_sql

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateSQLDatabase

type TemplateSQLDatabase[ConfigType config.WithValidation] struct {
	// contains filtered or unexported fields
}

func NewTemplateSQLDatabase

func NewTemplateSQLDatabase[ConfigType config.WithValidation](
	template *template.Template[ConfigType],
) *TemplateSQLDatabase[ConfigType]

func (*TemplateSQLDatabase[ConfigType]) MigrateIOFS

func (t *TemplateSQLDatabase[ConfigType]) MigrateIOFS(migrations embed.FS, migrationsPath string) error

func (*TemplateSQLDatabase[ConfigType]) NewSquirrelBuilder

func (t *TemplateSQLDatabase[ConfigType]) NewSquirrelBuilder() (*squirrel_builder.Builder, error)

func (*TemplateSQLDatabase[ConfigType]) NewSquirrelBuilderWithMigrateIOFS

func (t *TemplateSQLDatabase[ConfigType]) NewSquirrelBuilderWithMigrateIOFS(
	migrations embed.FS,
	migrationsPath string,
) (*squirrel_builder.Builder, error)

Jump to

Keyboard shortcuts

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