Documentation ¶
Index ¶
- type Engine
- func (eng *Engine) Backup(path string) error
- func (eng *Engine) Close() error
- func (eng *Engine) Copy(dst *Engine) error
- func (eng *Engine) Exec(req *pb.Request) ([]*pb.ExecRes, error)
- func (eng *Engine) ExecString(str string) ([]*pb.ExecRes, error)
- func (eng *Engine) FileSize() (int64, error)
- func (eng *Engine) IsMem() bool
- func (eng *Engine) IsReadOnly() bool
- func (eng *Engine) Metric() (map[string]any, error)
- func (eng *Engine) Path() string
- func (eng *Engine) Query(req *pb.Request) ([]*pb.QueryRes, error)
- func (eng *Engine) QueryString(query string) ([]*pb.QueryRes, error)
- func (eng *Engine) Serialize() ([]byte, error)
- func (eng *Engine) Size() (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine handles database operations such that queries and executes. This also handles backups and copying the data. Also collects metrics for node information.
func Open ¶
Open creates a new database engine instance. It starts a read-only and a write connection.
func OpenMemory ¶
func (*Engine) IsReadOnly ¶
func (*Engine) Metric ¶
Metric gets some data from the database. Basically information about how much data has been used etc...
Click to show internal directories.
Click to hide internal directories.