Documentation
¶
Overview ¶
Package gormpinot provides a GORM dialector that executes Pinot SQL over HTTP.
Limitations:
- Read-only: INSERT/UPDATE/DELETE/DDL are not supported.
- Migrations are not supported.
- Broker selection uses Config.DefaultTable when provided; otherwise a best-effort table name is inferred from the SQL or an empty table name is used.
Index ¶
- func Open(config Config) gorm.Dialector
- type Config
- type Dialector
- func (Dialector) BindVarTo(writer clause.Writer, _ *gorm.Statement, _ interface{})
- func (Dialector) DataTypeOf(*schema.Field) string
- func (Dialector) DefaultValueOf(*schema.Field) clause.Expression
- func (Dialector) Explain(sql string, vars ...interface{}) string
- func (d Dialector) Initialize(db *gorm.DB) error
- func (Dialector) Migrator(db *gorm.DB) gorm.Migrator
- func (Dialector) Name() string
- func (Dialector) QuoteTo(writer clause.Writer, str string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Conn *pinot.Connection
DefaultTable string
}
Config configures the Pinot GORM dialector.
type Dialector ¶
type Dialector struct {
// contains filtered or unexported fields
}
Dialector is the GORM dialector for Pinot.
func (Dialector) DataTypeOf ¶
DataTypeOf returns an empty datatype since migrations are unsupported.
func (Dialector) DefaultValueOf ¶
func (Dialector) DefaultValueOf(*schema.Field) clause.Expression
DefaultValueOf returns DEFAULT for compatibility.
func (Dialector) Initialize ¶
Initialize wires the dialector into the GORM DB instance.
Click to show internal directories.
Click to hide internal directories.