chickadee » orm-db-sqlite » sqlite3-backend

sqlite3-backendprocedure

Returns a backend alist implementing the orm-db protocol — the keys connect, close, query, and execute — backed by the sqlite3 egg. Pass the result to db/backend.

(db/backend (sqlite3-backend))

The backend procedures are used by orm-db; you do not normally call them directly:

  • connect: opens the SQLite database at db/path
  • close: finalizes and closes the connection
  • query: runs a SELECT, returning a vector of alists
  • execute: runs a statement, returning the requested output value (e.g. rows_affected, last_insert_rowid)