Lets say I have a table called flights and I want an aggregation on it like: And let´s say I don´t want to create a permanent View. Can I use an SQ ...
Lets say I have a table called flights and I want an aggregation on it like: And let´s say I don´t want to create a permanent View. Can I use an SQ ...
I had a peewee query (against a mysql 8.0 server) working a few months ago, and now it gives me the following error: The line of code producing the ...
I use Peewee as my ORM and while trying to use .first() to get the first element in a list of objects, I found this weird behaviour, where the in-memo ...
I am working on a mock-webshop homework and have some models for users, products, tags and Transactions. I've read through de documentation but was ...
I've got a function which interacts with a postgres DB. The function takes a parameter called pagination_data_required (boolean). If pagination_requi ...
. Answers to this question are eligible for a +50 reputation bounty. B4 ...
I was looking at ways to delay the database connection initiated from pewee. Since the code runs in lambda, and is guaranteed to run in parallel, and ...
I would like to have a simple subquery. One I would like to re-use in several places. Some of those would be joins, some would not. SQL code would be ...
I have emoji stored in varchar column in MYSQL8, with charset utf8mb4 encoding utf8mb4_unicode_ci I am getting the value with peewee and I'm getting ? ...
@coleifer, Thank you for giving us Peewee. I have a join from two Models that are connected by an FK constraint. I am querying the combined result wi ...
I have a table and it have a ForeignKeyField referencing another table. ON DELETE functionality is supported by initializing ForeignKeyField with an o ...
I am not able to iterate through my query as I would like using Peewee Those are the related Objects in Models.py Here's how I am trying to iter ...
I have a Screen that holds a ScrollView that holds a StackLayout of buttons. I can generate as many buttons as I have rows in my database table, but o ...
I trying to to do a getAll controller for my Rest API But it returns an error when I make a request. The error: And it is not a problem of the ...
I am trying to upsert a record, using the syntax shown here. The idea is to update the entry if it is the latest, where modifiedon is a varchar fie ...
I am confused at the behavior of a peewee insert_many on_conflict query. While I thought I had designated to preserve 'created_at' column and update t ...
I want to use exclude in peewee just like Django, the code like this the exception is Then i try this the exception ...
I want to be able to use a parameter to determine which columns value to return. But, since 'owner' is a model, the 'assetType' in 'owner.assetType' i ...
I am trying to create tables User and Task. In User I make user_id column unique, but peewee ignores it. There is no unique column when I look : ...
I have a table in the sqlite with column "telegram_id" I want to get all unique records of this column but this code does not work :-( ...