Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
klahnakoski committed Jun 27, 2024
1 parent 076bddb commit 584eb57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ The `SELECT` clause is an array of objects containing `name` and `value` propert

There are a few parsing modes you may be interested in:

<u>**Double-quotes for literal strings**</u>
#### Double-quotes for literal strings

MySQL uses both double quotes and single quotes to declare literal strings. This is not ansi behaviour, but it is more forgiving for programmers coming from other languages. A specific parse function is provided:

result = parse_mysql(sql)

<u>**SQLServer Identifiers (`[]`)**</u>
#### SQLServer Identifiers (`[]`)

SQLServer uses square brackets to delimit identifiers. For example

Expand All @@ -64,7 +64,7 @@ which conflicts with BigQuery array constructor (eg `[1, 2, 3, 4]`). You may use

from mo_sql_parsing import parse_sqlserver as parse

<u>**NULL is None**</u>
#### NULL is None

The default output for this parser is to emit a null function `{"null":{}}` wherever `NULL` is encountered in the SQL. If you would like something different, you can replace nulls with `None` (or anything else for that matter):

Expand All @@ -73,7 +73,7 @@ The default output for this parser is to emit a null function `{"null":{}}` wher
this has been implemented with a post-parse rewriting of the parse tree.


<u>**Normalized function call form**</u>
#### Normalized function call form

The default behaviour of the parser is to output function calls in `simple_op` format: The operator being a key in the object; `{op: params}`. This form can be difficult to work with because the object must be scanned for known operators, or possible optional arguments, or at least distinguished from a query object.

Expand Down

0 comments on commit 584eb57

Please sign in to comment.