everyrest: github.com/baruchlubinsky/everyrest/beerds Index | Files

package beerds

import "github.com/baruchlubinsky/everyrest/beerds"


Package Files

db.go model.go table.go

type Database Uses

type Database struct {
    // contains filtered or unexported fields

func (*Database) GetContext Uses

func (db *Database) GetContext() appengine.Context

func (*Database) SetContext Uses

func (db *Database) SetContext(req *http.Request)

func (*Database) Table Uses

func (db *Database) Table(name string) (*Table, error)

type Model Uses

type Model struct {
    // contains filtered or unexported fields

func (*Model) Attributes Uses

func (model *Model) Attributes() map[string]interface{}

func (*Model) Delete Uses

func (model *Model) Delete() error

func (*Model) GetId Uses

func (model *Model) GetId() string

func (*Model) Save Uses

func (model *Model) Save() error

func (*Model) SetAttributes Uses

func (model *Model) SetAttributes(data map[string]interface{})

type Table Uses

type Table struct {
    // contains filtered or unexported fields

func (*Table) Delete Uses

func (table *Table) Delete(id string) error

func (*Table) EntityName Uses

func (table *Table) EntityName() string

func (*Table) Find Uses

func (table *Table) Find(id string) (adapters.Model, error)

func (*Table) NewRecord Uses

func (table *Table) NewRecord() adapters.Model

func (*Table) RecordName Uses

func (table *Table) RecordName() string

The name of an individual record.

func (*Table) RecordSetName Uses

func (table *Table) RecordSetName() string

The name of a collection of records.

func (*Table) Search Uses

func (table *Table) Search(query interface{}) adapters.ModelSet

If query == nil, return entire contents of table.

Package beerds imports 6 packages (graph). Updated 2016-07-15. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).