internals

package
v0.0.0-...-cbba8d4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() gorm.DB

Types

type Category

type Category struct {
	Id   int64
	Text string `sql:"size:255"`
}

func (Category) TableName

func (c Category) TableName() string

type Page

type Page struct {
	Id         int64
	ImportId   int
	Title      string     `sql:"size:255"`
	Quotes     []Quote    `gorm:"many2many:pagei_quotei;"`
	Categories []Category `gorm:"many2many:pagei_categoryi;"`
}

func (Page) TableName

func (p Page) TableName() string

type Quote

type Quote struct {
	Id        int64
	Text      string `sql:"size:1000"`
	Author    string `sql:"size:1000"`
	Booktitle string `sql:"size:1000"`
	Isbn      string `sql:"size:15"`
}

func (Quote) TableName

func (q Quote) TableName() string

Jump to

Keyboard shortcuts

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