sqlite3

package
v0.0.0-...-9fca09c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sqlite3 provides a Bartlett driver for SQLite3 databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite3

type SQLite3 struct {
	// contains filtered or unexported fields
}

SQLite3 provides logic specific to SQLite3 databases.

func (*SQLite3) GetColumns

func (driver *SQLite3) GetColumns(db *sql.DB, t bartlett.Table) ([]string, error)

GetColumns queries `sqlite_master` and returns a list of valid column names.

func (SQLite3) MarshalResults

func (driver SQLite3) MarshalResults(rows *sql.Rows, w http.ResponseWriter) error

MarshalResults converts results from SQLite3 types to Go types, then outputs JSON to the ResponseWriter.

func (*SQLite3) ProbeTables

func (driver *SQLite3) ProbeTables(db *sql.DB) []bartlett.Table

Jump to

Keyboard shortcuts

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