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.

Replace lodash.template with ES6 template strings

See original GitHub issue
  • AbstractQueryGenerator
    • insertQuery
    • bulkInsertQuery
    • updateQuery
    • incrementQuery
  • MySqlQueryGenerator
    • createTableQuery
  • PostgresQueryGenerator
    • createTableQuery
    • changeColumnQuery
    • renameColumnQuery
  • MsSqlQueryGenerator (missing ES6 refactor)
    • createTableQuery
    • renameTableQuery
    • dropTableQuery
    • addColumnQuery
    • removeColumnQuery
    • changeColumnQuery
    • renameColumnQuery
    • bulkInsertQuery
    • deleteQuery
    • showIndexesQuery
    • removeIndexQuery
    • dropForeignKeyQuery
    • getDefaultConstraintQuery
    • dropConstraintQuery

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
joshrickertcommented, Jun 30, 2016

I have been looking at it more this morning. Another difference in behavior is that ES2015 template literals cast undefined to 'undefined' whereas _.template cast it to ''. Something to watch out for.

1reaction
joshrickertcommented, Jun 29, 2016

This looked easy enough so I took a stab at a few of them. Anyone else is free to pick up the torch, or I may keep messing with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Template Literals with Lodash _. - Stack Overflow
Using Template Literals with Lodash _.template() · Function runs logic and returns open or close via opencloseResponse.openclose object (Assumed ...
Read more >
Embedding es6 template literals (like lodash template) #383
I have this can someone point me on a way to transpile this to javascript any plugins? I am using webpack with gulp....
Read more >
Lodash _.template() Method - GeeksforGeeks
The _.template() method is used to create a template function that is compiled and can interpolate properties of data in interpolate delimiters, ...
Read more >
ES6 Template Literals, the Handlebars killer? - Keith Cirkel
We were looking at how viable it would be to replace a templating language, like Handlebars with ES6 Template Literals, in some manner....
Read more >
Lodash Documentation
Creates a new array concatenating array with any additional arrays and/or values. Since. 4.0.0. Arguments. array (Array): The array to concatenate ...
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