Documentation ¶ Overview ¶ Package sqlitetest opens in-memory SQLite databases for unit tests using modernc.org/sqlite. Index ¶ func OpenClient(t *testing.T, dbName string) *gen.Client Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func OpenClient ¶ func OpenClient(t *testing.T, dbName string) *gen.Client OpenClient opens a private in-memory SQLite database and returns an ent client with schema applied. dbName isolates databases when tests run in parallel (use t.Name() or a stable per-suite name). Types ¶ This section is empty. Source Files ¶ View all Source files sqlitetest.go Click to show internal directories. Click to hide internal directories.