CSNW / sql-bricks

Transparent, Schemaless SQL Generation
http://csnw.github.io/sql-bricks
MIT License
204 stars 25 forks source link

Add a way to add new operators #70

Closed mauritslamers closed 9 years ago

mauritslamers commented 9 years ago

In PostgreSQL a few extra operators exists for fields like WHERE, specifically for jsonb fields.

Because of Binary not being public, I have to do a work around, where I instantiate a different function (like sql.lt) and then change the operator, as described in https://github.com/Suor/sql-bricks-postgres/issues/5. Would it be possible to make Binary public, to allow for adding new operators in extensions of sql-bricks, like sql-bricks-postgres?

prust commented 9 years ago

@mauritslamers: This should be fixed by #71, which has been published to npm as version 1.2.1. Please let me know if there's anything else I can do!