postgres

package
v0.0.0-...-948df8c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArticleObjs _ArticleObjs
View Source
var UserObjs _UserObjs

Functions

This section is empty.

Types

type Article

type Article struct {
	Id       int64   `json:"id"`
	UserId   int64   `json:"user_id"`
	Title    string  `json:"title"`
	State    int     `json:"state"`
	Content  string  `json:"content"`
	Donation float64 `json:"donation"`
}

func (Article) Delete

func (obj Article) Delete(dbtx gmq.DbTx) (int64, error)

func (Article) Insert

func (obj Article) Insert(dbtx gmq.DbTx) (Article, error)

func (Article) String

func (obj Article) String() string

func (Article) Update

func (obj Article) Update(dbtx gmq.DbTx) (int64, error)

type ArticleRowVisitor

type ArticleRowVisitor func(obj Article) bool

type User

type User struct {
	Id        int64  `json:"id"`
	Name      string `json:"name"`
	Password  string `json:"password"`
	IsMarried bool   `json:"is_married"`
	Age       int    `json:"age"`
}

func (User) Delete

func (obj User) Delete(dbtx gmq.DbTx) (int64, error)

func (User) Insert

func (obj User) Insert(dbtx gmq.DbTx) (User, error)

func (User) String

func (obj User) String() string

func (User) Update

func (obj User) Update(dbtx gmq.DbTx) (int64, error)

type UserRowVisitor

type UserRowVisitor func(obj User) bool

Jump to

Keyboard shortcuts

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