# README
A testing DB
This database is mainly for running within tests, it implements db.Connection
To understand the code it's best to read the *_test.go
files
Filters
Supported:
- Key has value filters (
{foo: 'bar'}
) - Numeric filters $gt, $gte, $lt, $lte
- Logical filters $eq, $ne, $not, $and, $or
- Array filters $size
- Others $type (only some types)
Noteworthy Unsupported:
- Nested keys ({'foo.bar.bas': 'example'})
- Array filters $in
# Functions
NewDB returns a testing database connection that is compatible with db.Connection.
# Structs
Collection contains all the data for a collection.
TestConnection is the struct that implements db.Connection.