Module
Yoga.SQLite.SQLite
- Package
- purescript-yoga-sqlite
- Repository
- rowtype-yoga/purescript-yoga-sqlite
#DBConnection Source
data DBConnection#Transaction Source
data Transaction#NumberOfChanges Source
#open Source
open :: DatabasePath -> Effect DBConnectionOpen a database connection
#exec Source
exec :: String -> Array SQLParameter -> DBConnection -> Effect UnitExecute a statement (INSERT/UPDATE/DELETE)
#query Source
query :: String -> Array SQLParameter -> DBConnection -> Effect (Array (Array SQLResult))Query for multiple rows
#queryOne Source
queryOne :: String -> Array SQLParameter -> DBConnection -> Effect (Maybe (Array SQLResult))Query for a single row
#lastInsertRowId Source
lastInsertRowId :: DBConnection -> Effect IntGet last inserted row ID
#beginTransaction Source
beginTransaction :: DBConnection -> Effect TransactionBegin a transaction
#PreparedStatement Source
newtype PreparedStatement :: forall k1 k2. k1 -> k2 -> Typenewtype PreparedStatement i o
Constructors
PreparedStatement { db :: DBConnection, sql :: String }
#prepare Source
prepare :: forall @i @o. String -> DBConnection -> Effect (Statement i o)Prepare a statement
#fromRowInfoImpl Source
fromRowInfoImpl :: InfoImpl -> Info#StatementSource Source
type StatementSource = String#statementSource Source
statementSource :: forall i o. Statement i o -> StatementSource- Modules
- Yoga.
SQLite. SQLite