module Unison.Sqlite
(
Connection,
withConnection,
Transaction,
runTransaction,
runTransactionWithRollback,
runReadOnlyTransaction,
runWriteTransaction,
cacheTransaction,
savepoint,
unsafeIO,
unsafeUnTransaction,
Sql,
sql,
execute,
executeStatements,
queryStreamRow,
queryStreamCol,
queryListRow,
queryListCol,
queryMaybeRow,
queryMaybeCol,
queryOneRow,
queryOneCol,
queryListRowCheck,
queryListColCheck,
queryMaybeRowCheck,
queryMaybeColCheck,
queryOneRowCheck,
queryOneColCheck,
rowsModified,
DataVersion (..),
getDataVersion,
JournalMode (..),
trySetJournalMode,
vacuum,
vacuumInto,
SomeSqliteException (..),
isCantOpenException,
SqliteConnectException,
SqliteQueryException,
SqliteExceptionReason,
SomeSqliteExceptionReason (..),
ExpectedAtMostOneRowException (..),
ExpectedExactlyOneRowException (..),
SetJournalModeException (..),
Sqlite.Simple.field,
(Sqlite.Simple.:.) (..),
Sqlite.Simple.FromField (fromField),
Sqlite.Simple.FromRow (fromRow),
Sqlite.Simple.Only (..),
Sqlite.Simple.RowParser,
Sqlite.Simple.SQLData (..),
Sqlite.Simple.ToField (toField),
Sqlite.Simple.ToRow (toRow),
)
where
import Database.SQLite.Simple qualified as Sqlite.Simple
import Database.SQLite.Simple.FromField qualified as Sqlite.Simple
import Database.SQLite.Simple.FromRow qualified as Sqlite.Simple
import Database.SQLite.Simple.ToField qualified as Sqlite.Simple
import Unison.Sqlite.Connection
( Connection,
ExpectedAtMostOneRowException (..),
ExpectedExactlyOneRowException (..),
vacuum,
vacuumInto,
withConnection,
)
import Unison.Sqlite.DataVersion (DataVersion (..), getDataVersion)
import Unison.Sqlite.Exception
( SomeSqliteException (..),
SomeSqliteExceptionReason (..),
SqliteConnectException,
SqliteExceptionReason,
SqliteQueryException,
isCantOpenException,
)
import Unison.Sqlite.JournalMode (JournalMode (..), SetJournalModeException (..), trySetJournalMode)
import Unison.Sqlite.Sql (Sql, sql)
import Unison.Sqlite.Transaction