Documentation
¶
Overview ¶
pgdoc wraps a postgresql database into a simple document database using the json column
Index ¶
- Constants
- Variables
- func IsNoData(e error) bool
- type Changeset
- type Database
- func (d *Database) Begin() (*Changeset, error)
- func (d *Database) Close() error
- func (d *Database) CreateIndex(tableOrLink string, idxName string, propPath ...string) error
- func (d *Database) DropIndex(tableOrLink string, idxName string) error
- func (d *Database) NewQuery() Query
- func (d *Database) TruncateDatabase() (err error)
- func (d *Database) Unique(tableOrLink string, idxName string, propPath ...string) error
- type Filter
- type Node
- type Op
- type Query
- type ValueType
Constants ¶
View Source
const ( Invalid = ValueType(0) // RDF node holds a string String = ValueType(1) // RDF node holds a Integer Int = ValueType(2) // RDF node holds a Double Double = ValueType(4) // RDF node holds a JSON Document Doc = ValueType(8) // RDF node holds a ref to another Resource Ref = ValueType(16) )
Variables ¶
View Source
var (
ErrIndexAlreadyExists = errors.New("index already exists on database")
)
Functions ¶
Types ¶
type Changeset ¶
type Changeset struct {
// contains filtered or unexported fields
}
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func OpenDatabase ¶
func (*Database) CreateIndex ¶
func (*Database) TruncateDatabase ¶
type Node ¶
func (*Node) ScanDocument ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) CopyFilterFrom ¶
func (*Query) FetchResource ¶
Click to show internal directories.
Click to hide internal directories.