Module

Sqlite.Trans

Package
purescript-sqlite
Repository
Risto-Stevcev/purescript-sqlite

#SqlRowT Source

type SqlRowT a = forall e. Decode a => ExceptT Error (Aff (sqlite :: SQLITE | e)) (Maybe a)

#SqlRowsT Source

type SqlRowsT a = forall e. Decode a => ExceptT Error (Aff (sqlite :: SQLITE | e)) (Array a)

#valueToRight Source

valueToRight :: forall e a. Aff (sqlite :: SQLITE | e) a -> Aff (sqlite :: SQLITE | e) (Either Error a)

#connectT Source

connectT :: forall e. String -> DbMode -> ExceptT Error (Aff (sqlite :: SQLITE | e)) DbConnection

#connectCachedT Source

connectCachedT :: forall e. String -> DbMode -> ExceptT Error (Aff (sqlite :: SQLITE | e)) DbConnection

#closeT Source

closeT :: forall e. DbConnection -> ExceptT Error (Aff (sqlite :: SQLITE | e)) Unit

#runT Source

runT :: forall e. DbConnection -> SqlQuery -> ExceptT Error (Aff (sqlite :: SQLITE | e)) RunResult

#getT Source

getT :: forall a. DbConnection -> SqlQuery -> SqlRowsT a

#getOneT Source

getOneT :: forall a. DbConnection -> SqlQuery -> SqlRowT a

#stmtPrepareT Source

stmtPrepareT :: forall e. DbConnection -> SqlQuery -> ExceptT Error (Aff (sqlite :: SQLITE | e)) DbStatement

#stmtBindT Source

stmtBindT :: forall e. DbStatement -> SqlParams -> ExceptT Error (Aff (sqlite :: SQLITE | e)) Unit

#stmtResetT Source

stmtResetT :: forall e. DbStatement -> ExceptT Error (Aff (sqlite :: SQLITE | e)) Unit

#stmtFinalizeT Source

stmtFinalizeT :: forall e. DbStatement -> ExceptT Error (Aff (sqlite :: SQLITE | e)) Unit

#stmtRunT Source

stmtRunT :: forall e. DbStatement -> SqlParams -> ExceptT Error (Aff (sqlite :: SQLITE | e)) RunResult

#stmtGetT Source

stmtGetT :: forall a. DbStatement -> SqlParams -> SqlRowsT a

#stmtGetOneT Source