models

package
v0.0.0-...-cfc85e1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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 Column

type Column struct {
	Name string
	Type ColumnType
}

type ColumnType

type ColumnType int
const (
	String ColumnType = iota
	BigInt
	Float
	DateTime
	DateTimeNullable
	Int
)

func ParseColumnType

func ParseColumnType(s string) (ColumnType, error)

func (ColumnType) String

func (ct ColumnType) String() string

type Model

type Model struct {
	Columns []Column
	Unique  []string
}

func LoadModel

func LoadModel(data map[string]interface{}) (*Model, error)

Jump to

Keyboard shortcuts

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