Documentation ¶
Index ¶
- Constants
- type Origin
- func (o *Origin) GetRows(ctx context.Context, w psqlfront.CacheWriter, table *psqlfront.Table) error
- func (o *Origin) GetTables(_ context.Context) ([]*psqlfront.Table, error)
- func (o *Origin) ID() string
- func (o *Origin) MigrateTable(ctx context.Context, _ psqlfront.CacheMigrator, _ *psqlfront.Table) error
- type OriginConfig
- type TableConfig
Constants ¶
View Source
const OriginType = "Static"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Origin ¶
type Origin struct {
// contains filtered or unexported fields
}
func (*Origin) MigrateTable ¶ added in v0.2.0
type OriginConfig ¶
type OriginConfig struct { Schema string `yaml:"schema"` Tables []*TableConfig `yaml:"tables"` }
func (*OriginConfig) NewOrigin ¶
func (cfg *OriginConfig) NewOrigin(id string) (psqlfront.Origin, error)
func (*OriginConfig) Restrict ¶
func (cfg *OriginConfig) Restrict() error
func (*OriginConfig) Type ¶
func (cfg *OriginConfig) Type() string
type TableConfig ¶
type TableConfig struct { Name string `yaml:"name,omitempty"` Columns origin.ColumnConfigs `yaml:"columns,omitempty"` Rows [][]string `yaml:"rows,omitempty"` }
Click to show internal directories.
Click to hide internal directories.