sqlite

package
v0.0.0-...-96f772b Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cities = &City{}
)
View Source
var (
	Countries = &Country{}
)
View Source
var (
	CountryLanguages = &CountryLanguage{}
)

Functions

func SetDb

func SetDb(d *sqlx.DB)

Types

type City

type City struct {
	Id           int    `db:"id"`
	Name         string `db:"name"`
	Countrycode  string `db:"countrycode"`
	District     string `db:"district"`
	Manufacturer int    `db:"manufacturer"`
}

City is a generated struct from a sqlite3 database. See github.com/alistanis/stg for more information.

func (*City) Find

func (c *City) Find(id int) (*City, error)

Find is a generated function. See github.com/alistanis/stg for more information.

func (*City) Where

func (c *City) Where(column string, arg interface{}) ([]*City, error)

Where is a generated function. See github.com/alistanis/stg for more information.

func (*City) WhereFirst

func (c *City) WhereFirst(column string, arg interface{}) (*City, error)

WhereFirst is a generated function. See github.com/alistanis/stg for more information.

func (*City) WhereIn

func (c *City) WhereIn(column string, args ...interface{}) ([]*City, error)

WhereIn is a generated function. See github.com/alistanis/stg for more information.

func (*City) WhereWithMap

func (c *City) WhereWithMap(args map[string]interface{}) ([]*City, error)

WhereWithMap is a generated function. See github.com/alistanis/stg for more information.

type Country

type Country struct {
	Id          int     `db:"id"`
	Name        string  `db:"name"`
	Surfacearea float64 `db:"surfacearea"`
}

Country is a generated struct from a sqlite3 database. See github.com/alistanis/stg for more information.

func (*Country) Find

func (c *Country) Find(id int) (*Country, error)

Find is a generated function. See github.com/alistanis/stg for more information.

func (*Country) Where

func (c *Country) Where(column string, arg interface{}) ([]*Country, error)

Where is a generated function. See github.com/alistanis/stg for more information.

func (*Country) WhereFirst

func (c *Country) WhereFirst(column string, arg interface{}) (*Country, error)

WhereFirst is a generated function. See github.com/alistanis/stg for more information.

func (*Country) WhereIn

func (c *Country) WhereIn(column string, args ...interface{}) ([]*Country, error)

WhereIn is a generated function. See github.com/alistanis/stg for more information.

func (*Country) WhereWithMap

func (c *Country) WhereWithMap(args map[string]interface{}) ([]*Country, error)

WhereWithMap is a generated function. See github.com/alistanis/stg for more information.

type CountryLanguage

type CountryLanguage struct {
	Id          int    `db:"id"`
	Countrycode string `db:"countrycode"`
	Language    string `db:"language"`
}

CountryLanguage is a generated struct from a sqlite3 database. See github.com/alistanis/stg for more information.

func (*CountryLanguage) Find

func (c *CountryLanguage) Find(id int) (*CountryLanguage, error)

Find is a generated function. See github.com/alistanis/stg for more information.

func (*CountryLanguage) Where

func (c *CountryLanguage) Where(column string, arg interface{}) ([]*CountryLanguage, error)

Where is a generated function. See github.com/alistanis/stg for more information.

func (*CountryLanguage) WhereFirst

func (c *CountryLanguage) WhereFirst(column string, arg interface{}) (*CountryLanguage, error)

WhereFirst is a generated function. See github.com/alistanis/stg for more information.

func (*CountryLanguage) WhereIn

func (c *CountryLanguage) WhereIn(column string, args ...interface{}) ([]*CountryLanguage, error)

WhereIn is a generated function. See github.com/alistanis/stg for more information.

func (*CountryLanguage) WhereWithMap

func (c *CountryLanguage) WhereWithMap(args map[string]interface{}) ([]*CountryLanguage, error)

WhereWithMap is a generated function. See github.com/alistanis/stg for more information.

Jump to

Keyboard shortcuts

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