geopackage

package
v0.59.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoPackage

type GeoPackage struct {
	// contains filtered or unexported fields
}

func NewGeoPackage

func NewGeoPackage(collections config.GeoSpatialCollections, gpkgConfig config.GeoPackage) *GeoPackage

func (*GeoPackage) Close

func (g *GeoPackage) Close()

func (*GeoPackage) GetFeature

func (g *GeoPackage) GetFeature(ctx context.Context, collection string, featureID any, profile domain.Profile) (*domain.Feature, error)

func (*GeoPackage) GetFeatureIDs

func (g *GeoPackage) GetFeatureIDs(ctx context.Context, collection string, criteria datasources.FeaturesCriteria) ([]int64, domain.Cursors, error)

func (*GeoPackage) GetFeatureTableMetadata

func (g *GeoPackage) GetFeatureTableMetadata(collection string) (datasources.FeatureTableMetadata, error)

func (*GeoPackage) GetFeatures

func (g *GeoPackage) GetFeatures(ctx context.Context, collection string, criteria datasources.FeaturesCriteria, profile domain.Profile) (*domain.FeatureCollection, domain.Cursors, error)

func (*GeoPackage) GetFeaturesByID

func (g *GeoPackage) GetFeaturesByID(ctx context.Context, collection string, featureIDs []int64, profile domain.Profile) (*domain.FeatureCollection, error)

func (*GeoPackage) GetPropertyFiltersWithAllowedValues added in v0.51.0

func (g *GeoPackage) GetPropertyFiltersWithAllowedValues(collection string) datasources.PropertyFiltersWithAllowedValues

type PreparedStatementCache

type PreparedStatementCache struct {
	// contains filtered or unexported fields
}

PreparedStatementCache is thread safe

func NewCache

func NewCache() *PreparedStatementCache

NewCache creates a new PreparedStatementCache that will evict least-recently used (LRU) statements.

func (*PreparedStatementCache) Close

func (c *PreparedStatementCache) Close()

Close purges the cache, and closes remaining prepared statements

func (*PreparedStatementCache) Lookup

func (c *PreparedStatementCache) Lookup(ctx context.Context, db *sqlx.DB, query string) (*sqlx.NamedStmt, error)

Lookup gets a prepared statement from the cache for the given query, or creates a new one and adds it to the cache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL