sqlite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(ctx context.Context, db *sql.DB) error

CreateSchema creates the schema elements required by the PostgreSQL driver.

func DropSchema

func DropSchema(ctx context.Context, db *sql.DB) error

DropSchema drops the schema elements required by the PostgreSQL driver.

Types

type Driver

type Driver struct{}

Driver is an implementation of sql.Driver for SQLite.

func (*Driver) DeleteResource

func (*Driver) DeleteResource(
	ctx context.Context,
	db *sql.DB,
	h string,
	r []byte,
) error

DeleteResource removes the version for a specific handler and resource.

func (*Driver) QueryVersion

func (*Driver) QueryVersion(
	ctx context.Context,
	db *sql.DB,
	h string,
	r []byte,
) ([]byte, error)

QueryVersion returns the version for a specific handler and resource.

func (*Driver) UpdateVersion

func (*Driver) UpdateVersion(
	ctx context.Context,
	tx *sql.Tx,
	h string,
	r, c, n []byte,
) (bool, error)

UpdateVersion updates the version for a specific handler and resource.

Jump to

Keyboard shortcuts

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