The Wayback Machine - https://web.archive.org/web/20210830135057/https://github.com/topics/query-builder
Skip to content
#

query-builder

Here are 595 public repositories matching this topic...

dantownsend
dantownsend commented Aug 25, 2021

Piccolo now has a command for generating a schema from an existing database.

piccolo schema generate

The current implementation doesn't cover every possible edge case and database feature, so there's room for improvement. For example:

Column defaults

Getting the defaults for a column, and reflecting them in the Piccolo column. For example, if the column has a default o

mammoth
martijndeh
martijndeh commented Sep 27, 2020

The .returning() function currently only supports strings (which should be the target table's column names). In reality they can accept any expression and (returning) query.

This should be supported:

insert into bar (val) values (123) returning (select count(*) from bar), id, val || 'test'

which would equate to something like:

db.insertInto(bar).values({ val: 123 })

Improve this page

Add a description, image, and links to the query-builder topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the query-builder topic, visit your repo's landing page and select "manage topics."

Learn more