Document that queries might throw a MySql.Data.MySqlClient.MySqlException exception.
This commit is contained in:
parent
b8bb1112f2
commit
1c42ff951d
|
@ -45,11 +45,13 @@ module ExtensionQueries =
|
|||
///
|
||||
/// **Exceptions**
|
||||
///
|
||||
/// * `MySql.Data.MySqlClient.MySqlException`
|
||||
///
|
||||
let getDownloads (ctx:ExtensionDbType) extid =
|
||||
query {
|
||||
for order in ctx.Extensions.Extension do
|
||||
where (order.Extid = extid && order.Downloads.IsSome)
|
||||
select (order.Date, order.Downloads.Value)
|
||||
where (order.Extid = extid && order.Downloads.IsSome)
|
||||
select (order.Date, order.Downloads.Value)
|
||||
}
|
||||
|
||||
/// **Description**
|
||||
|
@ -69,9 +71,11 @@ module ExtensionQueries =
|
|||
///
|
||||
/// **Exceptions**
|
||||
///
|
||||
/// * `MySql.Data.MySqlClient.MySqlException`
|
||||
///
|
||||
let getAllExtIds (ctx:ExtensionDbType) =
|
||||
query {
|
||||
for ext in ctx.Extensions.Extension do
|
||||
select ext.Extid
|
||||
distinct
|
||||
select ext.Extid
|
||||
distinct
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue