Documentation ¶
Index ¶
- Constants
- Variables
- func Open(dsn string, cfg *ImmuGormConfig) gorm.Dialector
- func OpenWithOptions(opts *client.Options, cfg *ImmuGormConfig) gorm.Dialector
- type Column
- type Dialector
- func (dialector *Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{})
- func (dialector *Dialector) ClauseBuilders() map[string]clause.ClauseBuilder
- func (dialector *Dialector) DataTypeOf(field *schema.Field) string
- func (dialector *Dialector) DefaultValueOf(field *schema.Field) clause.Expression
- func (dialector *Dialector) Explain(sql string, vars ...interface{}) string
- func (dialector *Dialector) Initialize(db *gorm.DB) (err error)
- func (dialector *Dialector) Migrator(db *gorm.DB) gorm.Migrator
- func (dialector *Dialector) Name() string
- func (dialector *Dialector) QuoteTo(writer clause.Writer, str string)
- func (dialector *Dialector) RollbackTo(tx *gorm.DB, name string) error
- func (dialector *Dialector) SavePoint(tx *gorm.DB, name string) error
- type Exprs
- type ImmuGormConfig
- type Migrator
- func (m Migrator) AlterColumn(value interface{}, name string) error
- func (m Migrator) ColumnTypes(value interface{}) ([]gorm.ColumnType, error)
- func (m Migrator) CreateConstraint(interface{}, string) error
- func (m Migrator) CreateIndex(value interface{}, name string) error
- func (m Migrator) CreateTable(values ...interface{}) error
- func (m Migrator) CurrentDatabase() (name string)
- func (m Migrator) DropColumn(value interface{}, name string) error
- func (m Migrator) DropConstraint(interface{}, string) error
- func (m Migrator) DropIndex(value interface{}, name string) error
- func (m Migrator) DropTable(values ...interface{}) error
- func (m Migrator) HasColumn(value interface{}, name string) bool
- func (m Migrator) HasConstraint(value interface{}, name string) bool
- func (m Migrator) HasIndex(value interface{}, name string) bool
- func (m Migrator) HasTable(value interface{}) bool
- func (m Migrator) RenameIndex(value interface{}, oldName, newName string) error
- func (m *Migrator) RunWithoutForeignKey(fc func() error) error
- type TimeTravel
Constants ¶
View Source
const DriverName = "immudb"
Variables ¶
View Source
var ( ErrConstraintsNotImplemented = errors.New("constraints not implemented") ErrNotImplemented = errors.New("not implemented") ErrCorruptedData = errors.New("corrupted data") ErrTimeTravelNotAvailable = errors.New("time travel is not available if verify flag is provided. This will change soon") )
Functions ¶
func OpenWithOptions ¶
func OpenWithOptions(opts *client.Options, cfg *ImmuGormConfig) gorm.Dialector
Types ¶
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func (Column) DatabaseTypeName ¶
type Dialector ¶
type Dialector struct { DriverName string Conn gorm.ConnPool DSN string // contains filtered or unexported fields }
func (*Dialector) ClauseBuilders ¶
func (dialector *Dialector) ClauseBuilders() map[string]clause.ClauseBuilder
func (*Dialector) DefaultValueOf ¶
func (dialector *Dialector) DefaultValueOf(field *schema.Field) clause.Expression
func (*Dialector) RollbackTo ¶
type Exprs ¶
type Exprs []clause.Expression
type ImmuGormConfig ¶
type ImmuGormConfig struct {
Verify bool
}
type Migrator ¶
func (Migrator) AlterColumn ¶
func (Migrator) ColumnTypes ¶
func (m Migrator) ColumnTypes(value interface{}) ([]gorm.ColumnType, error)
func (Migrator) CreateConstraint ¶
func (Migrator) CreateIndex ¶
func (Migrator) CreateTable ¶
func (Migrator) CurrentDatabase ¶
func (Migrator) DropColumn ¶
func (Migrator) DropConstraint ¶
func (Migrator) HasConstraint ¶
func (Migrator) RenameIndex ¶
func (*Migrator) RunWithoutForeignKey ¶
type TimeTravel ¶
type TimeTravel struct {
// contains filtered or unexported fields
}
func BeforeTx ¶
func BeforeTx(tx uint64) TimeTravel
func (TimeTravel) Build ¶
func (tt TimeTravel) Build(builder clause.Builder)
func (TimeTravel) ModifyStatement ¶
func (tt TimeTravel) ModifyStatement(stmt *gorm.Statement)
Click to show internal directories.
Click to hide internal directories.