Documentation
¶
Index ¶
- type ClassDefinition
- type Client
- func (c *Client) Connect() 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) 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) Request(method string, url string, body io.Reader) (*http.Response, error)
- func (c *Client) Sql(query 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 ¶
This section is empty.
Types ¶
type ClassDefinition ¶
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 ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func (*Client) CreateDocumentClass ¶
func (c *Client) CreateDocumentClass(class ClassDefinition) error
func (*Client) GetDocumentClass ¶
func (c *Client) GetDocumentClass(name string) (*DocumentClass, error)
func (*Client) Request ¶
type DocumentClass ¶
type DocumentClass struct {
Class ClassDefinition `json:"class"`
}
type Error ¶
type Index ¶
type Property ¶
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 ¶
type Session struct {
// contains filtered or unexported fields
}
Source Files
¶
- client.go
Click to show internal directories.
Click to hide internal directories.