Seq Module
Functions and values
| Function or value |
Description
|
Full Usage:
``deleteallitemsfromsingletable`` _arg1
Parameters:
IQueryable<'T>
Returns: Task<int>
Type parameters: 'T |
WARNING! Execute SQLProvider DELETE FROM query to remove elements from the database.
|
Full Usage:
averageAsync
Returns: IQueryable<'T> -> Task<'T>
Type parameters: 'T (requires comparison) |
Execute SQLProvider query to get the avg of elements, and release the OS thread while query is being executed.
|
|
Execute SQLProvider query to get the only element of the sequence. Throws `ArgumentNullException` if the seq is empty. Throws `ArgumentException` if the seq contains more than one element.
|
|
Execute SQLProvider query and release the OS thread while query is being executed.
|
|
Execute SQLProvider query to take one result and release the OS thread while query is being executed. Like normal head: Throws exception if no elements exists. See also tryHeadAsync.
|
|
Execute SQLProvider query to count the elements, and release the OS thread while query is being executed.
|
Full Usage:
lockForUpdate query
Parameters:
IQueryable<'T>
-
A SQLProvider query of a table's rows, joined ones too; not distinct, grouped, counted,
aggregated or a union, and not a part of another query (a sub-query, a join's table) or a delete.
Returns: IQueryable<'T>
The query, locking its rows when any executor runs it. A queryable that isn't a database query, such as a
mock context's, comes back as it is; a SQLProvider query behind an in-memory step (Seq.map, then
AsQueryable) is refused, as its rows couldn't be locked.
Type parameters: 'T |
Marks a query to lock the rows it reads until the transaction ends, against lost updates: another transaction that locks, changes or deletes one of them waits until this one commits or rolls back.
Run it inside a transaction: a
Example
val scope: obj
val order: obj
val query: Linq.QueryBuilder
val o: obj
custom operation: where (bool)
Calls Linq.QueryBuilder.Where
val id: x: 'T -> 'T
custom operation: select ('Result)
Calls Linq.QueryBuilder.Select
module Seq
from Microsoft.FSharp.Collections
|
Full Usage:
lockForUpdateAsync query
Parameters:
IQueryable<'T>
-
The query, as lockForUpdate takes it.
Returns: Task<'T seq>
The rows read, each locked.
Type parameters: 'T |
Runs a query with its rows locked until the transaction ends (see
|
Full Usage:
lockForUpdateHeadAsync query
Parameters:
IQueryable<'T>
-
The query, as lockForUpdate takes it.
Returns: Task<'T>
The row, locked. Fails when the query reads no rows; see lockForUpdateTryHeadAsync.
Type parameters: 'T |
Reads the query's first row, locked until the transaction ends (see Oracle refuses it after a sort.
|
Full Usage:
lockForUpdateTryHeadAsync query
Parameters:
IQueryable<'T>
-
The query, as lockForUpdate takes it.
Returns: Task<'T option>
The row, locked, or None when the query reads no rows.
Type parameters: 'T |
Reads the query's first row, if any, locked until the transaction ends (see Oracle refuses it after a sort.
|
|
Execute SQLProvider query to get the max of elements, and release the OS thread while query is being executed.
|
|
Execute SQLProvider query to get the min of elements, and release the OS thread while query is being executed.
|
Full Usage:
stdDevAsync
Returns: IQueryable<'T> -> Task<'T>
Type parameters: 'T (requires comparison) |
Execute SQLProvider query to get the standard deviation of elements, and release the OS thread while query is being executed.
|
|
Execute SQLProvider query to get the sum of elements, and release the OS thread while query is being executed.
|
|
Execute SQLProvider query to get the only element of the sequence. Returns `None` if there are zero or more than one element in the seq.
|
|
Execute SQLProvider query to take one result and release the OS thread while query is being executed. Returns None if no elements exists.
|
Full Usage:
varianceAsync
Returns: IQueryable<'T> -> Task<'T>
Type parameters: 'T (requires comparison) |
Execute SQLProvider query to get the variance of elements, and release the OS thread while query is being executed.
|