sql

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DDLBuilder

type DDLBuilder struct {
}

func NewDDLBuilder

func NewDDLBuilder() *DDLBuilder

func (*DDLBuilder) BuildDDL

func (b *DDLBuilder) BuildDDL(table *schema.Table) []string

type QueryBuilder added in v0.1.1

type QueryBuilder struct {
}

func NewInsertBuilder added in v0.1.1

func NewInsertBuilder() *QueryBuilder

func (*QueryBuilder) BuildDeleteInQuery added in v0.1.1

func (b *QueryBuilder) BuildDeleteInQuery(table string, field string, values []interface{}) string

func (*QueryBuilder) BuildDeleteQueries added in v0.1.1

func (b *QueryBuilder) BuildDeleteQueries(table *schema.Table, rows []map[string]interface{}) []string

func (*QueryBuilder) BuildDeleteQuery added in v0.1.1

func (b *QueryBuilder) BuildDeleteQuery(table string, fields map[string]interface{}) string

func (*QueryBuilder) BuildInsertQuery added in v0.1.1

func (b *QueryBuilder) BuildInsertQuery(table *schema.Table, rows []map[string]interface{}) (string, error)

Jump to

Keyboard shortcuts

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