Documentation ¶
Index ¶
- Constants
- type ColumnConfig
- type Origin
- type OriginConfig
- type TableConfig
- func (cfg *TableConfig) DetectSchema(ctx context.Context) error
- func (cfg *TableConfig) FetchRows(ctx context.Context) ([][]interface{}, error)
- func (cfg *TableConfig) Fetcher(ctx context.Context) ([][]string, error)
- func (cfg *TableConfig) Restrict(schema string, driveSvc *drive.Service, sheetsSvc *sheets.Service) error
Constants ¶
View Source
const ( OriginType = "GoogleDrive" FileTypeSpreadsheets = "spreadsheets" FileTypeCSV = "csv" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnConfig ¶
type Origin ¶
type Origin struct {
// contains filtered or unexported fields
}
func (*Origin) RefreshCache ¶ added in v0.3.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 { origin.BaseTableConfig `yaml:",inline"` FileType string `yaml:"file_type"` FileID string `yaml:"-"` Range string `yaml:"range,omitempty"` URLString string `yaml:"url"` IgnoreLines int `yaml:"ignore_lines"` SchemaDetection bool `yaml:"schema_detection"` DetectedSchemaExpiration time.Duration `yaml:"detected_schema_expiration"` AllowUnicodeColumnName bool `yaml:"allow_unicode_column_name"` URL *url.URL `yaml:"-"` LastSchemaDetection time.Time `yaml:"-"` // contains filtered or unexported fields }
func (*TableConfig) DetectSchema ¶
func (cfg *TableConfig) DetectSchema(ctx context.Context) error
func (*TableConfig) FetchRows ¶
func (cfg *TableConfig) FetchRows(ctx context.Context) ([][]interface{}, error)
func (*TableConfig) Fetcher ¶
func (cfg *TableConfig) Fetcher(ctx context.Context) ([][]string, error)
func (*TableConfig) Restrict ¶
func (cfg *TableConfig) Restrict(schema string, driveSvc *drive.Service, sheetsSvc *sheets.Service) error
Click to show internal directories.
Click to hide internal directories.