sqlutil

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 2 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
	Options string
}

func (Column) SQL added in v0.0.33

func (c Column) SQL() string

func (Column) String

func (c Column) String() string

type Columns

type Columns []Column

func (Columns) Names

func (c Columns) Names() []string

func (Columns) SQLs added in v0.0.33

func (c Columns) SQLs() []string

func (Columns) Strings added in v0.0.33

func (c Columns) Strings() []string

type Index

type Index struct {
	Unique  bool
	Table   string
	Columns []string
}

func (Index) Name

func (i Index) Name() string

func (Index) SQL added in v0.0.33

func (i Index) SQL() string

func (Index) String

func (i Index) String() string

type Table

type Table struct {
	Name    string
	Options string
	Columns Columns
}

func (Table) SQL added in v0.0.33

func (t Table) SQL() string

func (Table) String

func (t Table) String() string

Jump to

Keyboard shortcuts

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