![]() |
Energy Core Library
|
Text formatter class for SQL queries. More...
Classes | |
| class | Class |
Public Member Functions | |
| Format () | |
| Default constructor More... | |
| Format (string dialect) | |
| Parametrized constructor More... | |
| string | Object (string value) |
| Format as database object (table, column, ...). More... | |
| string | Object (string database, string schema, string name) |
| string | Object (string schema, string name) |
| string | Text (string value) |
| Format as TEXT. Null values will be represented as "NULL". More... | |
| string | Text (string value, bool nullify) |
| Format as TEXT. When nullify parameter is set to true, null values will be represented as "NULL" instead of "''". More... | |
| string | Text (string text, int limit) |
| Format as TEXT with limited length. More... | |
| string | Text (object value) |
| Format as TEXT. More... | |
| string | Unicode (string name) |
| Format as Unicode TEXT. More... | |
| string | Unicode (string name, bool nullify) |
| Format as Unicode TEXT. More... | |
| string | Number (object value) |
| Format as NUMBER. More... | |
| string | Number (object value, bool nullify) |
| Format as NUMBER. More... | |
| string | Integer (decimal number) |
| Format as INTEGER. More... | |
| string | Integer (double number) |
| Format as INTEGER. More... | |
| string | Integer (int number) |
| Format as INTEGER. More... | |
| string | Integer (object number, bool nullify) |
| Format as INTEGER. More... | |
| string | Date (DateTime value) |
| Format as DATE. More... | |
| string | Date (object value) |
| Format as DATE. More... | |
| string | Time (DateTime value) |
| Format as TIME. More... | |
| string | Time (object value) |
| Format as TIME. More... | |
| string | Stamp (DateTime value) |
| Format as DATETIME. More... | |
| string | Stamp (object value) |
| Format as DATETIME. More... | |
| string | Now () |
| Format as current time equivalent. More... | |
Static Public Member Functions | |
| static implicit | operator Format (Energy.Enumeration.SqlDialect dialect) |
| Create object from SqlDialect enumeration More... | |
| static implicit | operator Format (string dialect) |
| Create object from string More... | |
Public Attributes | |
| Class.Bracket | Bracket = new Class.Bracket() |
| Quotation settings More... | |
| bool | UseT |
| Use TZ format for DATETIME. More... | |
| string | CurrentStamp |
Properties | |
| static Energy.Query.Format | Default [get] |
| Singleton More... | |
Text formatter class for SQL queries.
| Energy.Query.Format.Format | ( | ) |
Default constructor
| Energy.Query.Format.Format | ( | string | dialect | ) |
Parametrized constructor
| dialect | Database SQL dialect to use for defaults |
| string Energy.Query.Format.Date | ( | DateTime | value | ) |
| string Energy.Query.Format.Date | ( | object | value | ) |
| string Energy.Query.Format.Integer | ( | decimal | number | ) |
| string Energy.Query.Format.Integer | ( | double | number | ) |
| string Energy.Query.Format.Integer | ( | int | number | ) |
| string Energy.Query.Format.Integer | ( | object | number, |
| bool | nullify | ||
| ) |
| string Energy.Query.Format.Now | ( | ) |
Format as current time equivalent.
| string Energy.Query.Format.Number | ( | object | value | ) |
| string Energy.Query.Format.Number | ( | object | value, |
| bool | nullify | ||
| ) |
| string Energy.Query.Format.Object | ( | string | value | ) |
| string Energy.Query.Format.Object | ( | string | database, |
| string | schema, | ||
| string | name | ||
| ) |
| database | |
| schema | |
| name |
| string Energy.Query.Format.Object | ( | string | schema, |
| string | name | ||
| ) |
| schema | |
| name |
|
static |
Create object from SqlDialect enumeration
| dialect |
|
static |
Create object from string
| dialect |
| string Energy.Query.Format.Stamp | ( | DateTime | value | ) |
| string Energy.Query.Format.Stamp | ( | object | value | ) |
| string Energy.Query.Format.Text | ( | string | value | ) |
| string Energy.Query.Format.Text | ( | string | value, |
| bool | nullify | ||
| ) |
Format as TEXT. When nullify parameter is set to true, null values will be represented as "NULL" instead of "''".
| value | |
| nullify |
| string Energy.Query.Format.Text | ( | string | text, |
| int | limit | ||
| ) |
| string Energy.Query.Format.Text | ( | object | value | ) |
| string Energy.Query.Format.Time | ( | DateTime | value | ) |
| string Energy.Query.Format.Time | ( | object | value | ) |
| string Energy.Query.Format.Unicode | ( | string | name | ) |
| string Energy.Query.Format.Unicode | ( | string | name, |
| bool | nullify | ||
| ) |
| Class.Bracket Energy.Query.Format.Bracket = new Class.Bracket() |
Quotation settings
| string Energy.Query.Format.CurrentStamp |
| bool Energy.Query.Format.UseT |
Use TZ format for DATETIME.
|
staticget |
Singleton