package automation

import (
	"testing"

	"github.com/tidbcloud/AgentTeam/internal/gormtest"
	"gorm.io/gorm"
)

func openServiceTestSQLiteDB(t *testing.T, suffix ...string) (*gorm.DB, error) {
	t.Helper()
	return gormtest.OpenSQLiteDB(t, suffix...)
}

func openServiceTestConcurrentSQLiteDB(t *testing.T) (*gorm.DB, error) {
	t.Helper()
	return gormtest.OpenConcurrentSQLiteDB(t)
}

func serviceTestSQLiteDSN(t *testing.T, suffix ...string) string {
	t.Helper()
	return gormtest.SQLiteDSN(t, suffix...)
}
