db

package
v0.0.0-...-c69a8cc Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package db provides sql querying.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*gorm.DB
}

DB embedding used to extend standard methods.

func Connect

func Connect(driver string, conn string) *DB

Connect connects to the database.

This is a generic solution, so it's possible to connect to all SQL DB supported by `gorm`.

Connection example: db.Connect(

"postgres",
"postgresql://postgres:postgres@localhost:5432/beetlefinder?sslmode=disable")

Jump to

Keyboard shortcuts

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