UNPKG

@thinql/to-knex

Version:

Build SQL queries from ThinQL ASTs with Knex.js

16 lines (10 loc) 331 B
import Builder from './Builder.js' import processStatement from './processors/statement.js' const toKnex = (statement, options) => function () { const knexBuilder = this const builder = new Builder(knexBuilder) processStatement(statement, builder, options) return knexBuilder } export { toKnex } export default toKnex