Utilities Module
Functions and values
| Function or value |
Description
|
Full Usage:
fieldConstant value
Parameters:
obj
Returns: string
|
Renders an inline SQL *value literal* (used where a provider - chiefly ODBC - can't bind a parameter). String/Guid/DateTime literals are ALWAYS single-quoted (the delimiter is fixed here, it is NOT OdbcQuoteCharacter - that setting only controls *identifier* quoting: ` ` / [ ] / " " / 'x'). Because the delimiter is a single quote, the escape must be the matching single quote doubled ('') - and ONLY the single quote is doubled; every other character (including ") passes through verbatim. So `O'Brien` -> 'O''Brien' and `say "hi"` -> 'say "hi"'. The '' escape is SQL-standard and universal across backends. (If the literal delimiter were ever made configurable, the escaped char would have to track it.)
|
Full Usage:
genericAliasNotation aliasSprint _arg1
Parameters:
string -> 'a
_arg1 : SqlColumnType
Returns: 'a
Type parameters: 'a |
|
Full Usage:
genericFieldNotation recursionBase colSprint _arg1
Parameters:
SqlColumnType -> string
colSprint : string -> string
_arg1 : SqlColumnType
Returns: string
|
Standard SQL. Provider spesific overloads can be done before this.
|
|
|
|
The type of an assembly-qualified or plain type name, or null. A saved schema names types as the runtime that saved it had them: "System.String, System.Private.CoreLib, Version=10.0.0.0, ..." from .NET, "System.String, mscorlib, Version=4.0.0.0, ..." from .NET Framework, and a type such as System.Net.IPAddress lives in System.Net.Primitives on one and System on the other. So a name that doesn't load as written is read again part by part, generic arguments included: an assembly is loaded as named, then by its simple name (any version), and a type that isn't in its named assembly is looked for in the core library and then in the assemblies already loaded, public types only. A part that names no assembly is not looked for there.
|
Full Usage:
parseAggregates fieldNotat fieldNotationAlias query
Parameters:
'a -> SqlColumnType -> string
fieldNotationAlias : 'a * SqlColumnType -> string
query : ('a * SqlColumnType) list
Returns: string list
Type parameters: 'a |
|
|
|
Full Usage:
uniqueName ()
Parameters:
unit
Returns: string -> string
|
|