Documentation ¶
Overview ¶
package tables implements the `FeatureTable interface` interface for indexing Who's On First Feature records in SQLite database tables.
Index ¶
- func BeginTransactionError(t sqlite.Table, err error) error
- func CommitTransactionError(t sqlite.Table, err error) error
- func CommonTablesWithDatabase(ctx context.Context, db sqlite.Database) ([]sqlite.Table, error)
- func CommonTablesWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, table_opts *CommonTablesOptions) ([]sqlite.Table, error)
- func DatabaseConnectionError(t sqlite.Table, err error) error
- func ExecuteStatementError(t sqlite.Table, err error) error
- func InitializeTableError(t sqlite.Table, err error) error
- func MissingPropertyError(t sqlite.Table, prop string, err error) error
- func NewAncestorsTable(ctx context.Context) (sqlite.Table, error)
- func NewAncestorsTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewConcordancesTable(ctx context.Context) (sqlite.Table, error)
- func NewConcordancesTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewGeoJSONTable(ctx context.Context) (sqlite.Table, error)
- func NewGeoJSONTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewGeoJSONTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *GeoJSONTableOptions) (sqlite.Table, error)
- func NewGeoJSONTableWithOptions(ctx context.Context, opts *GeoJSONTableOptions) (sqlite.Table, error)
- func NewGeometriesTable(ctx context.Context) (sqlite.Table, error)
- func NewGeometriesTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewGeometriesTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *GeometriesTableOptions) (sqlite.Table, error)
- func NewGeometriesTableWithOptions(ctx context.Context, opts *GeometriesTableOptions) (sqlite.Table, error)
- func NewNamesTable(ctx context.Context) (sqlite.Table, error)
- func NewNamesTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewPropertiesTable(ctx context.Context) (sqlite.Table, error)
- func NewPropertiesTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewPropertiesTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *PropertiesTableOptions) (sqlite.Table, error)
- func NewPropertiesTableWithOptions(ctx context.Context, opts *PropertiesTableOptions) (sqlite.Table, error)
- func NewRTreeTable(ctx context.Context) (sqlite.Table, error)
- func NewRTreeTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewRTreeTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *RTreeTableOptions) (sqlite.Table, error)
- func NewRTreeTableWithOptions(ctx context.Context, opts *RTreeTableOptions) (sqlite.Table, error)
- func NewSPRTable(ctx context.Context) (sqlite.Table, error)
- func NewSPRTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewSPRTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *SPRTableOptions) (sqlite.Table, error)
- func NewSPRTableWithOptions(ctx context.Context, opts *SPRTableOptions) (sqlite.Table, error)
- func NewSearchTable(ctx context.Context) (sqlite.Table, error)
- func NewSearchTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func NewSupersedesTable(ctx context.Context) (sqlite.Table, error)
- func NewSupersedesTableWithDatabase(ctx context.Context, db sqlite.Database) (sqlite.Table, error)
- func PointInPolygonTablesWithDatabase(ctx context.Context, db sqlite.Database) ([]sqlite.Table, error)
- func PrepareStatementError(t sqlite.Table, err error) error
- func RTreeTablesWithDatabase(ctx context.Context, db sqlite.Database) ([]sqlite.Table, error)
- func RTreeTablesWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *TableOptions) ([]sqlite.Table, error)
- func SearchTablesWithDatabase(ctx context.Context, db sqlite.Database) ([]sqlite.Table, error)
- func SearchTablesWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *TableOptions) ([]sqlite.Table, error)
- func SpatialTablesWithDatabase(ctx context.Context, db sqlite.Database) ([]sqlite.Table, error)
- func WrapError(t sqlite.Table, err error) error
- type AncestorsRow
- type AncestorsTable
- func (t *AncestorsTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *AncestorsTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *AncestorsTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *AncestorsTable) Name() string
- func (t *AncestorsTable) Schema() string
- type CommonTablesOptions
- type ConcordancesRow
- type ConcordancesTable
- func (t *ConcordancesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *ConcordancesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *ConcordancesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *ConcordancesTable) Name() string
- func (t *ConcordancesTable) Schema() string
- type GeoJSONRow
- type GeoJSONTable
- func (t *GeoJSONTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *GeoJSONTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *GeoJSONTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *GeoJSONTable) Name() string
- func (t *GeoJSONTable) Schema() string
- type GeoJSONTableOptions
- type GeometriesRow
- type GeometriesTable
- func (t *GeometriesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *GeometriesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *GeometriesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *GeometriesTable) Name() string
- func (t *GeometriesTable) Schema() string
- type GeometriesTableOptions
- type NamesRow
- type NamesTable
- func (t *NamesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *NamesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *NamesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *NamesTable) Name() string
- func (t *NamesTable) Schema() string
- type PropertiesRow
- type PropertiesTable
- func (t *PropertiesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *PropertiesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *PropertiesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *PropertiesTable) Name() string
- func (t *PropertiesTable) Schema() string
- type PropertiesTableOptions
- type RTreeTable
- func (t *RTreeTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *RTreeTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *RTreeTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *RTreeTable) Name() string
- func (t *RTreeTable) Schema() string
- type RTreeTableOptions
- type SPRTable
- func (t *SPRTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *SPRTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *SPRTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *SPRTable) Name() string
- func (t *SPRTable) Schema() string
- type SPRTableOptions
- type SearchTable
- func (t *SearchTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *SearchTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *SearchTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *SearchTable) Name() string
- func (t *SearchTable) Schema() string
- type SupersedesTable
- func (t *SupersedesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
- func (t *SupersedesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
- func (t *SupersedesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
- func (t *SupersedesTable) Name() string
- func (t *SupersedesTable) Schema() string
- type TableOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginTransactionError ¶
BeginTransactionError returns a new error with a default message for database transaction initialization problems wrapping 'err' and prepending with the value of 't's Name() method.
func CommitTransactionError ¶
CommitTransactionError returns a new error with a default message for problems committing database transactions wrapping 'err' and prepending with the value of 't's Name() method.
func CommonTablesWithDatabaseAndOptions ¶
func CommonTablesWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, table_opts *CommonTablesOptions) ([]sqlite.Table, error)
func DatabaseConnectionError ¶
DatabaseConnectionError returns a new error with a default message for database connection problems wrapping 'err' and prepending with the value of 't's Name() method.
func ExecuteStatementError ¶
ExecuteStatementError returns a new error with a default message for problems executing database (SQL) statements wrapping 'err' and prepending with the value of 't's Name() method.
func InitializeTableError ¶
InitializeTableError returns a new error with a default message for database initialization problems wrapping 'err' and prepending with the value of 't's Name() method.
func MissingPropertyError ¶
MissingPropertyError returns a new error with a default message for problems deriving a given property ('prop') from a record, wrapping 'err' and prepending with the value of 't's Name() method.
func NewAncestorsTable ¶
func NewConcordancesTable ¶
func NewGeoJSONTable ¶
func NewGeoJSONTableWithDatabaseAndOptions ¶
func NewGeoJSONTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *GeoJSONTableOptions) (sqlite.Table, error)
func NewGeoJSONTableWithOptions ¶
func NewGeoJSONTableWithOptions(ctx context.Context, opts *GeoJSONTableOptions) (sqlite.Table, error)
func NewGeometriesTable ¶
func NewGeometriesTableWithDatabaseAndOptions ¶
func NewGeometriesTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *GeometriesTableOptions) (sqlite.Table, error)
func NewGeometriesTableWithOptions ¶
func NewGeometriesTableWithOptions(ctx context.Context, opts *GeometriesTableOptions) (sqlite.Table, error)
func NewNamesTable ¶
func NewPropertiesTable ¶
func NewPropertiesTableWithDatabaseAndOptions ¶
func NewPropertiesTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *PropertiesTableOptions) (sqlite.Table, error)
func NewPropertiesTableWithOptions ¶
func NewPropertiesTableWithOptions(ctx context.Context, opts *PropertiesTableOptions) (sqlite.Table, error)
func NewRTreeTable ¶
func NewRTreeTableWithDatabaseAndOptions ¶
func NewRTreeTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *RTreeTableOptions) (sqlite.Table, error)
func NewRTreeTableWithOptions ¶
func NewRTreeTableWithOptions(ctx context.Context, opts *RTreeTableOptions) (sqlite.Table, error)
func NewSPRTable ¶
func NewSPRTableWithDatabase ¶
func NewSPRTableWithDatabaseAndOptions ¶
func NewSPRTableWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *SPRTableOptions) (sqlite.Table, error)
func NewSPRTableWithOptions ¶
func NewSPRTableWithOptions(ctx context.Context, opts *SPRTableOptions) (sqlite.Table, error)
func NewSearchTable ¶
func NewSupersedesTable ¶
func PrepareStatementError ¶
PrepareStatementError returns a new error with a default message for problems preparing database (SQL) statements wrapping 'err' and prepending with the value of 't's Name() method.
func RTreeTablesWithDatabase ¶
func RTreeTablesWithDatabaseAndOptions ¶
func RTreeTablesWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *TableOptions) ([]sqlite.Table, error)
func SearchTablesWithDatabaseAndOptions ¶
func SearchTablesWithDatabaseAndOptions(ctx context.Context, db sqlite.Database, opts *TableOptions) ([]sqlite.Table, error)
Types ¶
type AncestorsRow ¶
type AncestorsTable ¶
type AncestorsTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*AncestorsTable) IndexFeature ¶
func (t *AncestorsTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*AncestorsTable) IndexRecord ¶
func (t *AncestorsTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*AncestorsTable) InitializeTable ¶
func (t *AncestorsTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*AncestorsTable) Name ¶
func (t *AncestorsTable) Name() string
func (*AncestorsTable) Schema ¶
func (t *AncestorsTable) Schema() string
type CommonTablesOptions ¶
type CommonTablesOptions struct { GeoJSON *GeoJSONTableOptions // DEPRECATED IndexAltFiles bool }
type ConcordancesRow ¶
type ConcordancesTable ¶
type ConcordancesTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*ConcordancesTable) IndexFeature ¶
func (t *ConcordancesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*ConcordancesTable) IndexRecord ¶
func (t *ConcordancesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*ConcordancesTable) InitializeTable ¶
func (t *ConcordancesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*ConcordancesTable) Name ¶
func (t *ConcordancesTable) Name() string
func (*ConcordancesTable) Schema ¶
func (t *ConcordancesTable) Schema() string
type GeoJSONRow ¶
type GeoJSONTable ¶
type GeoJSONTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*GeoJSONTable) IndexFeature ¶
func (t *GeoJSONTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*GeoJSONTable) IndexRecord ¶
func (t *GeoJSONTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*GeoJSONTable) InitializeTable ¶
func (t *GeoJSONTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*GeoJSONTable) Name ¶
func (t *GeoJSONTable) Name() string
func (*GeoJSONTable) Schema ¶
func (t *GeoJSONTable) Schema() string
type GeoJSONTableOptions ¶
func DefaultGeoJSONTableOptions ¶
func DefaultGeoJSONTableOptions() (*GeoJSONTableOptions, error)
type GeometriesRow ¶
type GeometriesTable ¶
type GeometriesTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*GeometriesTable) IndexFeature ¶
func (t *GeometriesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*GeometriesTable) IndexRecord ¶
func (t *GeometriesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*GeometriesTable) InitializeTable ¶
func (t *GeometriesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*GeometriesTable) Name ¶
func (t *GeometriesTable) Name() string
func (*GeometriesTable) Schema ¶
func (t *GeometriesTable) Schema() string
type GeometriesTableOptions ¶
type GeometriesTableOptions struct {
IndexAltFiles bool
}
func DefaultGeometriesTableOptions ¶
func DefaultGeometriesTableOptions() (*GeometriesTableOptions, error)
type NamesTable ¶
type NamesTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*NamesTable) IndexFeature ¶
func (t *NamesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*NamesTable) IndexRecord ¶
func (t *NamesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*NamesTable) InitializeTable ¶
func (t *NamesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*NamesTable) Name ¶
func (t *NamesTable) Name() string
func (*NamesTable) Schema ¶
func (t *NamesTable) Schema() string
type PropertiesRow ¶
type PropertiesTable ¶
type PropertiesTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*PropertiesTable) IndexFeature ¶
func (t *PropertiesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*PropertiesTable) IndexRecord ¶
func (t *PropertiesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*PropertiesTable) InitializeTable ¶
func (t *PropertiesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*PropertiesTable) Name ¶
func (t *PropertiesTable) Name() string
func (*PropertiesTable) Schema ¶
func (t *PropertiesTable) Schema() string
type PropertiesTableOptions ¶
type PropertiesTableOptions struct {
IndexAltFiles bool
}
func DefaultPropertiesTableOptions ¶
func DefaultPropertiesTableOptions() (*PropertiesTableOptions, error)
type RTreeTable ¶
type RTreeTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*RTreeTable) IndexFeature ¶
func (t *RTreeTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*RTreeTable) IndexRecord ¶
func (t *RTreeTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*RTreeTable) InitializeTable ¶
func (t *RTreeTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*RTreeTable) Name ¶
func (t *RTreeTable) Name() string
func (*RTreeTable) Schema ¶
func (t *RTreeTable) Schema() string
type RTreeTableOptions ¶
type RTreeTableOptions struct {
IndexAltFiles bool
}
func DefaultRTreeTableOptions ¶
func DefaultRTreeTableOptions() (*RTreeTableOptions, error)
type SPRTable ¶
type SPRTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*SPRTable) IndexFeature ¶
func (*SPRTable) IndexRecord ¶
func (*SPRTable) InitializeTable ¶
type SPRTableOptions ¶
type SPRTableOptions struct {
IndexAltFiles bool
}
func DefaultSPRTableOptions ¶
func DefaultSPRTableOptions() (*SPRTableOptions, error)
type SearchTable ¶
type SearchTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*SearchTable) IndexFeature ¶
func (t *SearchTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*SearchTable) IndexRecord ¶
func (t *SearchTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*SearchTable) InitializeTable ¶
func (t *SearchTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*SearchTable) Name ¶
func (t *SearchTable) Name() string
func (*SearchTable) Schema ¶
func (t *SearchTable) Schema() string
type SupersedesTable ¶
type SupersedesTable struct { features.FeatureTable // contains filtered or unexported fields }
func (*SupersedesTable) IndexFeature ¶
func (t *SupersedesTable) IndexFeature(ctx context.Context, db sqlite.Database, f []byte) error
func (*SupersedesTable) IndexRecord ¶
func (t *SupersedesTable) IndexRecord(ctx context.Context, db sqlite.Database, i interface{}) error
func (*SupersedesTable) InitializeTable ¶
func (t *SupersedesTable) InitializeTable(ctx context.Context, db sqlite.Database) error
func (*SupersedesTable) Name ¶
func (t *SupersedesTable) Name() string
func (*SupersedesTable) Schema ¶
func (t *SupersedesTable) Schema() string
type TableOptions ¶
type TableOptions struct {
IndexAltFiles bool
}