Documentation ¶
Index ¶
- Constants
- type Vendor
- func (v *Vendor) AddColumn(ctx context.Context, db *gorm.DB, col dbvendor.Column) error
- func (v *Vendor) ChangeColumn(ctx context.Context, db *gorm.DB, col dbvendor.Column) error
- func (v *Vendor) CreateTable(ctx context.Context, db *gorm.DB, t dbvendor.Table) error
- func (v *Vendor) Delete(ctx context.Context, db *gorm.DB, dml dbvendor.DMLSchema, args ...interface{}) error
- func (v *Vendor) DropColumn(ctx context.Context, db *gorm.DB, col dbvendor.Column) error
- func (v *Vendor) DropTable(ctx context.Context, db *gorm.DB, t dbvendor.Table) error
- func (v *Vendor) GetBatchInsertStatement(dml dbvendor.DMLSchema, rows []interface{}) (statement string, err error)
- func (v *Vendor) GetInsertReturningPkStatement(dml dbvendor.DMLSchema) (statement string, err error)
- func (v *Vendor) GetInsertStatement(dml dbvendor.DMLSchema) (statement string, err error)
- func (v *Vendor) GetUpdateStatement(dml dbvendor.DMLSchema) (statement string, err error)
- func (v *Vendor) Insert(ctx context.Context, db *gorm.DB, dml dbvendor.DMLSchema, args ...interface{}) (int64, error)
- func (v *Vendor) SelectById(ctx context.Context, db *gorm.DB, dml dbvendor.DMLSchema, args ...interface{}) (map[string]interface{}, error)
- func (v *Vendor) ToColumnType(goType string, autoincrementing bool) string
- func (v *Vendor) Update(ctx context.Context, db *gorm.DB, dml dbvendor.DMLSchema, args ...interface{}) error
Constants ¶
View Source
const ( BitType = "VARBIT(255)" TextType = "TEXT" BlobType = "BYTEA" DateType = "DATE" DatetimeType = "TIMESTAMP" DatetimeTZType = "TIMESTAMPTZ" DecimalType = "DECIMAL" DoubleType = "FLOAT8" FloatType = "FLOAT4" GeometryType = "POINT" MediumintType = "INTEGER" JSONType = "JSON" IntType = "INTEGER" SerialType = "SERIAL" BigSerialType = "BIGSERIAL" LongtextType = "TEXT" LongblobType = "BYTEA" BigintType = "BIGINT" MediumtextType = "TEXT" MediumblobType = "BYTEA" SmallintType = "INTEGER" TinyintType = "SMALLINT" VarcharType = "VARCHAR" BoolType = "BOOLEAN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vendor ¶
type Vendor struct { }
func (*Vendor) ChangeColumn ¶
func (*Vendor) CreateTable ¶
func (*Vendor) DropColumn ¶
func (*Vendor) GetBatchInsertStatement ¶ added in v2.2.4
func (*Vendor) GetInsertReturningPkStatement ¶ added in v2.2.6
func (*Vendor) GetInsertStatement ¶
func (*Vendor) GetUpdateStatement ¶
func (*Vendor) SelectById ¶
func (*Vendor) ToColumnType ¶
Click to show internal directories.
Click to hide internal directories.