models

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	FieldOrdinal int    // field_ordinal
	ColumnName   string // column_name
	DataType     string // data_type
	NotNull      bool   // not_null
	IsPrimaryKey bool   // is_primary_key
	IsGenerated  bool   // is_generated
}

Column represents column info.

type CustomTypes

type CustomTypes struct {
	Tables []struct {
		Name    string            `yaml:"name"`
		Columns map[string]string `yaml:"columns"`
	}
}

CustomTypes represents custom type definitions

type Index

type Index struct {
	IndexName string // index_name
	IsUnique  bool   // is_unique
	IsPrimary bool   // is_primary
	SeqNo     int    // seq_no
	Origin    string // origin
	IsPartial bool   // is_partial
}

Index represents an index.

type IndexColumn

type IndexColumn struct {
	SeqNo      int    // seq_no. If is'a Storing Column, this value is 0.
	ColumnName string // column_name
	Storing    bool   // storing column or not
}

IndexColumn represents index column info.

type Table

type Table struct {
	Type      string // type
	TableName string // table_name
	ManualPk  bool   // manual_pk
}

Table represents table info.

Jump to

Keyboard shortcuts

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