Documentation
¶
Overview ¶
Package falkordb provides the model for FlakorDB, a Redis module.
Index ¶
- type Driver
- func (d *Driver) DiscardQuery(res dbms.QueryResult, seed *seed.Seed) bool
- func (d *Driver) GetQueryResultType(res dbms.QueryResult, errorMessageRegex *dbms.ErrorMessageRegex) dbms.QueryResultType
- func (d *Driver) GetSchema(dbms.DBOptions) (*schema.Schema, error)
- func (d *Driver) Init(opts dbms.DBOptions) error
- func (d *Driver) IsEqualResult(a dbms.QueryResult, b dbms.QueryResult) bool
- func (d *Driver) IsMatchingRows(first, second any) bool
- func (d *Driver) Reset(opts dbms.DBOptions) error
- func (d *Driver) RunQuery(opts dbms.DBOptions, query string) dbms.QueryResult
- func (d *Driver) VerifyConnectivity(opts dbms.DBOptions) (bool, error)
- type Implementation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver for FlakorDB
func (*Driver) DiscardQuery ¶
DiscardQuery returns true with probability 1/3 or if the query produced a non-nil error, else it returns false. Thereby causing queries to have an expected amount of 4 statements if they don't produce an error.
func (*Driver) GetQueryResultType ¶
func (d *Driver) GetQueryResultType(res dbms.QueryResult, errorMessageRegex *dbms.ErrorMessageRegex) dbms.QueryResultType
GetQueryResultType evaluates the produced result and returns the type the result indicates.
func (*Driver) IsEqualResult ¶
func (d *Driver) IsEqualResult(a dbms.QueryResult, b dbms.QueryResult) bool
IsEqualResult returns whether the two passed results equal
func (*Driver) IsMatchingRows ¶
IsMatchingRows compares two redisgraph result rows. It returns true if they match, else false.
type Implementation ¶
type Implementation struct{}
Implementation for FlakorDB
func (Implementation) GetDropIns ¶
func (Implementation) GetDropIns() translator.DropIns
GetDropIns returns the clause drop-ins for the FlakorDB implementation
func (Implementation) GetOpenCypherConfig ¶
func (Implementation) GetOpenCypherConfig() config.Config
GetOpenCypherConfig returns the generation config for the FlakorDB implementation