repositories

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Action action

Action namespace

View Source
var Alert alert

Alert namespace

View Source
var Station station

Station namespace

View Source
var StopTime stopTime

StopTime namespace

View Source
var Trip trip

Trip namespace

View Source
var User user

User namespace

Functions

func IDExist

func IDExist(table string, id uint64) (bool, error)

IDExist return true if ID exist in table

func InitDatabase

func InitDatabase(_ *aah.Event)

InitDatabase connection

func NewCollection

func NewCollection(f filters.Filter, db *gorm.DB, v interface{}) (*models.Collection, error)

NewCollection create collection for 'v' and apply filter

func ValueExist

func ValueExist(s interface{}, f string, v string) (bool, error)

ValueExist return true if value 'v' exist in 's' table for field 'f'

Types

This section is empty.

Jump to

Keyboard shortcuts

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