sql

package
v0.0.0-...-3ee377d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDB

func NewPostgresDB(server string) (*sql.DB, error)

func NewSqlite3DB

func NewSqlite3DB(file string) (*sql.DB, error)

Types

type GruppenProvider

type GruppenProvider struct {
	DB *sql.DB
}

func (*GruppenProvider) Create

func (g *GruppenProvider) Create(gr *gj.Gruppe) error

func (*GruppenProvider) Delete

func (g *GruppenProvider) Delete(id int) error

func (*GruppenProvider) Edit

func (g *GruppenProvider) Edit(gr *gj.Gruppe) error

func (*GruppenProvider) Get

func (g *GruppenProvider) Get(id int) (*gj.Gruppe, error)

func (*GruppenProvider) GetAll

func (g *GruppenProvider) GetAll() ([]*gj.Gruppe, error)

type LiedProvider

type LiedProvider struct {
	DB *sql.DB
}

func (*LiedProvider) Create

func (p *LiedProvider) Create(l *gj.Lied) error

func (*LiedProvider) Delete

func (p *LiedProvider) Delete(id int) error

func (*LiedProvider) Edit

func (p *LiedProvider) Edit(l *gj.Lied) error

func (*LiedProvider) Get

func (p *LiedProvider) Get(id int) (*gj.Lied, error)

func (*LiedProvider) GetAll

func (p *LiedProvider) GetAll() ([]*gj.Lied, error)

func (*LiedProvider) Search

func (p *LiedProvider) Search(q string) ([]*gj.Lied, error)

type PersonProvider

type PersonProvider struct {
	DB *sql.DB
}

func (*PersonProvider) Create

func (s *PersonProvider) Create(p *gj.Person) error

func (*PersonProvider) Delete

func (s *PersonProvider) Delete(id int) error

func (*PersonProvider) Edit

func (s *PersonProvider) Edit(p *gj.Person) error

func (*PersonProvider) Get

func (s *PersonProvider) Get(id int) (*gj.Person, error)

func (*PersonProvider) GetAll

func (s *PersonProvider) GetAll() ([]*gj.Person, error)

func (*PersonProvider) Search

func (s *PersonProvider) Search(q string) ([]*gj.Person, error)

Jump to

Keyboard shortcuts

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