dbhelpers

package
v0.0.0-...-78f8226 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDB

func ClearDB(db *gorm.DB)

ClearDB deletes data from tables in db

func ClearTable

func ClearTable(db *gorm.DB, model interface{})

ClearTable deletes data from a table

func CloseDB

func CloseDB(db *gorm.DB)

CloseDB clears the db and closes the connection

func DB

func DB() *gorm.DB

DB opens a db connection and returns the &db

Types

This section is empty.

Jump to

Keyboard shortcuts

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