schema

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 4 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 string
}

Column represents a column in table

type Db

type Db struct {
	Tables map[string]Table
}

func NewDbSchema

func NewDbSchema(schemaPath string) (*Db, error)

func (*Db) Load

func (s *Db) Load(schemaPath string) error

func (*Db) LoadPostgres

func (s *Db) LoadPostgres(schemaPath string) error

type Table

type Table struct {
	Name    string
	Columns map[string]Column
}

Table represents a table in database

Jump to

Keyboard shortcuts

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