sql

package
v1.30.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// table columns map
	TableCols = cmap.NewCMap()
)

Functions

func GetKeySQL

func GetKeySQL(key string, model interface{}, alias string) (sqlKey string, argsKey []interface{})

key search sql

func GetMoreKeySQL

func GetMoreKeySQL(key string, model interface{}, tables ...string) (sqlKey string, argsKey []interface{})

more tables key search sql tables [table1:table1_alias] searModel : Model

func StructWhereSQL

func StructWhereSQL(st interface{}) (sql string, args []interface{})

struct to where sql return key1 = value1 and key2 = value2...

func Table

func Table(table string) string

table parse

func TableOnly

func TableOnly(table string) string

only table name

func UniqueTagTable

func UniqueTagTable(tag string, tables ...string) (table string)

return unique table tag

Types

type Key

type Key struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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