Skip to content
#

query-builder

Here are 620 public repositories matching this topic...

react-awesome-query-builder
willmsn98
willmsn98 commented Aug 23, 2021

Describe the bug
I created a component in QueryBuilder.tsx by taking the example from the README with some little cleanup. It all worked except the CSS import causes an issue. Is there a solution that is supported in tsx or a hosted css file that can be used?

./node_modules/react-awesome-query-builder/lib/css/styles.css:1
.qb-drag-handler, .qb-draggable, .query-builder {
^

Synt
dantownsend
dantownsend commented Nov 12, 2021

It would be nice if there was a new clause which can be added to queries called callback.

For example:

def callback_handler(success, value):
    if success:
        print(f'The query was successful and returned {value}')
    else:
        print("The query failed")

Band.select().callback(callback_handler).run_sync()

The callback could be a function or coroutine, wh

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