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) 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, _ bool) string
- func (v *Vendor) Update(ctx context.Context, db *gorm.DB, dml dbvendor.DMLSchema, args ...interface{}) error
Constants ¶
View Source
const ( // BitType bit BitType = "BIT" // TextType text TextType = "TEXT" // BlobType blob BlobType = "BLOB" // DateType date DateType = "DATE" // DatetimeType datatime DatetimeType = "DATETIME" // DecimalType decimal DecimalType = "DECIMAL" // DoubleType double DoubleType = "DOUBLE" // EnumType enum EnumType = "ENUM" // FloatType float FloatType = "FLOAT" // GeometryType geometry GeometryType = "GEOMETRY" // MediumintType medium int MediumintType = "MEDIUMINT" // JSONType json JSONType = "JSON" // IntType int IntType = "INT" // LongtextType long text LongtextType = "LONGTEXT" // LongblobType long blob LongblobType = "LONGBLOB" // BigintType big int BigintType = "BIGINT" // MediumtextType medium text MediumtextType = "MEDIUMTEXT" // MediumblobType medium blob MediumblobType = "MEDIUMBLOB" // SmallintType small int SmallintType = "SMALLINT" // TinyintType tiny int TinyintType = "TINYINT" // VarcharType varchar VarcharType = "VARCHAR(255)" )
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) GetInsertStatement ¶
func (*Vendor) GetUpdateStatement ¶
func (*Vendor) SelectById ¶
Click to show internal directories.
Click to hide internal directories.