Documentation ¶
Index ¶
- Constants
- Variables
- type Generator
- type ResultReader
- type ResultReaderNext
- type Source
- func (m *Source) Close() error
- func (m *Source) DataSource() schema.Source
- func (m *Source) Init()
- func (m *Source) Open(schemaName string) (schema.Conn, error)
- func (m *Source) Setup(ss *schema.SchemaSource) error
- func (m *Source) Table(table string) (*schema.Table, error)
- func (m *Source) Tables() []string
Constants ¶
View Source
const (
// SourceType defines the "source" type from qlbridge datasource
SourceType = "lytics"
)
Variables ¶
View Source
var (
DefaultLimit = 1000
)
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator Generate Lytics api requests from Sql Statements - convert sql WHERE into SegmentQL api statements - fetch entities from entity scan api
func (*Generator) WalkExecSource ¶
type ResultReader ¶
type ResultReader struct { *exec.TaskBase Docs []u.JsonHelper Vals [][]driver.Value Total int Aggs u.JsonHelper ScrollId string Req *Generator // contains filtered or unexported fields }
ResultReader, adapts the lytics http json response
func NewResultReader ¶
func NewResultReader(req *Generator) *ResultReader
func (*ResultReader) Close ¶
func (m *ResultReader) Close() error
type ResultReaderNext ¶
type ResultReaderNext struct {
*ResultReader
}
A wrapper, allowing us to implement sql/driver Next() interface
which is different than qlbridge/datasource Next()
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is the Lytics data source provider responsible for schema management, and connection management to Lytics
func (*Source) DataSource ¶
Click to show internal directories.
Click to hide internal directories.