drivers

package
v0.0.0-...-038e487 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMySQL

func InitMySQL(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)

InitMySQL sets up squirrel and creates a MySQL connection

func InitPostgres

func InitPostgres(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)

InitPostgres sets up squirrel and creates a Postgres connection

func InitSQLite

func InitSQLite(connect SQLConnector, dbtype, dsn string) (*sqlx.DB, squirrel.StatementBuilderType, error)

InitSQLite sets up squirrel and creates a SQLite connection

Types

type SQLConnector

type SQLConnector func(driverName, dataSourceName string) (*sqlx.DB, error)

SQLConnector provides a type alias for a db initialize function

Jump to

Keyboard shortcuts

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