question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to customize how identifiers must be wrapped

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Reactions:14
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
elhigucommented, Oct 11, 2017

before christmas, maybe this month, maybe next

3reactions
elhigucommented, Oct 10, 2017

This will be released in knex 0.14

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found