Documentation ¶
Index ¶
- type Meta
- type PgisAsyncWorker
- type PgisClient
- func (client *PgisClient) Connection() (*sql.DB, error)
- func (client *PgisClient) GetById(id int64) (*PgisRow, error)
- func (client *PgisClient) IndexFeature(feature geojson.Feature, collection string) error
- func (client *PgisClient) Prune(data_root string, delete bool) error
- func (client *PgisClient) PruneRow(row *PgisRow, data_root string, delete bool) error
- type PgisQueryRowFunc
- type PgisResultSet
- type PgisRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgisAsyncWorker ¶
type PgisAsyncWorker struct { Client *PgisClient QueryFunc PgisQueryRowFunc CountExpected int NumProcesses int PerPage int ResultChannel chan *PgisRow DoneChannel chan bool ErrorChannel chan error }
func NewPgisAsyncWorker ¶
func NewPgisAsyncWorker(client *PgisClient, expected int, per_page int, num_procs int) (*PgisAsyncWorker, error)
func (*PgisAsyncWorker) Query ¶
func (w *PgisAsyncWorker) Query(sql string, args ...interface{})
type PgisClient ¶
type PgisClient struct { Geometry string Debug bool Verbose bool Logger *log.WOFLogger // contains filtered or unexported fields }
func NewPgisClient ¶
func (*PgisClient) Connection ¶
func (client *PgisClient) Connection() (*sql.DB, error)
func (*PgisClient) IndexFeature ¶
func (client *PgisClient) IndexFeature(feature geojson.Feature, collection string) error
type PgisQueryRowFunc ¶
type PgisQueryRowFunc func(row PgisResultSet) (*PgisRow, error)
type PgisResultSet ¶
type PgisResultSet interface {
Scan(dest ...interface{}) error
}
type PgisRow ¶
type PgisRow struct { Id int64 ParentId int64 PlacetypeId int64 IsSuperseded int IsDeprecated int Meta string Geom string Centroid string }
func NewPgisRow ¶
func QueryRowToPgisRow ¶
func QueryRowToPgisRow(row PgisResultSet) (*PgisRow, error)
func QueryRowToPgisRowForPruning ¶
func QueryRowToPgisRowForPruning(row PgisResultSet) (*PgisRow, error)
Click to show internal directories.
Click to hide internal directories.