Escape identifiers automatically
column names with '[columnName]'.
Example: SELECT [Id], [Name], [Age] FROM [Register]
@sajithnechiparambil Do you mean escape characters according to the SQL provider? Such as PostGreSQL using " around names?
Yes
@sajithnechiparambil You're welcome to start a PR for this, I don't have any time to dedicate to this project these days and this is a big undertaking as well.
The columns could be easy, but this project was meant as a quick helper, for from a full SQL parser, which would be required to properly support this since the columns, order by clauses and where clauses, even from clauses would need to be parsed to properly escape them.
The basic example uses SqlStatements.Select(new[] { "u.ID", "u.Name", "u.EmailAddress" }) which would need to split on . and escape each part, same in WHERE clauses.
If I end up working on it some time, I'll try to get it done, but otherwise, I'll simply wait for a PR!