Allow to customize how identifiers must be wrapped
See original GitHub issueThis would unlock scenarios such as automatically converting camelCase to snake_case and vise verse. See https://medium.com/p/956357872fe4
It could look something like this (db.js
):
import knex from 'knex'
function wrapIdentifier(type, value) {
if (type === 'as') return ....;
if (type === 'select') return ....;
return ...;
}
export default knex({
client: 'pg',
connection: process.env.DATABASE_URL,
wrapIdentifier,
});
Please vote up if you’re planning to use this feature, or vote down if you think it shouldn’t be in the library.
Ref #929
Issue Analytics
- State:
- Created 6 years ago
- Reactions:14
- Comments:14 (7 by maintainers)
Top Results From Across the Web
<custom-ident> - CSS: Cascading Style Sheets | MDN
The <custom-ident> CSS data type denotes an arbitrary user-defined string used as an identifier. It is case-sensitive, and certain values ...
Read more >Use automated third-party verification - Campaign Manager ...
Automated third-party verification allows you to connect to third-party verification ... They'd add extra code to the placement tags, known as tag wrapping....
Read more >Rules Reference — SQLFluff 1.4.5 documentation
Add or remove references to all fields. Keywords should not be used as identifiers. Although unreserved keywords can be used as identifiers, and...
Read more >Java static code analysis: Restricted Identifiers should not be ...
Even if it is technically possible, Restricted Identifiers should not be used as identifiers. This is only possible for compatibility reasons, ...
Read more >Everything You Need To Know About 2022 Wrapped — Spotify
Spotify Wrapped is all about celebrating the endless ways that ... fun with the eagerly anticipated, personalized 2022 Wrapped experience.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
before christmas, maybe this month, maybe next
This will be released in knex 0.14