repositories

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: GPL-3.0 Imports: 12 Imported by: 3

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 Stop stop

Stop namespace

View Source
var Train train

Train 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