Module
Sqlite.Core
- Package
- purescript-sqlite
- Repository
- Risto-Stevcev/purescript-sqlite
#_OPEN_CREATE Source
_OPEN_CREATE :: Int
#setVerbose Source
setVerbose :: forall e. Eff (sqlite :: SQLITE | e) Unit
Sets the debug mode for sqlite to verbose
#connectCached Source
connectCached :: forall e. String -> DbMode -> Aff (sqlite :: SQLITE | e) DbConnection
Uses sqlite's built-in cache to avoid opening the same database multiple times
#stmtPrepare Source
stmtPrepare :: forall e. DbConnection -> SqlQuery -> Aff (sqlite :: SQLITE | e) DbStatement
#stmtFinalize Source
stmtFinalize :: forall e. DbStatement -> Aff (sqlite :: SQLITE | e) Unit
#stmtGetOne Source
stmtGetOne :: forall a. DbStatement -> SqlParams -> SqlRow a
#listen Source
listen :: forall a e. DbConnection -> DbEvent e a -> Eff e a
Listener for the database open event
#DbStatement Source
data DbStatement :: Type
#DbConnection Source
data DbConnection :: Type
#DbListener Source
data DbListener :: Row Effect -> Type
A boxed function that can be used as a listener. This is necessary due to the underling implementation of Eff functions.
#_dbListener Source
_dbListener :: forall b a e. (a -> Eff e b) -> DbListener e
Creates a DbListener from a normal PureScript Eff function for the listen function.
#_dbListenerFn2 Source
_dbListenerFn2 :: forall c b a e. (Fn2 a b (Eff e c)) -> DbListener e
Creates a DbListener for a callback that takes two arguments
#_getOne Source
_getOne :: forall e. Fn2 DbConnection SqlQuery (Aff (sqlite :: SQLITE | e) (Undefinable Foreign))
#_stmtPrepare Source
_stmtPrepare :: forall e. Fn2 DbConnection SqlQuery (Aff (sqlite :: SQLITE | e) DbStatement)
#_stmtReset Source
_stmtReset :: forall e. DbStatement -> (Aff (sqlite :: SQLITE | e) Unit)
#_stmtFinalize Source
_stmtFinalize :: forall e. DbStatement -> (Aff (sqlite :: SQLITE | e) Unit)
#_stmtGetOne Source
_stmtGetOne :: forall e. Fn2 DbStatement SqlParams (Aff (sqlite :: SQLITE | e) (Undefinable Foreign))
#_listen Source
_listen :: forall a e. Fn3 DbConnection String (DbListener e) (Eff e a)
- Modules
- Sqlite.
Core - Sqlite.
Trans