SqliteEngine.Procedures.Testing (SqliteEngine v0.1.1)

Copy Markdown View Source

Lightweight helpers for procedure-focused ExUnit setup.

The helpers do not depend on ExUnit. Register the returned connection with on_exit/1 in the test that owns it.

Summary

Functions

Installs {name, source} pairs and returns a name-to-procedure map.

Opens an in-memory low-level connection and initializes the catalog.

Warms every named procedure returned by install_all/2.

Functions

install_all(conn, procedures)

Installs {name, source} pairs and returns a name-to-procedure map.

open_memory()

@spec open_memory() :: {:ok, SqliteEngine.Sqlite3.db()}

Opens an in-memory low-level connection and initializes the catalog.

warm_all(conn, procedures)

Warms every named procedure returned by install_all/2.