snaplet-hdbc-0.7.2.1: HDBC snaplet for Snap Framework

Snap.Snaplet.Auth.Backends.Hdbc

Description

Authentication backend using HDBC

Synopsis

Documentation

initHdbcAuthManagerSource

Arguments

:: (ConnSrc s, IConnection c) 
=> AuthSettings

Auth settings

-> Lens b (Snaplet SessionManager)

Lens to the session manager

-> s c

Raw HDBC connection

-> AuthTable

Authentication table configuration

-> Queries

Queries to be used for authentication

-> SnapletInit b (AuthManager b) 

Initialises this HDBC snaplet. It automatically configures a resource pool with commonly acceptable default settings. Use initHdbcAuthManager' to initialise with a custom resource pool.

data HdbcAuthManager Source

Authmanager state containing the resource pool and the table/query configuration.

Constructors

forall c s . (IConnection c, ConnSrc s) => HdbcAuthManager 

defAuthTable :: AuthTableSource

Default authentication table layout

colLst :: [AuthTable -> String]Source

List of deconstructors so it's easier to extract column names form an AuthTable.

prepExec :: IConnection conn => String -> [SqlValue] -> conn -> IO ()Source