Documentation
¶
Index ¶
- Constants
- Variables
- func Default[V any](def string, tp _Type[V]) _Type[V]
- func NullAble[V any](ft _Type[V]) nullAble[V]
- func Numeric(precision, scale int) _Numeric
- 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 (f FIELD[V]) Description() 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]) IsMe() where
- func (f FIELD[V]) IsNot(value V) where
- func (f FIELD[V]) IsNotMe() where
- func (f FIELD[V]) IsPrimaryKey() bool
- func (f FIELD[V]) Name() string
- func (f FIELD[V]) NameSQL() string
- func (c FIELD[V]) OuterJoin(joinField FIELD[V]) Join
- func (c FIELD[V]) OuterJoinAlias(joinField FIELD[V], alias string) Join
- func (f FIELD[V]) Reference() Field
- 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]) Table() *TABLE
- func (f FIELD[V]) Type() Type
- func (f FIELD[V]) Value() value.Value
- 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 Field
- type Join
- type SQL
- type SQLer
- type Scanner
- type Seq
- type TABLE
- func (t *TABLE) AddUnique(f ...Field) *TABLE
- func (t TABLE) CREATE() *_Create
- func (t TABLE) DELETE() *_Delete
- func (t TABLE) INSERT(fields ..._insertFields) *_Insert
- func (t *TABLE) New()
- func (t TABLE) SELECT(fields ...SQLer) *_Select
- func (t TABLE) SQL() string
- func (t *TABLE) SetName(name string)
- func (t TABLE) UPDATE(fields ..._insertFields) *_Update
- 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 ¶
func (FIELD[V]) AsPrimaryKey ¶
func (FIELD[V]) CreationSQL ¶
func (FIELD[V]) Description ¶
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]) IsPrimaryKey ¶
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.