sql

package
v0.0.0-...-e08bc68 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 Identifier
	// contains filtered or unexported fields
}

func (Column) MarshalSql

func (c Column) MarshalSql(wr io.Writer, params qry.Params) error

func (Column) Table

func (c Column) Table() Table

type DataModel

type DataModel struct {
	Name    common.Id
	Schemas []Schema
	// contains filtered or unexported fields
}

func (DataModel) Init

func (dm DataModel) Init() DataModel

func (DataModel) Schema

func (dm DataModel) Schema(name string) Schema

type Identifier

type Identifier = util.V

type Schema

type Schema struct {
	Name   Identifier
	Tables []Table
	// contains filtered or unexported fields
}

func (Schema) DataModel

func (s Schema) DataModel() DataModel

func (Schema) MarshalSql

func (s Schema) MarshalSql(wr io.Writer, _ qry.Params) error

func (Schema) Table

func (s Schema) Table(name string) Table

type Table

type Table struct {
	Name    Identifier
	Columns []Column
	// contains filtered or unexported fields
}

func (Table) Column

func (t Table) Column(name string) Column

func (Table) MarshalSql

func (t Table) MarshalSql(wr io.Writer, params qry.Params) error

func (Table) Schema

func (t Table) Schema() Schema

Jump to

Keyboard shortcuts

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