# Functions
GetKeyWords gets and stores the keywords for the provided postgres 'version' from the current database 'db' connection.
GetKeyWordType gets the keyword type for given 'word' and postgres version 'pgVersion'.
GetQuotedWord gets the quoted 'word' if it is on the lists of the keywords.
GetVersion gets the numerical version of the postgres server.
HasNotNullConstraint checks if the column has a not null constraint.
HasUniqueConstraint checks if the table contains constraint.
MapDataType maps provided type 't' to the given data type 'dt'.
Models inserts model's definitions, indexes and constraints if not exists.
RegisterDataType registers the provided datatype assigning it next id.
RegisterRefTypeDT registers default data type for provided reflect.Type.
RegisterTagSetter registers the TagSetter function for given tag key.
WriteQuotedWord surrounds the 'word' with quotations '"' signs if it is one of reserved keywords.
# Constants
BTreeTag is the BTree index type tag.
GINTag is the GIN index type tag.
GiSTTag is the GiST index type tag.
HashTag is the Hash index type tag.
KWReservedR is the reserved keyword type.
KWReservedT is the reserved keyword that can be a function or type name.
KWUnknown is the unknown keyword type.
KWUnreservedC is the unreserved key word type that cannot be a function or type name.
KWUnreservedU is the unreserved key word type.
# Variables
CForeignKey is the Foreign key constraint.
CNotNull is the not null constraint.
CPrimaryKey is the Primary key constraint.
CUnique is the 'unique' constraint.
FBigInt is the 8 bytes signed 'bigint' type - int64.
FBigSerial is the 8 bytes autoincrement big integer - 'bigserial' type.
FBoolean is the 'boolean' pq data type.
FBytea is the 1 or 4 bytes plus the actual binary string data type 'bytea'.
FChar is the 'char' field type.
FDate is the 'date' field kind.
FDecimal is the variable 'decimal' type.
FDouble is the 8 bytes - 15 decimal digits precision 'double precision' type.
FHStore is the HStore extension type.
FInteger is the 4 bytes signed 'integer' type - int32.
FLTree is the LTree extension type.
FNumeric is the ariable 'numeric' type.
FReal is the 4 bytes - 6 decimal digits precision 'real' type.
FSerial is the 4 bytes - autoincrement integer 'serial' type.
FSmallInt is the 2 bytes signed 'smallint' - int16.
FText is the 'text' field type.
FTime is the 'time' without time zone data type.
FTimestamp is the 'timestamp' without time zone data type.
FTimestampTZ is the 'timestamp with time zone' data type.
FTimeTZ is the 'time with time zone' data type.
FUUID is the uuid.
FVarChar is the 'varchar' field type.
TagSetterFunctions is the mapping for the tags with their TagSetterFunc.
# Structs
No description provided by the author
BasicDataType is the InlineDataTyper that sets the basic columns on the base of it's SQLName.
Constraint defines the postgres constraint type.
DataType is the pq base model defininig the data type.
OptionalParameterDataType is the data type that contains optional parameters.
ParameterDataType is the data type that contains the variable parameters.
# Interfaces
DataTyper is the interface for basic data type methods.
ExternalDataTyper is the interface that defines the columns that sets the column outside the table definition.
No description provided by the author
# Type aliases
KeyWordType is the postgres default key word type.
TagSetterFunc is the function that sets the proper column info for the given tag.