forked from fsprojects/Rezoom.SQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSynchronous.fsi
More file actions
53 lines (45 loc) · 2.7 KB
/
Synchronous.fsi
File metadata and controls
53 lines (45 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
namespace Rezoom.SQL.Synchronous
open System.Collections.Generic
open System.Data.Common
open System.Runtime.CompilerServices
open Rezoom.SQL
/// Extension methods for executing commands synchronously against a database.
[<Extension>]
type Extensions = class
/// Execute the command on a connection and return its result sets.
[<Extension>]
static member Execute : cmd : Command<'a> * conn : DbConnection -> 'a
/// Execute the command on a connection and return its result sets.
/// The connection is obtained from the given `ConnectionContext` according to the command's `ConnectionName`
/// property.
[<Extension>]
static member Execute : cmd : Command<'a> * context:ConnectionContext -> 'a
/// Execute the command on a connection and return the optional first and only row of its single result set.
/// If the command returns more than 1 row, this throws an exception.
[<Extension>]
static member ExecuteTryExactlyOne : cmd : Command<#IReadOnlyList<'a>> * conn : DbConnection -> 'a option
/// Execute the command on a connection and return the optional first and only row of its single result set.
/// If the command returns more than 1 row, this throws an exception.
/// The connection is obtained from the given `ConnectionContext` according to the command's `ConnectionName`
/// property.
[<Extension>]
static member ExecuteTryExactlyOne : cmd : Command<#IReadOnlyList<'a>> * context : ConnectionContext -> 'a option
/// Execute the command on a connection and return the first and only row of its single result set.
/// If the command returns no rows or more than 1 row, this throws an exception.
[<Extension>]
static member ExecuteExactlyOne : cmd : Command<#IReadOnlyList<'a>> * conn : DbConnection -> 'a
/// Execute the command on a connection and return the first and only row of its single result set.
/// If the command returns no rows or more than 1 row, this throws an exception.
/// The connection is obtained from the given `ConnectionContext` according to the command's `ConnectionName`
/// property.
[<Extension>]
static member ExecuteExactlyOne : cmd : Command<#IReadOnlyList<'a>> * context : ConnectionContext -> 'a
/// Execute the command on a connection and return its scalar result.
[<Extension>]
static member ExecuteScalar : cmd : Command<#IScalar<'a>> * conn : DbConnection -> 'a
/// Execute the command on a connection and return its scalar result.
/// The connection is obtained from the given `ConnectionContext` according to the command's `ConnectionName`
/// property.
[<Extension>]
static member ExecuteScalar : cmd : Command<#IScalar<'a>> * context : ConnectionContext -> 'a
end