-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# SQL Dialects | ||
|
||
In FunSQL, properties and capabilities of a particular SQL dialect | ||
are encapsulated in a `SQLDialect` object. | ||
|
||
using FunSQL: SQLDialect | ||
|
||
The desired dialect can be specified by name. | ||
|
||
postgresql_dialect = SQLDialect(:postgresql) | ||
#-> SQLDialect(:postgresql) | ||
|
||
display(postgresql_dialect) | ||
#-> SQLDialect(:postgresql) | ||
|
||
If necessary, the dialect can be customized. | ||
|
||
postgresql_odbc_dialect = SQLDialect(:postgresql, | ||
variable_style = :positional, | ||
variable_prefix = '?') | ||
#-> SQLDialect(:postgresql, …) | ||
|
||
display(postgresql_odbc_dialect) | ||
#-> SQLDialect(:postgresql, variable_style = :POSITIONAL, variable_prefix = '?') | ||
|
||
The default dialect does not correspond to any particular database server. | ||
|
||
default_dialect = SQLDialect() | ||
#-> SQLDialect() | ||
|
||
display(default_dialect) | ||
#-> SQLDialect() | ||
|
||
A completely custom dialect can be specified. | ||
|
||
my_dialect = SQLDialect(:my, identifier_quotes = ('<', '>')) | ||
#-> SQLDialect(name = :my, …) | ||
|
||
display(my_dialect) | ||
#-> SQLDialect(name = :my, identifier_quotes = ('<', '>')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
```@contents | ||
Pages = [ | ||
"clauses.md", | ||
"dialects.md", | ||
"entities.md", | ||
"nodes.md", | ||
] | ||
|
443bb62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
443bb62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/51073
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: