common

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountBooks

func CountBooks(t *testing.T, db *godb.DB) int64

func StatementsTests

func StatementsTests(db *godb.DB, t *testing.T)

func StructsTests

func StructsTests(db *godb.DB, t *testing.T)

Types

type Book

type Book struct {
	Id        int       `db:"id,key,auto"`
	Title     string    `db:"title"`
	Author    string    `db:"author"`
	Published time.Time `db:"published"`
	Version   int       `db:"version,oplock"`
}

func (*Book) TableName

func (*Book) TableName() string

type CountByAuthor

type CountByAuthor struct {
	Author string `db:"author"`
	Count  int    `db:"count"`
}

Jump to

Keyboard shortcuts

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