# README
go.xql, another ORM for golang
To be done.
See example
package main
import "github.com/archsh/go.xql"
var table = xql.Table(
xql.Column("id",),
xql.Index("id"),
xql.Constraint(""),
xql.PrimaryKey("id"),
xql.Comment(""),
)
# Functions
No description provided by the author
No description provided by the author
DeclareTable Which declare a new Table instance according to a given entity.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN and BRIN.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Table ..
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
TableConstrained Which allow struct to define a method Constraints() to customize table constraints type, fields, statement.
No description provided by the author
No description provided by the author
TableIdentified which make sure struct have a method TableName() This is mandatory for a struct can use as Table structure.
TableIgnored Which allow struct to define a method Ignore() to tell ignore elements for table columns.
TableIndexed Which allow struct to define a method Indexes() to define table indexes type, fields, statement.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TablePreInsert Which entity implemented will be called when xql create a new struct instance.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
BigInteger 8 bytes large-range integer -9223372036854775808 to +9223372036854775807.
BigSerial 8 bytes large autoincrementing integer 1 to 9223372036854775807.
Bit String Types.
Bitvar bit var.
Boolean Data Type
Name Storage Size Description boolean 1 byte state of true or false.
Bytea 1 or 4 bytes plus the actual binary string variable-length binary string.
Char character(n), char(n) fixed-length, blank padded.
No description provided by the author
Date 4 bytes date (no time of day) 4713 BC 5874897 AD 1 day.
Decimal variable user-specified precision, exact up to 131072 digits before the decimal point; up to 16383 digits after the decimal point.
Double precision 8 bytes variable-precision, inexact 15 decimal digits precision.
Enum CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');.
Integer 4 bytes typical choice for integer -2147483648 to +2147483647.
Interval [ columns ] [ (p) ] 16 bytes time interval -178000000 years 178000000 years 1 microsecond / 14 digits.
Numeric variable user-specified precision, exact up to 131072 digits before the decimal point; up to 16383 digits after the decimal point.
No description provided by the author
No description provided by the author
No description provided by the author
Real 4 bytes variable-precision, inexact 6 decimal digits precision.
Serial 4 bytes autoincrementing integer 1 to 2147483647.
SmallInteger 2 bytes small-range integer -32768 to +32767.
SmallSerial 2 bytes small autoincrementing integer 1 to 32767.
Text variable unlimited length.
Time [ (p) ] [ without time zone ] 8 bytes time of day (no date) 00:00:00 24:00:00 1 microsecond / 14 digits Time [ (p) ] with time zone 12 bytes times of day only, with time zone 00:00:00+1459 24:00:00-1459 1 microsecond / 14 digits.
TimeStamp [ (p) ] [ without time zone ] 8 bytes both date and time (no time zone) 4713 BC 294276 AD 1 microsecond / 14 digits TimeStamp [ (p) ] with time zone 8 bytes both date and time, with time zone 4713 BC 294276 AD 1 microsecond / 14 digits.
UUID Type.
Varchar character varying(n), varchar(n) variable-length with limit.