Documentation
¶
Index ¶
- type PgxRowsAdapter
- type Postgres
- func (pg *Postgres) Close()
- func (pg *Postgres) GetFeature(ctx context.Context, collection string, featureID any, outputSRID d.SRID, ...) (*d.Feature, error)
- func (pg *Postgres) GetFeatureIDs(_ context.Context, _ string, _ ds.FeaturesCriteria) ([]int64, d.Cursors, error)
- func (pg *Postgres) GetFeatures(ctx context.Context, collection string, criteria ds.FeaturesCriteria, ...) (*d.FeatureCollection, d.Cursors, error)
- func (pg *Postgres) GetFeaturesByID(_ context.Context, _ string, _ []int64, _ d.AxisOrder, _ d.Profile) (*d.FeatureCollection, error)
- func (pg *Postgres) SearchFeaturesAcrossCollections(ctx context.Context, criteria ds.FeaturesSearchCriteria, axisOrder d.AxisOrder, ...) (*d.FeatureCollection, error)
- type SQLLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgxRowsAdapter ¶
type PgxRowsAdapter struct {
// contains filtered or unexported fields
}
PgxRowsAdapter implements common.DatasourceRows.
func FromPgxRows ¶
func FromPgxRows(rows pgx.Rows) *PgxRowsAdapter
func (*PgxRowsAdapter) Close ¶
func (p *PgxRowsAdapter) Close()
func (*PgxRowsAdapter) Columns ¶
func (p *PgxRowsAdapter) Columns() ([]string, error)
func (*PgxRowsAdapter) Err ¶
func (p *PgxRowsAdapter) Err() error
func (*PgxRowsAdapter) Next ¶
func (p *PgxRowsAdapter) Next() bool
func (*PgxRowsAdapter) SliceScan ¶
func (p *PgxRowsAdapter) SliceScan() ([]any, error)
type Postgres ¶
type Postgres struct {
common.DatasourceCommon
// contains filtered or unexported fields
}
func NewPostgres ¶
func (*Postgres) GetFeature ¶
func (*Postgres) GetFeatureIDs ¶
func (*Postgres) GetFeatures ¶
func (*Postgres) GetFeaturesByID ¶
func (*Postgres) SearchFeaturesAcrossCollections ¶ added in v1.5.0
func (pg *Postgres) SearchFeaturesAcrossCollections(ctx context.Context, criteria ds.FeaturesSearchCriteria, axisOrder d.AxisOrder, collections search.CollectionsWithParams) (*d.FeatureCollection, error)
Click to show internal directories.
Click to hide internal directories.