dbtest

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dbtest provides test utilities for the powersync/db package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertCrudEntry

func InsertCrudEntry(t *testing.T, db sqlite.DB, id int64, txID *int64, data string)

InsertCrudEntry inserts a test entry into the ps_crud table.

func OpenTestDB

func OpenTestDB(t *testing.T) sqlite.DB

OpenTestDB creates a temporary SQLite database with the PowerSync extension loaded and schema initialized. Ready for testing. The database is automatically closed when the test completes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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