#!/bin/bash
# Run the SQLite-backed data-layer tests. Unlike run_mysql_test.sh these need no
# container — modernc.org/sqlite is pure Go and the DB is in-memory — so this is
# the SQLite half of the dual-engine test matrix and runs in normal CI.
set -e

echo "Running SQLite migration + store dialect tests..."
go test ./internal/store/ ./internal/db/ \
  -run 'TestSQLite|TestSQLiteMigrateUpDown' \
  -v -count=1 -timeout 120s
