Documentation ¶
Overview ¶
Package qrypgx provides a query backend using postgresql database using the pgx client package.
Index ¶
- Constants
- func CopyFrom(db *pgx.ConnPool, s *dom.Schema, fix *lit.Dict) error
- func CreateModel(tx C, s *dom.Schema, m *dom.Model) error
- func CreateProject(db *pgx.ConnPool, p *dom.Project) error
- func DropProject(db *pgx.ConnPool, p *dom.Project) error
- func Open(dsn string, logger pgx.Logger) (*pgx.ConnPool, error)
- func WithTx(db DB, f func(C) error) error
- type Backend
- type C
- type Column
- type DB
- type Job
- type Kind
- type Plan
Constants ¶
View Source
const ( KindMulti = 1 << iota KindSingle KindCount KindScalar KindJoin KindJoined KindInline KindInlined KindJSON )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
Backend is a specialized postgresql backend using the pgx package.
func (*Backend) Close ¶
Close satisfies the dataset interface but does not close the underlying connection pool.
type Job ¶
type Job struct { Kind // Task is the primary subject of this job. *qry.Task Cols []Column Tabs []*qry.Task Alias map[*qry.Task]string Parent *Job // Deps is the list of immediate dependency tasks for this job, except the parent. Deps []*qry.Task }
Job augments a task with additional information and collects nested and joined jobs.
Click to show internal directories.
Click to hide internal directories.