Documentation
¶
Overview ¶
Package readonly decides, from the text of a statement alone, whether a query only reads. It is the first of two guards: it gives a clear message before anything is sent, and the second is the read-only transaction the store itself enforces. It knows nothing of any driver, so the validator can use it without pulling the drivers in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyStatement = errors.New("the query is empty") ErrManyStatements = errors.New("the query has more than one statement") ErrNotReadOnly = errors.New("the query is not read-only") )
The reasons Check refuses a statement.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.