geopackage

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 24 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 int64) (*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) (*domain.FeatureCollection, domain.Cursors, error)

func (*GeoPackage) GetFeaturesByID

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

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