Documentation
¶
Overview ¶
Package fakesql is a test stand-in for a rqlite engine (ADR-0233): one table todos(id, title, done), basic auth as user funcd, /db/query on a read-only connection and /db/execute?transaction all or nothing, in rqlite's array format. It understands only the statements the SQL tests send; any other is a syntax error, as an unknown table would be. NewStrict's engine starts with no table: a migration creates todos, and its _migrations table records versions (ADR-0236).
Index ¶
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 is a running fake engine.
func (*Engine) Migrations ¶
Migrations are the versions in _migrations, in the order they were recorded.
Click to show internal directories.
Click to hide internal directories.