spatialite

package module
v0.0.0-...-9e2a71e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 4 Imported by: 0

README

spatialite

Go driver for libspatialite.

Minor patches to https://github.com/briansorahan/spatialite.

Install

First you must install both sqlite3 and libspatialite C libraries.

Then

go get -u github.com/Trillium-Solutions/spatialite

Usage

db, err := sql.Open("spatialite", "my.db")

Check out the tests to see more example code.

Documentation

Overview

Package spatialite is a thin wrapper around https://github.com/mattn/go-sqlite3 that automatically loads the mod_spatialite extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	*sqlite.SQLiteConn
}

Conn is a spatialite database connection.

type Driver

type Driver struct {
	*sqlite.SQLiteDriver
}

Driver is the spatialite driver.Driver implementation.

func (*Driver) Open

func (d *Driver) Open(name string) (driver.Conn, error)

Open opens a new database connection.

Jump to

Keyboard shortcuts

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