go-gorm / postgres

GORM PostgreSQL driver
MIT License
234 stars 123 forks source link

allow ignoring escape and quoting #221

Closed shedyfreak closed 1 year ago

shedyfreak commented 1 year ago

What did this pull request do?

This PR allows the developer to take responsability of column names and table names correctness, by correctness I mean no special characters and no postgres reserved keywords.

Benefits :

User Case Description

In my case, the double quotes around table names and columns, make my query case sensitive to the casing of table names and columns.

In my case, performance is crucial, avoiding going over bytes in the query, could be significant on the long run

shedyfreak commented 1 year ago

Please mind, this is my first PR in an open source project :) if I missed anything let me know.

jinzhu commented 1 year ago

thank you for your first pr, lgtm ;)