Comments (1)
@geraldodev I realize this is rather old and you've probably figured out how to do this already--but here's one way to solve it with HoneySQL as is:
(defmethod fn-handler "ts_lexize" [_ dict token]
(str "(ts_lexize('" dict "', '" token "'))[1]"))
...and then, for example:
=> (hsql/format (hsql/build {:select (hsql/call :lower (hsql/call :ts_lexize "dict" "token"))}))
["SELECT lower((ts_lexize('dict', 'token'))[1])"]
=>
from honeysql.
Related Issues (20)
- Support `MERGE` statements from the ANSI Standard HOT 2
- register-clause! does not respect :values as argument for before HOT 6
- Allow :insert-into to inspect and lift :columns or columns portion of :values HOT 1
- Add :at-time-zone function
- Support for BigQuery IGNORE NULLS and RESPECT NULLS HOT 1
- Helpers do not merge correctly with symbol-based DSL
- namespace honey.sql does not exist. i found honeysql.core in the core.cljc included in the jar. HOT 6
- Cast seems to be breaking with a type named "*-type" in v2.4.962 HOT 5
- Formatting unhashable objects HOT 1
- Add NRQL dialect support HOT 2
- CREATE OR REPLACE syntax
- BigQuery ARRAY subquery HOT 3
- Ignore additional metadata?
- Default quoting needs to be smarter HOT 8
- `:union` and similar ops should format their arguments wrapped in parentheses HOT 5
- Temporal: alias in wrong place
- Temporal: ALL in wrong place for XTDB HOT 3
- Temporal: support date/time literals? HOT 1
- Dialect: XTDB HOT 9
- MS SQL table hints in FROM clause (e.g. NOLOCK) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honeysql.