Sql Module
Functions and values
Function or value | Description |
|
|
Full Usage:
connectAsync con f
Parameters:
DbConnection
f : DbConnection -> unit
Returns: Task<unit>
|
|
|
|
Full Usage:
dataReaderToArrayAsync reader
Parameters:
DbDataReader
Returns: Task<(string * obj)[] array>
|
|
Full Usage:
dbUnbox v
Parameters:
obj
Returns: 'a
|
|
Full Usage:
dbUnboxWithDefault def v
Parameters:
'a
v : obj
Returns: 'a
|
|
|
|
Full Usage:
evaluateOneByOne asyncFunc entityList
Parameters:
'a -> 'b
entityList : 'a seq
Returns: Task<'c list>
|
Helper function to run async computation non-parallel style for list of objects. This is needed if async database opreation is executed for a list of entities. DB-connections are not usually supporting parallel SQL-query execution, so even when async thread is available, it can't be used to execute another SQL at the same time.
|
Full Usage:
executeSql createCommand sql con
Parameters:
'a -> IDbConnection -> IDbCommand
sql : 'a
con : IDbConnection
Returns: IDataReader
|
|
Full Usage:
executeSqlAsDataTable createCommand sql con
Parameters:
'a -> IDbConnection -> IDbCommand
sql : 'a
con : IDbConnection
Returns: DataTable
|
|
Full Usage:
executeSqlAsDataTableAsync createCommand sql con
Parameters:
'a -> IDbConnection -> DbCommand
sql : 'a
con : IDbConnection
Returns: Task<DataTable>
|
|
Full Usage:
executeSqlAsync createCommand sql con
Parameters:
'a -> IDbConnection -> DbCommand
sql : 'a
con : IDbConnection
Returns: Task<DbDataReader>
|
|