Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
peewee-orm
Conversations
About
peewee-orm
1–30 of 336
Welcome to the peewee orm mailing list! Feel free to post your questions here.
Other resources:
Documentation
Source Code
Chat (#peewee on
irc.freenode.net
)
Mark all as read
Report abusive group
0 selected
Lujza Lanyi
Jul 5
Using APSW, FTS5Model and trying to search in it fails
hi, I was wondering if someone could help me with my Peewee ORM's models and functions I am
unread,
Using APSW, FTS5Model and trying to search in it fails
hi, I was wondering if someone could help me with my Peewee ORM's models and functions I am
Jul 5
Shreko
May 12
Coming from ruby sequel, looking into pewee
After years of working with ruby and in particular sequel ORM, I've been working on a pure python
unread,
Coming from ruby sequel, looking into pewee
After years of working with ruby and in particular sequel ORM, I've been working on a pure python
May 12
Pablo Martinez
Apr 7
Creating an index with type casting
Hey there! I've looked around online and haven't been able to find a solution, but apologies
unread,
Creating an index with type casting
Hey there! I've looked around online and haven't been able to find a solution, but apologies
Apr 7
jeff k
,
Charles Leifer
2
7/2/21
Creating custom field for concatenation of string
Honestly, I would probably do something like that with a TRIGGER, which you'll need to write
unread,
Creating custom field for concatenation of string
Honestly, I would probably do something like that with a TRIGGER, which you'll need to write
7/2/21
Ramesh Pradhan
,
Charles Leifer
2
6/15/21
How to implement WITH clause in Peewee ORM
Have you checked the docs for this? There is a whole section devoted to common table expressions:
unread,
How to implement WITH clause in Peewee ORM
Have you checked the docs for this? There is a whole section devoted to common table expressions:
6/15/21
David Robinson
2
6/11/21
Unable to create primary key
Quick update. After enabling logging I see the following queries: ('CREATE TABLE IF NOT EXISTS
unread,
Unable to create primary key
Quick update. After enabling logging I see the following queries: ('CREATE TABLE IF NOT EXISTS
6/11/21
Marzie Kargar
5/7/21
create query from sqlite syntax
Hi there. Can anyone help me for creating query based on this syntax? SELECT 1 + COUNT(*) AS rnk FROM
unread,
create query from sqlite syntax
Hi there. Can anyone help me for creating query based on this syntax? SELECT 1 + COUNT(*) AS rnk FROM
5/7/21
li yun
2
5/6/21
DETAIL: Key (name)=(gradenumber) already exists
In addition, does peewee not support Postgresql transactions? I smoothly migrated the code from mysql
unread,
DETAIL: Key (name)=(gradenumber) already exists
In addition, does peewee not support Postgresql transactions? I smoothly migrated the code from mysql
5/6/21
Ramesh Pradhan
,
Charles Leifer
2
5/5/21
Adding value to timestamp value to datetime object and applying condition to peewee where()
Yes, you can filter. I'd suggest consulting your database-specific documentation for date/time
unread,
Adding value to timestamp value to datetime object and applying condition to peewee where()
Yes, you can filter. I'd suggest consulting your database-specific documentation for date/time
5/5/21
Thijs Maenhout
,
Charles Leifer
2
5/3/21
How do you handle inheritance ?
In peewee every model class corresponds to a database table. Person and SpecialPerson are two
unread,
How do you handle inheritance ?
In peewee every model class corresponds to a database table. Person and SpecialPerson are two
5/3/21
Random Dude
,
Charles Leifer
2
4/26/21
Peewee Fetching Queries regardless of the conditions met
Had you spent the time writing this email reading the docs, you would have hopefully noticed that
unread,
Peewee Fetching Queries regardless of the conditions met
Had you spent the time writing this email reading the docs, you would have hopefully noticed that
4/26/21
Space
,
Charles Leifer
2
4/23/21
AttributeError: 'SqliteDatabase' object has no attribute 'Infraction'
It does seem like you are running into some naming conflict with your modules, rather than this being
unread,
AttributeError: 'SqliteDatabase' object has no attribute 'Infraction'
It does seem like you are running into some naming conflict with your modules, rather than this being
4/23/21
Linus
,
Charles Leifer
7
4/1/21
Unparsed backref accessor causing peewee.InterfaceError: Error binding parameter?
Right, makes sense! A confusing error to be sure, but maybe it's hard to give a better one?
unread,
Unparsed backref accessor causing peewee.InterfaceError: Error binding parameter?
Right, makes sense! A confusing error to be sure, but maybe it's hard to give a better one?
4/1/21
florian6973
,
Charles Leifer
5
3/31/21
Transfer data between models
Thanks a lot! I will try this :) Le mercredi 31 mars 2021 à 17:42:16 UTC+2, Charles a écrit : Python
unread,
Transfer data between models
Thanks a lot! I will try this :) Le mercredi 31 mars 2021 à 17:42:16 UTC+2, Charles a écrit : Python
3/31/21
Thijs Maenhout
,
Charles Leifer
4
3/31/21
MSSQL Driver
You can create a base model class and inherit from it: class MyBaseModel(Model): class Meta:
unread,
MSSQL Driver
You can create a base model class and inherit from it: class MyBaseModel(Model): class Meta:
3/31/21
Vincent Le Goff
,
Charles Leifer
4
3/28/21
Object identity
I think it's going to be harder than you think and there will be lots of sharp edges if you try
unread,
Object identity
I think it's going to be harder than you think and there will be lots of sharp edges if you try
3/28/21
dd tung
,
Charles Leifer
2
3/19/21
Session commit
Connection lifetimes are managed by the user and there is no session. Transactions, too, are managed
unread,
Session commit
Connection lifetimes are managed by the user and there is no session. Transactions, too, are managed
3/19/21
Random Dude
,
Charles Leifer
3
3/15/21
Peewee MySQL server has gone away error
Ah, would this solution work? http://docs.peewee-orm.com/en/latest/peewee/database.html#flask On
unread,
Peewee MySQL server has gone away error
Ah, would this solution work? http://docs.peewee-orm.com/en/latest/peewee/database.html#flask On
3/15/21
Space
,
Charles Leifer
3
2/19/21
MySQL Queries via Peewee are not bringing back data.
Specify the table name explicitly: class MyModel(Model): class Meta: table_name = 'MyModel'
unread,
MySQL Queries via Peewee are not bringing back data.
Specify the table name explicitly: class MyModel(Model): class Meta: table_name = 'MyModel'
2/19/21
Space
,
Charles Leifer
2
2/11/21
Using inreg with peewee (SQLite)
You have several problems. The first is sqlite does not implement regexp so you need to bring your
unread,
Using inreg with peewee (SQLite)
You have several problems. The first is sqlite does not implement regexp so you need to bring your
2/11/21
Honza Pobořil
,
Charles Leifer
2
2/9/21
Branstorming about Airtable
I can't comment on this personally, but you can look at the code used in `reflection` and `pwiz`
unread,
Branstorming about Airtable
I can't comment on this personally, but you can look at the code used in `reflection` and `pwiz`
2/9/21
Константин Чернышев
2/9/21
Single file
Hi, Can you, please, explain the purpose of single-file layout of this wonderful project? It looks a
unread,
Single file
Hi, Can you, please, explain the purpose of single-file layout of this wonderful project? It looks a
2/9/21
Bin Lyu
,
Charles Leifer
9
11/19/20
how to filter with BinaryJSONField?
yes, So useful, i appreciate it very much. 在2020年11月19日星期四 UTC+8 下午11:14:24<Charles> 写道: Ah, I
unread,
how to filter with BinaryJSONField?
yes, So useful, i appreciate it very much. 在2020年11月19日星期四 UTC+8 下午11:14:24<Charles> 写道: Ah, I
11/19/20
Bruno Godoy Martins Corrêa
,
Charles Leifer
3
10/6/20
bulk_create with on_conflict
Hum, I got it. I've replaced bulk_create by insert_many as you suggested. Thank you for the
unread,
bulk_create with on_conflict
Hum, I got it. I've replaced bulk_create by insert_many as you suggested. Thank you for the
10/6/20
Rayo Rodriguez
,
Charles Leifer
8
9/30/20
on_delete
The peewee `on_delete='cascade'` only applies during schema creation with Peewee. In other
unread,
on_delete
The peewee `on_delete='cascade'` only applies during schema creation with Peewee. In other
9/30/20
jgt...@gmail.com
,
Charles Leifer
2
9/29/20
PostgreSQL json Columns
Yes, you can specify the converter for a column that is a function call: obj = (fn .jsonb_object_agg(
unread,
PostgreSQL json Columns
Yes, you can specify the converter for a column that is a function call: obj = (fn .jsonb_object_agg(
9/29/20
Mario Gee
,
Charles Leifer
7
8/31/20
bulk_create raises peewee.OperationalError: near ",": syntax error
That's the problem, as I stated in my original email to you. Bulk insert wasn't added until
unread,
bulk_create raises peewee.OperationalError: near ",": syntax error
That's the problem, as I stated in my original email to you. Bulk insert wasn't added until
8/31/20
Stefano Menci
,
Charles Leifer
2
8/6/20
Upgrading circular foreign keys from Peewee 2.7 to 3.13
The docs have a section devoted to circular foreign-keys: http://docs.peewee-orm.com/en/latest/peewee
unread,
Upgrading circular foreign keys from Peewee 2.7 to 3.13
The docs have a section devoted to circular foreign-keys: http://docs.peewee-orm.com/en/latest/peewee
8/6/20
Leonid Dubov
,
Charles Leifer
6
4/27/20
Problem with join
Thanks a lot, perfectly works. воскресенье, 26 апреля 2020 г., 23:57:21 UTC+3 пользователь Charles
unread,
Problem with join
Thanks a lot, perfectly works. воскресенье, 26 апреля 2020 г., 23:57:21 UTC+3 пользователь Charles
4/27/20
David Bollinger
,
Charles Leifer
6
4/24/20
bulk_create always return foreign key constraint fails
Awesome !! Le jeudi 23 avril 2020 20:39:29 UTC-4, Charles a écrit : https://github.com/coleifer/
unread,
bulk_create always return foreign key constraint fails
Awesome !! Le jeudi 23 avril 2020 20:39:29 UTC-4, Charles a écrit : https://github.com/coleifer/
4/24/20