Documentation
¶
Index ¶
- func FilterToExpression(f *filters.Filter, formatter func(string) string) string
- type ClassDefinition
- type Client
- func (c *Client) AlterProperty(className string, prop Property) error
- func (c *Client) Connect() error
- func (c *Client) CreateClass(class ClassDefinition) error
- func (c *Client) CreateDatabase() (Document, error)
- func (c *Client) CreateDocument(doc Document) (Document, error)
- func (c *Client) CreateDocumentClass(class ClassDefinition) error
- func (c *Client) CreateIndex(className string, index Index) error
- func (c *Client) CreateProperty(className string, prop Property) error
- func (c *Client) DeleteDocument(id string) error
- func (c *Client) DeleteDocumentClass(name string) error
- func (c *Client) GetDatabase() (Document, error)
- func (c *Client) GetDocument(id string) (Document, error)
- func (c *Client) GetDocumentClass(name string) (*DocumentClass, error)
- func (c *Client) Query(obj string, query *filters.SearchQuery) ([]Document, error)
- func (c *Client) Request(method string, url string, body io.Reader) (*http.Response, error)
- func (c *Client) Sql(query string) ([]Document, error)
- func (c *Client) Upsert(doc Document, key string) (Document, error)
- type Document
- type DocumentClass
- type Error
- type Errors
- type Index
- type Property
- type Result
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClassDefinition ¶ added in v0.10.0
type ClassDefinition struct {
Name string `json:"name"`
SuperClass string `json:"superClass,omitempty"`
SuperClasses []string `json:"superClasses,omitempty"`
Abstract bool `json:"abstract"`
StrictMode bool `json:"strictmode"`
Alias string `json:"alias,omitempty"`
Properties []Property `json:"properties,omitempty"`
Indexes []Index `json:"indexes,omitempty"`
}
type Client ¶ added in v0.10.0
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶ added in v0.10.0
func (*Client) AlterProperty ¶ added in v0.10.0
func (*Client) CreateClass ¶ added in v0.10.0
func (c *Client) CreateClass(class ClassDefinition) error
func (*Client) CreateDatabase ¶ added in v0.10.0
func (*Client) CreateDocument ¶ added in v0.10.0
func (*Client) CreateDocumentClass ¶ added in v0.10.0
func (c *Client) CreateDocumentClass(class ClassDefinition) error
func (*Client) CreateIndex ¶ added in v0.10.0
func (*Client) CreateProperty ¶ added in v0.10.0
func (*Client) DeleteDocumentClass ¶ added in v0.10.0
func (*Client) GetDocument ¶ added in v0.10.0
func (*Client) GetDocumentClass ¶ added in v0.10.0
func (c *Client) GetDocumentClass(name string) (*DocumentClass, error)
func (*Client) Query ¶ added in v0.10.0
func (*Client) Request ¶ added in v0.10.0
type DocumentClass ¶ added in v0.10.0
type DocumentClass struct {
Class ClassDefinition `json:"class"`
}
type Error ¶ added in v0.10.0
type Index ¶ added in v0.10.0
type Property ¶ added in v0.10.0
type Property struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
LinkedType string `json:"linkedType,omitempty"`
LinkedClass string `json:"linkedClass,omitempty"`
Mandatory bool `json:"mandatory"`
NotNull bool `json:"notNull"`
ReadOnly bool `json:"readonly"`
Collate string `json:"collate,omitempty"`
Regexp string `json:"regexp,omitempty"`
}
type Session ¶ added in v0.10.0
type Session struct {
// contains filtered or unexported fields
}
Source Files
¶
- client.go
Click to show internal directories.
Click to hide internal directories.