Documentation
¶
Index ¶
- Constants
- Variables
- func NullAble[V any](ft Type[V]) nullAble[V]
- func SELECT(table TABLE, fields ...SQLer) *_Select
- func Unique[V any](ft Type[V]) unique[V]
- type BOOL
- type BigInt
- type Create
- type Date
- type Delete
- 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 FLOAT
- type Float
- type INT
- type Insert
- type JSONB
- type Join
- type Numeric
- type Real
- type SQL
- type SQLer
- type STRING
- type Scanner
- type Seq
- type SmallInt
- type TABLE
- type TIME
- type Text
- type Timestamp
- type TimestampTZ
- type Type
- type UUID
- type Update
- type VarChar
Constants ¶
View Source
const TimestampFormat = "YYYY-MM-DD hh:mm:ss"
Variables ¶
View Source
var ALL = all{}
View Source
var Bool = &_Bool{}
View Source
var Int = &_Int{}
Functions ¶
Types ¶
type BigInt ¶
type BigInt struct {
// contains filtered or unexported fields
}
bigint
func (BigInt) GeneratedAlwaysAsID ¶
func (BigInt) GeneratedByDefaultAsID ¶
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
func (Date) IsNullAble ¶
func (v Date) IsNullAble() bool
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 ¶
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func (Float) IsNullAble ¶
func (v Float) IsNullAble() bool
type Numeric ¶
type Numeric [2]int
NUMERIC(precision, scale) decimal is the same as numeric
func (Numeric) IsNullAble ¶
type SmallInt ¶
type SmallInt struct {
// contains filtered or unexported fields
}
smallint
func (SmallInt) GeneratedAlwaysAsID ¶
func (SmallInt) GeneratedByDefaultAsID ¶
type Timestamp ¶
type Timestamp struct {
// contains filtered or unexported fields
}
func (Timestamp) IsNullAble ¶
func (v Timestamp) IsNullAble() bool
type TimestampTZ ¶
type TimestampTZ struct{ Timestamp }
func (TimestampTZ) IsNullAble ¶
func (v TimestampTZ) IsNullAble() bool
func (TimestampTZ) SQL ¶
func (v TimestampTZ) SQL() string
Click to show internal directories.
Click to hide internal directories.