Skip to content

Commit

Permalink
Merge pull request #236 from godenji/master
Browse files Browse the repository at this point in the history
add postgres escape example
  • Loading branch information
fwbrasil committed Mar 1, 2016
2 parents 0632d5f + 46ac2fb commit 72ed41a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -896,15 +896,16 @@ Quill has three built-in dialects:
The second type parameter defines the naming strategy to be used when translating identifiers (table and column names) to SQL.


| strategy | example |
|----------------------------------|------------------------------|
| `io.getquill.naming.Literal` | some_ident -> some_ident |
| `io.getquill.naming.Escape` | some_ident -> "some_ident" |
| `io.getquill.naming.UpperCase` | some_ident -> SOME_IDENT |
| `io.getquill.naming.LowerCase` | SOME_IDENT -> some_ident |
| `io.getquill.naming.SnakeCase` | someIdent -> some_ident |
| `io.getquill.naming.CamelCase` | some_ident -> someIdent |
| `io.getquill.naming.MysqlEscape` | some_ident -> \`some_ident\` |
| strategy | example |
|-------------------------------------|-------------------------------|
| `io.getquill.naming.Literal` | some_ident -> some_ident |
| `io.getquill.naming.Escape` | some_ident -> "some_ident" |
| `io.getquill.naming.UpperCase` | some_ident -> SOME_IDENT |
| `io.getquill.naming.LowerCase` | SOME_IDENT -> some_ident |
| `io.getquill.naming.SnakeCase` | someIdent -> some_ident |
| `io.getquill.naming.CamelCase` | some_ident -> someIdent |
| `io.getquill.naming.MysqlEscape` | some_ident -> \`some_ident\` |
| `io.getquill.naming.PostgresEscape` | $some_ident -> $some_ident |

Multiple transformations can be defined using mixin. For instance, the naming strategy

Expand Down

0 comments on commit 72ed41a

Please sign in to comment.