mariadb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package mariadb provides a Bartlett driver for MariaDB databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MariaDB

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

MariaDB provides logic specific to MariaDB and probably other MySQL compatibles, but MariaDB is the target.

func (*MariaDB) GetColumns

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

GetColumns invokes `SHOW COLUMNS` and uses the output to determine valid columns for each table.

func (MariaDB) MarshalResults

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

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

Jump to

Keyboard shortcuts

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