This REST Layer resource storage backend stores data in a SQLite3 database using database/sql and go-sqlite3.
This backend assumes that you have created the database schema in SQLite3 to match your REST API schema. For a reasonably complete example, look at example_test.go. To run the example, copy it to a new location, rename it to example.go
, change the package name to main
, and change the name of the Example
function to main
, finally, go run example.go
.
This backend does not currently implement the following features of the interface:
- array fields
- dict fields
- $exists filter (not applicable to a DB with predefined schema)
- field selection
- field aliasing
- embedding
- field parameters