brianc / node-sql

SQL generation for node.js
MIT License
1.05k stars 191 forks source link

Exposes function creation to allow use of unsupported functions #371

Closed hstanford closed 7 years ago

hstanford commented 7 years ago

Syntax:

Foo.select(sql.function('CUSTOM_FUNCTION)(Foo.baz))
SELECT CUSTOM_FUNCTION("foo"."baz") FROM "foo";

This allows users to extend node-sql's capabilities to whatever unsupported or custom functions they wish to use.

brianc commented 7 years ago

Really nice! Merging & pushing a new minor version right now...thanks!!

brianc commented 7 years ago

Published sql@0.78.0

hstanford commented 7 years ago

Fantastic thanks! Happy to contribute