sqlitetest

package
v0.95.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sqlitetest opens in-memory SQLite databases for unit tests using modernc.org/sqlite.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL