FsCassy


Statement

Namespace: FsCassy

DSL for composing the statements

Functions and values

Function or valueDescription
bindM f _arg1
Signature: f:('?7734 -> Statement<'?7735,'?7736>) -> _arg1:Statement<'?7735,'?7734> -> Statement<'?7735,'?7736>
Type parameters: '?7734, '?7735, '?7736

Compose statement x with the statement returned by f

count arg1
Signature: '?7771 -> Statement<'?7772,Computation<int64>>
Type parameters: '?7771, '?7772

count the results of a query

delete arg1
Signature: '?7768 -> Statement<'?7769,CommandStatement>
Type parameters: '?7768, '?7769

delete command

execute arg1
Signature: '?7780 -> Statement<'t,Computation<unit>>
Type parameters: '?7780, 't

execute a command statement (doesn't return anything)

find arg1
Signature: '?7777 -> Statement<'t,Computation<'t option>>
Type parameters: '?7777, 't

execute find operation (may return a single record)

lift clause
Signature: clause:Clause<'t,'r> -> Statement<'t,'r>
Type parameters: 't, 'r

Lift clause into statement

prepared (s, args) arg3
Signature: (s:string * args:obj []) -> TableStatement -> Statement<'?7758,PreparedStatement>
Type parameters: '?7758

prepared statement

read arg1
Signature: '?7774 -> Statement<'t,Computation<seq<'t>>>
Type parameters: '?7774, 't

execute read operation (return all matching records)

returnM x
Signature: x:'?7738 -> Statement<'?7739,'?7738>
Type parameters: '?7738, '?7739

Return statement x

select x arg2
Signature: x:(type) -> '?7753 -> Statement<'?7752,QueryStatement>
Type parameters: '?7752, '?7753

select query

table
Signature: Statement<'t,TableStatement>
Type parameters: 't

table starts every statement, binding a mapped type to the operation

take n arg2
Signature: n:int -> '?7746 -> Statement<'?7747,QueryStatement>
Type parameters: '?7746, '?7747

take query

update arg1
Signature: '?7762 -> Statement<'?7763,CommandStatement>
Type parameters: '?7762, '?7763

partial update command

updateIf x arg2
Signature: x:(type) -> '?7766 -> Statement<'?7765,CommandStatement>
Type parameters: '?7765, '?7766

conditional partial update

upsert i arg2
Signature: i:'?7760 -> TableStatement -> Statement<'?7760,CommandStatement>
Type parameters: '?7760

insert or update command

where x arg2
Signature: x:(type) -> '?7750 -> Statement<'?7749,QueryStatement>
Type parameters: '?7749, '?7750

where query

withConsistency c q
Signature: c:Consistency -> q:'?7755 -> Statement<'?7756,'?7755>
Type parameters: '?7755, '?7756

specify consistency for the operation

Fork me on GitHub