Skip to content
#

query-builder

Here are 663 public repositories matching this topic...

prisma
binary64
binary64 commented Aug 2, 2021

Bug description

On windows, I run prisma format and note the unusual file ending. The lines are all LF, but the very last line is CRLF.

This causes issue on my Linux CI where it formats it ending in LF's only, causing a diff to occur and the build to fail.

How to reproduce

  1. On windows do prisma format
  2. Open in HxD or similar
  3. See attached:

![image](https://user-images.g

bug/1-unconfirmed kind/bug topic: windows tech/typescript
duncanmcclean
duncanmcclean commented Mar 30, 2022

Brief description

We're running into an issue with this package - when our client goes to add/delete something on a BelongsToMany relation on the Product model, the list reloads but there's no change. I also see the same list in our site's frontend but the database is updated correctly.

Implementation

We're using this package on our Product model, relevant code below:

enhancement help wanted good first issue wontfix
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

enhancement good first issue medium priority
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 })
good first issue

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