Documentation
¶
Index ¶
- Constants
- Variables
- func CREATE(table TABLE, fields ..._createFields) *_Create
- func DELETE(table TABLE) *_Delete
- func INSERT(table TABLE, fields ..._insertFields) *_Insert
- func NullAble[V any](ft Type[V]) nullAble[V]
- func Numeric(precision, scale int) _Numeric
- func SELECT(table TABLE, fields ...SQLer) *_Select
- func UPDATE(table TABLE, fields ..._insertFields) *_Update
- func Unique[V any](ft Type[V]) unique[V]
- type Dollar
- type FIELD
- func (f FIELD[V]) As(name string) SQL
- func (f FIELD[V]) AsPrimaryKey() FIELD[V]
- func (f FIELD[V]) CreationSQL() string
- func (c *FIELD[V]) GetTarget() any
- func (c FIELD[V]) InnerJoin(joinField FIELD[V]) Join
- func (c FIELD[V]) InnerJoinAlias(joinField FIELD[V], alias string) Join
- func (f FIELD[V]) Is(value V) where
- func (f FIELD[V]) IsEqualOrGreaterThan(value V) where
- func (f FIELD[V]) IsEqualOrLessThan(value V) where
- func (f FIELD[V]) IsGreaterThan(value V) where
- func (f FIELD[V]) IsIn(value SQLer) where
- func (f FIELD[V]) IsLessThan(value V) where
- func (f FIELD[V]) IsNot(value V) where
- func (c FIELD[V]) OuterJoin(joinField FIELD[V]) Join
- func (c FIELD[V]) OuterJoinAlias(joinField FIELD[V], alias string) Join
- func (f FIELD[V]) SQL() string
- func (f *FIELD[V]) Set(val V) *FIELD[V]
- func (f *FIELD[V]) SetTarget(valTarget *V) *FIELD[V]
- func (f *FIELD[V]) SetWithName(val V)
- func (f FIELD[V]) ValueToSQL(pos int) string
- func (f FIELD[V]) WithDescription(descr string) FIELD[V]
- func (f FIELD[V]) WithReference(ref FIELD[V]) FIELD[V]
- type Join
- type SQL
- type SQLer
- type Scanner
- type Seq
- type TABLE
- type Type
- type VarChar
Constants ¶
View Source
const TimestampFormat = "YYYY-MM-DD hh:mm:ss"
Variables ¶
View Source
var ( Int = _Int{} Bool = _Bool{} Text = _Text{} Float = _Float{} Real = _Real{} JSONB = _JSONB{} Timestamp = _Timestamp{} TimestampTZ = _TimestampTZ{} Date = _Date{} SmallInt = _SmallInt{} BigInt = _BigInt{} UUID = _UUID{} )
View Source
var ALL = all{}
Functions ¶
Types ¶
type FIELD ¶
type FIELD[V any] struct { Name string Table TABLE Reference *FIELD[V] IsPrimaryKey bool Description string Type Type[V] value.Var[V] Target *V }
func (FIELD[V]) AsPrimaryKey ¶
func (FIELD[V]) CreationSQL ¶
func (FIELD[V]) InnerJoinAlias ¶
func (FIELD[V]) IsEqualOrGreaterThan ¶
func (f FIELD[V]) IsEqualOrGreaterThan(value V) where
func (FIELD[V]) IsEqualOrLessThan ¶
func (f FIELD[V]) IsEqualOrLessThan(value V) where
func (FIELD[V]) IsGreaterThan ¶
func (f FIELD[V]) IsGreaterThan(value V) where
func (FIELD[V]) IsLessThan ¶
func (f FIELD[V]) IsLessThan(value V) where
func (FIELD[V]) OuterJoinAlias ¶
func (*FIELD[V]) SetWithName ¶
func (f *FIELD[V]) SetWithName(val V)
func (FIELD[V]) ValueToSQL ¶
func (FIELD[V]) WithDescription ¶
func (FIELD[V]) WithReference ¶
Click to show internal directories.
Click to hide internal directories.