Help us shape the future of Go! Take the 2026 Go Developer Survey

entity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version string        `yaml:"version"`
	Tables  []SchemaTable `yaml:"tables"`
}

func NewConfigFromFile

func NewConfigFromFile(
	path string,
) (Config, error)

type Engine

type Engine string
const (
	EnginePostgres Engine = "postgres"
)

func NewEngine

func NewEngine(s string) (Engine, error)

func (Engine) String

func (e Engine) String() string

type SchemaTable

type SchemaTable struct {
	Name  string `yaml:"name"`
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

Jump to

Keyboard shortcuts

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