url stringlengths 53 56 | repository_url stringclasses 1
value | labels_url stringlengths 67 70 | comments_url stringlengths 62 65 | events_url stringlengths 60 63 | html_url stringlengths 41 46 | id int64 450k 1.69B | node_id stringlengths 18 32 | number int64 1 2.72k | title stringlengths 1 209 | user dict | labels list | state stringclasses 1
value | locked bool 2
classes | assignee null | assignees sequence | milestone null | comments sequence | created_at timestamp[s] | updated_at timestamp[s] | closed_at timestamp[s] | author_association stringclasses 3
values | active_lock_reason stringclasses 2
values | body stringlengths 0 104k ⌀ | reactions dict | timeline_url stringlengths 62 65 | performed_via_github_app null | state_reason stringclasses 2
values | draft bool 2
classes | pull_request dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/coleifer/peewee/issues/2719 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2719/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2719/comments | https://api.github.com/repos/coleifer/peewee/issues/2719/events | https://github.com/coleifer/peewee/issues/2719 | 1,692,808,474 | I_kwDOAA7yGM5k5jUa | 2,719 | PeeWee ForeignKeyField error. IntegrityError: (1215, 'Cannot add foreign key constraint') | {
"login": "Ezyhoo",
"id": 43151697,
"node_id": "MDQ6VXNlcjQzMTUxNjk3",
"avatar_url": "https://avatars.githubusercontent.com/u/43151697?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Ezyhoo",
"html_url": "https://github.com/Ezyhoo",
"followers_url": "https://api.github.com/users/Ezyhoo/fo... | [] | closed | false | null | [] | null | [
"It is probably not recommended to put the UNIQUE in the field definitions since these are already primary keys:\r\n\r\n```python\r\nclass UnsignedBigAutoField(pw.BigAutoField):\r\n field_type = 'BIGINT UNSIGNED AUTO_INCREMENT'\r\n\r\nclass UnsignedAutoField(pw.AutoField):\r\n field_type = 'INT UNSIGNED AUTO_... | 2023-05-02T17:26:01 | 2023-05-02T19:42:51 | 2023-05-02T19:42:05 | NONE | null | I have code like below:
```
import datetime
import peewee as pw
import os
my_db = pw.MySQLDatabase(database=os.getenv("DB_NAME"), host=os.getenv("DB_HOST"), port=os.getenv("DB_PORT"),
user=os.getenv("DB_USER"), passwd=os.getenv("DB_PASSWORD")
class MySQLModel(pw.Model):
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2719/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2719/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2718 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2718/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2718/comments | https://api.github.com/repos/coleifer/peewee/issues/2718/events | https://github.com/coleifer/peewee/issues/2718 | 1,692,807,469 | I_kwDOAA7yGM5k5jEt | 2,718 | Fastapi db connection doc | {
"login": "AndyJiangIsTaken",
"id": 87741207,
"node_id": "MDQ6VXNlcjg3NzQxMjA3",
"avatar_url": "https://avatars.githubusercontent.com/u/87741207?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AndyJiangIsTaken",
"html_url": "https://github.com/AndyJiangIsTaken",
"followers_url": "https://... | [] | closed | false | null | [] | null | [
"The FastAPI docs have a thorough section, I probably need to just link it since your comment is correct and my docs may be misleading.\r\n\r\nhttps://fastapi.tiangolo.com/advanced/sql-databases-peewee/#make-peewee-async-compatible-peeweeconnectionstate",
"Updated doc here: http://docs.peewee-orm.com/en/latest/pe... | 2023-05-02T17:25:10 | 2023-05-02T17:48:16 | 2023-05-02T17:34:10 | NONE | null | Hi,
Here's the peewee doc I'm referring to:
https://docs.peewee-orm.com/en/latest/peewee/database.html#fastapi
According to the FastAPI doc,
the startup & shutdown events are for when the application, not request here:
https://fastapi.tiangolo.com/advanced/events/#startup-event
Let me know I'm missing someth... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2718/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2718/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2717 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2717/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2717/comments | https://api.github.com/repos/coleifer/peewee/issues/2717/events | https://github.com/coleifer/peewee/issues/2717 | 1,690,728,970 | I_kwDOAA7yGM5kxnoK | 2,717 | Calling save fails when PK is provided but record does not exist yet. | {
"login": "keiranjprice101",
"id": 44777678,
"node_id": "MDQ6VXNlcjQ0Nzc3Njc4",
"avatar_url": "https://avatars.githubusercontent.com/u/44777678?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/keiranjprice101",
"html_url": "https://github.com/keiranjprice101",
"followers_url": "https://api... | [] | closed | false | null | [] | null | [
"The docs do make mention of this, there is in fact a section on this: http://docs.peewee-orm.com/en/latest/peewee/models.html#manually-specifying-primary-keys\r\n\r\nAt the most basic, though, this is all you need to add if you are doing this one-off:\r\n\r\n```\r\ncustomer.id = 4\r\ncustomer.email = \"example@exa... | 2023-05-01T12:02:11 | 2023-05-01T13:07:19 | 2023-05-01T13:07:18 | NONE | null | In this example:
```python
class CustomerPeewee(BaseModel):
email = CharField()
class Meta:
db_table = "customer"
customer = CustomerPeewee()
customer.id = 4
customer.email = "example@example.com"
customer.save()
```
No record is created and 0 is returned. If this is intended it feels... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2717/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2717/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2716 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2716/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2716/comments | https://api.github.com/repos/coleifer/peewee/issues/2716/events | https://github.com/coleifer/peewee/issues/2716 | 1,687,136,706 | I_kwDOAA7yGM5kj6nC | 2,716 | Automatic Migrations Capability | {
"login": "anuran-roy",
"id": 76481787,
"node_id": "MDQ6VXNlcjc2NDgxNzg3",
"avatar_url": "https://avatars.githubusercontent.com/u/76481787?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anuran-roy",
"html_url": "https://github.com/anuran-roy",
"followers_url": "https://api.github.com/use... | [] | closed | false | null | [] | null | [
">since I couldn't find any automated tool for migrations\r\n\r\nYou may not have looked very hard, there are several I'm aware of:\r\n\r\n* https://github.com/klen/peewee_migrate\r\n* https://github.com/aachurin/peewee_migrations\r\n* https://github.com/timster/peewee-moves\r\n\r\nI can't vouch for the fitness or ... | 2023-04-27T15:58:44 | 2023-04-27T16:35:29 | 2023-04-27T16:13:05 | NONE | null | Hey there!
Anuran this side! I'm a long time fan of peewee, been using it for a quite a few projects - thanks for this awesome tool, really saves a lot of time for someone who uses Django as well! 🚀
Actually I was on the process of creating a custom script for automated migrations, since I couldn't find any aut... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2716/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2716/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2715 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2715/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2715/comments | https://api.github.com/repos/coleifer/peewee/issues/2715/events | https://github.com/coleifer/peewee/issues/2715 | 1,685,261,994 | I_kwDOAA7yGM5kcw6q | 2,715 | Postgres error : Driver not installed, using peewee,docker and fastapi | {
"login": "Master-Y0da",
"id": 10148942,
"node_id": "MDQ6VXNlcjEwMTQ4OTQy",
"avatar_url": "https://avatars.githubusercontent.com/u/10148942?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Master-Y0da",
"html_url": "https://github.com/Master-Y0da",
"followers_url": "https://api.github.com/... | [] | closed | false | null | [] | null | [
"Apparently you didn't install `psycopg2`, or for some reason Peewee is unable to import it. In your `main.py` try adding a line `import psycopg2 ; print(psycopg2)` - it should be easy to tell.",
"I intalled pyscogp2 not psycopg2 , really bad one hahaha thank you!!",
"You might've installed some malware or a mi... | 2023-04-26T15:33:40 | 2023-04-26T16:44:22 | 2023-04-26T15:51:31 | NONE | null | I have installed peewee 3.16.2 ,pyscopg2 66.0.2 and fastapi 0.95.1.
I follow the steps in peewee docs about integrate fastapi apps, but showing up this error **peewee.ImproperlyConfigured: Postgres driver not installed!**
This is my config file in fastapi:
def init_db():
db = Postgres... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2715/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2715/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2714 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2714/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2714/comments | https://api.github.com/repos/coleifer/peewee/issues/2714/events | https://github.com/coleifer/peewee/issues/2714 | 1,681,779,813 | I_kwDOAA7yGM5kPexl | 2,714 | `peewee` for WebAssembly (JupyterLite + XEUS-Python + emscripten-forge) | {
"login": "michaelweinold",
"id": 23102087,
"node_id": "MDQ6VXNlcjIzMTAyMDg3",
"avatar_url": "https://avatars.githubusercontent.com/u/23102087?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/michaelweinold",
"html_url": "https://github.com/michaelweinold",
"followers_url": "https://api.gi... | [] | closed | false | null | [] | null | [
"1. peewee does not necessarily require c extensions\r\n2. psycopg2cffi is only needed if you want to use postgres and is primarily aimed at pypy users who don't have c extensions, so I'm completely at a loss why this particular bit seemed so important to you.\r\n3. the error is not coming from peewee but seems rel... | 2023-04-24T18:06:14 | 2023-04-24T18:14:13 | 2023-04-24T18:14:12 | NONE | null | ## Overview
To bring the [Brightway life-cycle assessment python package](https://documentation.brightway.dev/) to the browser, [we](https://github.com/brightway-lca) recently added `peewee` to the WebAssembly [`emscripten-forge`](https://github.com/emscripten-forge/recipes) package repository. This was necessary si... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2714/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2714/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2713 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2713/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2713/comments | https://api.github.com/repos/coleifer/peewee/issues/2713/events | https://github.com/coleifer/peewee/issues/2713 | 1,680,911,617 | I_kwDOAA7yGM5kMK0B | 2,713 | How to "NOT" create index on a "unique" field | {
"login": "eddysnjack",
"id": 38407276,
"node_id": "MDQ6VXNlcjM4NDA3Mjc2",
"avatar_url": "https://avatars.githubusercontent.com/u/38407276?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eddysnjack",
"html_url": "https://github.com/eddysnjack",
"followers_url": "https://api.github.com/use... | [] | closed | false | null | [] | null | [
"What database engine are you using?",
"> What database engine are you using?\r\n\r\nhow can i check that?",
"You presumably declared it yourself... SqliteDatabase, MySQLDatabase, PostgresqlDatabase...",
"At any rate it seems to be working fine for me:\r\n\r\n```python\r\ndb = SqliteDatabase(':memory:')\r\n\r... | 2023-04-24T10:09:35 | 2023-04-24T13:47:48 | 2023-04-24T12:42:17 | NONE | null | i have o model looking like this.
```
class User(BaseModel):
id = BigIntegerField(unique=True)
first_name = TextField()
last_name = CharField(null=True)
username = CharField(unique=True, null=True, index=False)
phone = CharField(null=True)
deleted = BooleanField(null=True)
is_bot ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2713/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2713/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2712 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2712/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2712/comments | https://api.github.com/repos/coleifer/peewee/issues/2712/events | https://github.com/coleifer/peewee/issues/2712 | 1,680,522,237 | I_kwDOAA7yGM5kKrv9 | 2,712 | insert_many method missing field values. | {
"login": "frelion",
"id": 71957494,
"node_id": "MDQ6VXNlcjcxOTU3NDk0",
"avatar_url": "https://avatars.githubusercontent.com/u/71957494?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/frelion",
"html_url": "https://github.com/frelion",
"followers_url": "https://api.github.com/users/frelio... | [] | closed | false | null | [] | null | [
"http://docs.peewee-orm.com/en/latest/peewee/api.html?highlight=insert_many#Model.insert_many",
"Looks to be working fine:\r\n\r\n```python\r\nclass Reg(db.Model):\r\n val = TextField(null=True)\r\n\r\nReg.create_table()\r\nReg.insert_many([{}, {'val': 'asdf'}], fields=[Reg.val]).execute()\r\nprint(list(Reg.se... | 2023-04-24T06:07:36 | 2023-04-24T12:37:00 | 2023-04-24T07:07:49 | NONE | null | peewee==3.16.0
Python 3.10.6
For the following code:
```
class TestModel(Model):
class Meta:
database = mysql_db
test_field = CharField(null=True)
TestModel.create_table()
insert_data = [
{}, {
'test_field': "hello"
}
]
TestModel.insert_many(insert_data).execute()
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2712/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2712/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2711 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2711/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2711/comments | https://api.github.com/repos/coleifer/peewee/issues/2711/events | https://github.com/coleifer/peewee/pull/2711 | 1,676,462,240 | PR_kwDOAA7yGM5OwRRM | 2,711 | Feature/filter none on where | {
"login": "ponponon",
"id": 38725104,
"node_id": "MDQ6VXNlcjM4NzI1MTA0",
"avatar_url": "https://avatars.githubusercontent.com/u/38725104?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ponponon",
"html_url": "https://github.com/ponponon",
"followers_url": "https://api.github.com/users/pon... | [] | closed | false | null | [] | null | [
"I don't think silently ignoring arguments is a good plan, the issue is the caller passing `None` in the first place."
] | 2023-04-20T10:35:57 | 2023-04-20T12:33:25 | 2023-04-20T12:33:25 | NONE | null | ```python
q = SeriesTable.select().where(
None, None
)
```
If where is called for the first time and where has more than one None parameter, an error will occur:
```shell
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2711/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2711/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/2711",
"html_url": "https://github.com/coleifer/peewee/pull/2711",
"diff_url": "https://github.com/coleifer/peewee/pull/2711.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/2711.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/2710 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2710/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2710/comments | https://api.github.com/repos/coleifer/peewee/issues/2710/events | https://github.com/coleifer/peewee/pull/2710 | 1,676,397,519 | PR_kwDOAA7yGM5OwDKO | 2,710 | feature: When `.in_(None)` is executed, the null condition should be … | {
"login": "ponponon",
"id": 38725104,
"node_id": "MDQ6VXNlcjM4NzI1MTA0",
"avatar_url": "https://avatars.githubusercontent.com/u/38725104?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ponponon",
"html_url": "https://github.com/ponponon",
"followers_url": "https://api.github.com/users/pon... | [] | closed | false | null | [] | null | [
"No, I think `.in_(None)` is incorrect since `None` is not an iterable - going to pass on this."
] | 2023-04-20T09:55:00 | 2023-04-20T12:32:35 | 2023-04-20T12:32:35 | NONE | null | When `.in_(None)` is executed, the null condition should be ignored as `0 = 1` | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2710/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2710/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/2710",
"html_url": "https://github.com/coleifer/peewee/pull/2710",
"diff_url": "https://github.com/coleifer/peewee/pull/2710.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/2710.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/2709 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2709/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2709/comments | https://api.github.com/repos/coleifer/peewee/issues/2709/events | https://github.com/coleifer/peewee/issues/2709 | 1,674,699,657 | I_kwDOAA7yGM5j0eOJ | 2,709 | db.atomic decorator is not a thread-safe | {
"login": "delatars",
"id": 22956479,
"node_id": "MDQ6VXNlcjIyOTU2NDc5",
"avatar_url": "https://avatars.githubusercontent.com/u/22956479?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/delatars",
"html_url": "https://github.com/delatars",
"followers_url": "https://api.github.com/users/del... | [] | closed | false | null | [] | null | [
"Yes you're quite right, thanks for finding this. The issue is down to the fact that a single instance is being created and reused/overwritten. I will figure out a fix. For now the workaround will need to be to use the context manager.",
"This should now be fixed.",
"3.16.2 release contains this fix, thanks for... | 2023-04-19T11:19:19 | 2023-04-21T20:18:44 | 2023-04-19T13:11:14 | NONE | null | Hello!
peewee: 3.15.4
python: 3.10.8
Using db.atomic as decorator is not a thread-safe.
The following example is showing that behaviour.
```python
import logging
import random
import uuid
from concurrent.futures import ThreadPoolExecutor
from time import sleep
import peewee
from playhouse.pool impor... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2709/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2709/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2708 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2708/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2708/comments | https://api.github.com/repos/coleifer/peewee/issues/2708/events | https://github.com/coleifer/peewee/pull/2708 | 1,667,423,731 | PR_kwDOAA7yGM5OSM0H | 2,708 | update pwiz add fields attr | {
"login": "GuoGuo54",
"id": 38908865,
"node_id": "MDQ6VXNlcjM4OTA4ODY1",
"avatar_url": "https://avatars.githubusercontent.com/u/38908865?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GuoGuo54",
"html_url": "https://github.com/GuoGuo54",
"followers_url": "https://api.github.com/users/Guo... | [] | closed | false | null | [] | null | [
"Going to pass. `column_comment` isn't supported by postgres, btw."
] | 2023-04-14T02:47:10 | 2023-04-14T14:09:35 | 2023-04-14T14:09:34 | NONE | null | Issues #2707 : https://github.com/coleifer/peewee/issues | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2708/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2708/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/2708",
"html_url": "https://github.com/coleifer/peewee/pull/2708",
"diff_url": "https://github.com/coleifer/peewee/pull/2708.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/2708.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/2707 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2707/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2707/comments | https://api.github.com/repos/coleifer/peewee/issues/2707/events | https://github.com/coleifer/peewee/issues/2707 | 1,667,373,094 | I_kwDOAA7yGM5jYhgm | 2,707 | pwiz generates detailed field attributes | {
"login": "GuoGuo54",
"id": 38908865,
"node_id": "MDQ6VXNlcjM4OTA4ODY1",
"avatar_url": "https://avatars.githubusercontent.com/u/38908865?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GuoGuo54",
"html_url": "https://github.com/GuoGuo54",
"followers_url": "https://api.github.com/users/Guo... | [] | closed | false | null | [] | null | [
"Going to pass. Column comments is mysql-specific, and the varchar max length is negligible in my view, since adding it to the introspected field doesn't change any behavior (and it usually isn't enforced anywhere)."
] | 2023-04-14T01:32:46 | 2023-04-14T14:11:37 | 2023-04-14T14:11:37 | NONE | null | The peewee model generated by pwiz based on the database table is too simple, like:
class NameModel(Model):
name = CharField(null=True)
status = IntegerField(default=11, index=True)
class Meta:
table_name = 'name_model'
But generally we need more detailed field attributes,like (max_len... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2707/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2707/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2706 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2706/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2706/comments | https://api.github.com/repos/coleifer/peewee/issues/2706/events | https://github.com/coleifer/peewee/issues/2706 | 1,666,749,628 | I_kwDOAA7yGM5jWJS8 | 2,706 | How to avoid fetch-then-create pattern, when fk id already known? | {
"login": "anentropic",
"id": 147840,
"node_id": "MDQ6VXNlcjE0Nzg0MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/147840?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anentropic",
"html_url": "https://github.com/anentropic",
"followers_url": "https://api.github.com/users/a... | [] | closed | false | null | [] | null | [
"You can just do this:\r\n\r\n```\r\ngame = GameSession.create(user=user_id, subject=subject)\r\n```"
] | 2023-04-13T16:33:13 | 2023-04-13T16:37:19 | 2023-04-13T16:37:18 | NONE | null | New to Peewee... I'm sure this is easy but could not find an example in the docs
In a case like this:
```python
def start_game(user_id, subject: str) -> GameSession:
user = User.get(User.id == user_id)
game = GameSession.create(user=user, subject=subject)
return game
```
How do I avoid first f... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2706/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2706/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2705 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2705/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2705/comments | https://api.github.com/repos/coleifer/peewee/issues/2705/events | https://github.com/coleifer/peewee/issues/2705 | 1,663,812,893 | I_kwDOAA7yGM5jK8Ud | 2,705 | Bitwise shift operators as functions? | {
"login": "andycasey",
"id": 504436,
"node_id": "MDQ6VXNlcjUwNDQzNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/504436?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/andycasey",
"html_url": "https://github.com/andycasey",
"followers_url": "https://api.github.com/users/andy... | [] | closed | false | null | [] | null | [
"You can look at how the `bin_and()`, `bin_or()`, and `__xor__()` methods on field/columns are implemented. There are no bitwish shifts at present, but it should be easy to add them for your case. You can do this as a standalone function, e.g.\r\n\r\n```python\r\ndef lshift(lhs, rhs):\r\n return Expression(lhs, ... | 2023-04-12T05:22:22 | 2023-04-12T13:04:38 | 2023-04-12T13:04:37 | NONE | null | Hi,
I know the Python operators `<<` and `>>` are overloaded in `peewee`. I'm wondering if there is some function (in `peewee.fn`) to use the [bitwise shift left/right operators in Postgresql](https://www.postgresql.org/docs/current/functions-bitstring.html). I've searched a lot but can't find anything myself.
My... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2705/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2705/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2704 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2704/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2704/comments | https://api.github.com/repos/coleifer/peewee/issues/2704/events | https://github.com/coleifer/peewee/issues/2704 | 1,661,731,988 | I_kwDOAA7yGM5jDASU | 2,704 | get_or_none() fails with postgres | {
"login": "TxMat",
"id": 46858765,
"node_id": "MDQ6VXNlcjQ2ODU4NzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/46858765?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TxMat",
"html_url": "https://github.com/TxMat",
"followers_url": "https://api.github.com/users/TxMat/follow... | [] | closed | false | null | [] | null | [
"`get_or_none()` takes an expression. See docs: https://docs.peewee-orm.com/en/latest/peewee/api.html#Model.get_or_none\r\n\r\n```python\r\nShippingInfo.get_or_none(\r\n ShippingInfo.id == order.shipping_info)\r\n```\r\n\r\nA cursory look would have solved this for you.",
"It indeed makes sense but for some rea... | 2023-04-11T04:01:29 | 2023-04-11T17:48:12 | 2023-04-11T11:55:38 | NONE | null | ```py
# Get shipping info from order.shipping_info_id
shipping_info = {}
if order.shipping_info:
shipping_info = model_to_dict(ShippingInfo.get_or_none(order.shipping_info))
# no need to send id to client
del shipping_info["id"]
```
Get_or_none with postgres raises `psycopg2.errors.Datatype... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2704/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2704/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2703 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2703/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2703/comments | https://api.github.com/repos/coleifer/peewee/issues/2703/events | https://github.com/coleifer/peewee/issues/2703 | 1,661,723,222 | I_kwDOAA7yGM5jC-JW | 2,703 | Failed constraints raises IntegrityError but exceeding max_length raises DataEror with postgres | {
"login": "TxMat",
"id": 46858765,
"node_id": "MDQ6VXNlcjQ2ODU4NzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/46858765?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TxMat",
"html_url": "https://github.com/TxMat",
"followers_url": "https://api.github.com/users/TxMat/follow... | [] | closed | false | null | [] | null | [
"These errors are raised by postgres and passed on through psycopg2, which determines what error type to raise. Typically one would perform validation beforehand to eliminate something as simple as an over-length violation."
] | 2023-04-11T03:48:34 | 2023-04-11T11:57:35 | 2023-04-11T11:57:35 | NONE | null | ```py
# shipping info model
class ShippingInfo(BaseModel):
id = peewee.AutoField(primary_key=True, unique=True)
country = peewee.CharField(null=False)
address = peewee.CharField(null=False)
postal_code = peewee.CharField(null=False, max_length=7, constraints=[peewee.Check('length(postal_code) = 7'... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2703/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2703/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2702 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2702/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2702/comments | https://api.github.com/repos/coleifer/peewee/issues/2702/events | https://github.com/coleifer/peewee/issues/2702 | 1,661,715,757 | I_kwDOAA7yGM5jC8Ut | 2,702 | LIKE statement with postgres returns IndexError | {
"login": "TxMat",
"id": 46858765,
"node_id": "MDQ6VXNlcjQ2ODU4NzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/46858765?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TxMat",
"html_url": "https://github.com/TxMat",
"followers_url": "https://api.github.com/users/TxMat/follow... | [] | closed | false | null | [] | null | [
"The \"%\" need to be escaped:\r\n\r\n```\r\nemail = peewee.CharField(null=True, constraints=[peewee.Check(\"email LIKE '%%@%%'\")])\r\n```"
] | 2023-04-11T03:37:04 | 2023-04-11T12:38:33 | 2023-04-11T12:38:14 | NONE | null | The like statement inside the email field is causing peewee to return an index error when constructing the database
```py
class Order(BaseModel):
id = peewee.AutoField(primary_key=True, unique=True)
shipping_info = peewee.ForeignKeyField(ShippingInfo, backref='shipping_info', null=True)
product = pee... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2702/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2702/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2701 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2701/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2701/comments | https://api.github.com/repos/coleifer/peewee/issues/2701/events | https://github.com/coleifer/peewee/issues/2701 | 1,657,252,090 | I_kwDOAA7yGM5ix6j6 | 2,701 | setup.py being deprecated | {
"login": "crdoconnor",
"id": 6067509,
"node_id": "MDQ6VXNlcjYwNjc1MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/6067509?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/crdoconnor",
"html_url": "https://github.com/crdoconnor",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"What version of peewee are you using? I think this should be fixed since we have a magic pyproject toml file now.",
"3.16.0, installed with python 3.11.2:\r\n\r\n```\r\nroot@6b1a08642656:/src# /venv/bin/pip install peewee==3.16.0 \r\nCollecting peewee==3.16.0\r\n Using cached peewee-3.16.0.tar.gz (866 kB)\r\n ... | 2023-04-06T11:34:12 | 2023-04-06T12:10:17 | 2023-04-06T12:10:17 | NONE | null | This message is being displayed when pip installing peewee on python version 3.11.2:
```
DEPRECATION: peewee is being installed using the legacy 'setup.py install' method,
because it does not have a 'pyproject.toml' and the 'wheel' package is not installed.
pip 23.1 will enforce this behaviour change. A possible ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2701/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2701/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2700 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2700/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2700/comments | https://api.github.com/repos/coleifer/peewee/issues/2700/events | https://github.com/coleifer/peewee/issues/2700 | 1,656,510,705 | I_kwDOAA7yGM5ivFjx | 2,700 | Create aware datetime objects for TimestampField | {
"login": "IBuckton",
"id": 48970269,
"node_id": "MDQ6VXNlcjQ4OTcwMjY5",
"avatar_url": "https://avatars.githubusercontent.com/u/48970269?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/IBuckton",
"html_url": "https://github.com/IBuckton",
"followers_url": "https://api.github.com/users/IBu... | [] | closed | false | null | [] | null | [
"You can't compare naive and tz-aware datetimes, so this is a non-starter unfortunately. The idea is that your naive datetime *is* already in UTC so the tzinfo is meaningless and provides flexibility -- that is *also* why `utc=False` by default. We can't be switching the return value between naive and tz-aware base... | 2023-04-06T00:55:51 | 2023-04-06T04:02:53 | 2023-04-06T04:02:52 | NONE | null | **Description**
With `TimestampField(utc=True)` it returns a naive datetime object. This is not recommended as they are treated by many datetime methods as local times.
**Expected behaviour**
Return an aware datetime object to avoid confusion, per the recommendation in [datetime docs](https://docs.python.org/3.11/... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2700/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2700/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2699 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2699/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2699/comments | https://api.github.com/repos/coleifer/peewee/issues/2699/events | https://github.com/coleifer/peewee/issues/2699 | 1,652,084,899 | I_kwDOAA7yGM5ieNCj | 2,699 | test_multiple_writers failing with database is locked on ppc64le arch | {
"login": "vkrizan",
"id": 7695766,
"node_id": "MDQ6VXNlcjc2OTU3NjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/7695766?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vkrizan",
"html_url": "https://github.com/vkrizan",
"followers_url": "https://api.github.com/users/vkrizan/... | [] | closed | false | null | [] | null | [
"Thanks for the report. That timing for the tests (500+ seconds) is unreal, for comparison they run in less than 4 seconds on my workstation:\r\n\r\n```\r\nRan 1154 tests in 3.359s\r\n```\r\n\r\nSo I wonder if you are hitting the sqlite busy timeout on that particular test-case. Is there a particular test that is s... | 2023-04-03T13:34:00 | 2023-04-18T17:11:16 | 2023-04-03T14:41:20 | NONE | null | Hello,
The `tests.db_tests.TestThreadSafety.test_multiple_writers` test is failing on ppc64le architecture with:
```
peewee.OperationalError: database is locked
```
```
+ createdb peewee_test
+ psql -c 'CREATE EXTENSION hstore' peewee_test
CREATE EXTENSION
+ /usr/bin/python3 runtests.py
..................... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2699/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2699/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2698 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2698/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2698/comments | https://api.github.com/repos/coleifer/peewee/issues/2698/events | https://github.com/coleifer/peewee/pull/2698 | 1,641,066,536 | PR_kwDOAA7yGM5M6wfI | 2,698 | Ae configurable default | {
"login": "paetling",
"id": 3281726,
"node_id": "MDQ6VXNlcjMyODE3MjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/3281726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/paetling",
"html_url": "https://github.com/paetling",
"followers_url": "https://api.github.com/users/paetl... | [] | closed | false | null | [] | null | [
"Is there a reason you are not just using:\r\n\r\n```python\r\nclass Base(Model):\r\n id = BinaryUUIDField(primary_key=True, ...)\r\n\r\nclass MyModel(Base):\r\n # MyModel.id will be a binary uuid field\r\n```\r\n\r\nThis change seems redundant."
] | 2023-03-26T20:10:10 | 2023-03-27T12:48:35 | 2023-03-27T12:48:30 | NONE | null | ## Context
Make it so that we can configure the type of the id that is created | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2698/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2698/timeline | null | null | true | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/2698",
"html_url": "https://github.com/coleifer/peewee/pull/2698",
"diff_url": "https://github.com/coleifer/peewee/pull/2698.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/2698.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/2697 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2697/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2697/comments | https://api.github.com/repos/coleifer/peewee/issues/2697/events | https://github.com/coleifer/peewee/issues/2697 | 1,634,492,330 | I_kwDOAA7yGM5hbF-q | 2,697 | peewee-value-returns-to-its-default-after-few-seconds-bug | {
"login": "instasck",
"id": 43851500,
"node_id": "MDQ6VXNlcjQzODUxNTAw",
"avatar_url": "https://avatars.githubusercontent.com/u/43851500?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/instasck",
"html_url": "https://github.com/instasck",
"followers_url": "https://api.github.com/users/ins... | [] | closed | false | null | [] | null | [
"OK ISSUES IS\r\nThat a pointer to the database is not refreshing automatically, it pointing to local data in memory so holding old data.",
"Don't spam the issues -- please try to have a bit of patience.",
"Well it took me 2 hours before I found the issue.\r\nit is not clear about refreshing data from the doc..... | 2023-03-21T18:26:54 | 2023-03-21T19:09:42 | 2023-03-21T19:06:38 | NONE | null | https://stackoverflow.com/questions/75804965/peewee-value-returns-to-its-default-after-few-seconds-bug
Can you explain this ? | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2697/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2697/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2696 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2696/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2696/comments | https://api.github.com/repos/coleifer/peewee/issues/2696/events | https://github.com/coleifer/peewee/issues/2696 | 1,634,154,999 | I_kwDOAA7yGM5hZzn3 | 2,696 | Point type | {
"login": "diegocatalao",
"id": 81654879,
"node_id": "MDQ6VXNlcjgxNjU0ODc5",
"avatar_url": "https://avatars.githubusercontent.com/u/81654879?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/diegocatalao",
"html_url": "https://github.com/diegocatalao",
"followers_url": "https://api.github.c... | [] | closed | false | null | [] | null | [
"No plans on integrating this into Peewee at the present."
] | 2023-03-21T15:22:36 | 2023-03-21T15:25:31 | 2023-03-21T15:25:30 | NONE | null | Good afternoon people.
Most databases implement the Point type. I've implemented a custom type but I don't know if that's on your roadmap.
I would like to implement it natively in PeeWee. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2696/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2696/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2695 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2695/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2695/comments | https://api.github.com/repos/coleifer/peewee/issues/2695/events | https://github.com/coleifer/peewee/issues/2695 | 1,630,086,918 | I_kwDOAA7yGM5hKScG | 2,695 | FOR UPDATE not supported by CockroachDatabase | {
"login": "arel",
"id": 153497,
"node_id": "MDQ6VXNlcjE1MzQ5Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/153497?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arel",
"html_url": "https://github.com/arel",
"followers_url": "https://api.github.com/users/arel/followers",
... | [] | closed | false | null | [] | null | [
"Thank you for letting me know, I'll get this fixed.\r\n\r\nIn the meantime you can set the flag manually when you do your database initialization.\r\n\r\n```\r\ndb = ...\r\ndb.for_update = True\r\n```",
"Thanks!",
"When I enabled the flag the crdb tests are locking up and failing, so something must be special ... | 2023-03-18T02:06:31 | 2023-03-18T21:13:38 | 2023-03-18T21:13:37 | NONE | null | I believe this is a bug. I am getting the following error when I try to use `for_update()` in Cockroach DB:
```
File "/workspace/nuhom-api/.venv/lib/python3.10/site-packages/peewee.py", line 2509, in __sql__
raise ValueError('FOR UPDATE specified but not supported '
graphql.error.graphql_error.GraphQLError:... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2695/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2695/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2694 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2694/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2694/comments | https://api.github.com/repos/coleifer/peewee/issues/2694/events | https://github.com/coleifer/peewee/issues/2694 | 1,629,501,735 | I_kwDOAA7yGM5hIDkn | 2,694 | `CharField.max_length` has no effect on a Sqlite database | {
"login": "calvinweb",
"id": 38599774,
"node_id": "MDQ6VXNlcjM4NTk5Nzc0",
"avatar_url": "https://avatars.githubusercontent.com/u/38599774?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/calvinweb",
"html_url": "https://github.com/calvinweb",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"That is correct, and is down to the way SQLite implements text affinity columns.\r\n\r\nIf you want to enforce a max length you can add a check constraint or implement a subclass of charfield that overrides the `db_value()` method to trim the string.",
"> That is correct, and is down to the way SQLite implements... | 2023-03-17T15:23:13 | 2023-03-18T01:57:47 | 2023-03-17T16:16:44 | NONE | null | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2694/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2694/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2693 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2693/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2693/comments | https://api.github.com/repos/coleifer/peewee/issues/2693/events | https://github.com/coleifer/peewee/issues/2693 | 1,628,079,936 | I_kwDOAA7yGM5hCodA | 2,693 | peewee.ProgrammingError: Error binding parameter 1: type 'builtin_function_or_method' is not supported | {
"login": "RanjithSivam",
"id": 57189095,
"node_id": "MDQ6VXNlcjU3MTg5MDk1",
"avatar_url": "https://avatars.githubusercontent.com/u/57189095?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RanjithSivam",
"html_url": "https://github.com/RanjithSivam",
"followers_url": "https://api.github.c... | [] | closed | false | null | [] | null | [
"Do not post questions like this on here. Post your questions on stack overflow. The error is extremely basic, and the error message tells you what is going on. You cannot pass a function as a query parameter.\r\n\r\n```python\r\n# Actually call .now(), don't pass the function itself:\r\n.update(last_login=datetime... | 2023-03-16T18:45:53 | 2023-03-16T18:55:45 | 2023-03-16T18:55:44 | NONE | null | I am trying to update. I get this error.
My Code:

Here is the error:
Traceback (most recent call last):
File "C:\Users\ranjith-15557\AppData\Local\Programs\Python\Python311\Lib\site-packages\peewee... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2693/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2693/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2692 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2692/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2692/comments | https://api.github.com/repos/coleifer/peewee/issues/2692/events | https://github.com/coleifer/peewee/issues/2692 | 1,623,585,150 | I_kwDOAA7yGM5gxfF- | 2,692 | Creating indexes on UUID primary key failes | {
"login": "martijnED",
"id": 104991209,
"node_id": "U_kgDOBkIJ6Q",
"avatar_url": "https://avatars.githubusercontent.com/u/104991209?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/martijnED",
"html_url": "https://github.com/martijnED",
"followers_url": "https://api.github.com/users/martij... | [] | closed | false | null | [] | null | [
"The docs are pretty clear:\r\n\r\n```python\r\n# Adding an index:\r\n\r\n# Specify the table, column names, and whether the index should be\r\n# UNIQUE or not.\r\nmigrate(\r\n # Create an index on the `pub_date` column.\r\n migrator.add_index('story', ('pub_date',), False),\r\n\r\n # Create a multi-column... | 2023-03-14T14:19:57 | 2023-03-14T14:41:00 | 2023-03-14T14:25:14 | NONE | null | During creating of tables and creating indexes on that table it failes to create indexes on UUID key.
## The code
``` python
import uuid
from playhouse.postgres_ext import UUIDField
class CommandControl(Model):
id = UUIDField(primary_key=True, default=uuid.uuid4)
def migrate(migrator, database, fake=F... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2692/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2692/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2691 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2691/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2691/comments | https://api.github.com/repos/coleifer/peewee/issues/2691/events | https://github.com/coleifer/peewee/issues/2691 | 1,619,326,207 | I_kwDOAA7yGM5ghPT_ | 2,691 | reflection.generate_models BinaryJSONField column always has index, even when underlying database schema has no index | {
"login": "rberman",
"id": 6520506,
"node_id": "MDQ6VXNlcjY1MjA1MDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6520506?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rberman",
"html_url": "https://github.com/rberman",
"followers_url": "https://api.github.com/users/rberman/... | [] | closed | false | null | [] | null | [] | 2023-03-10T17:16:36 | 2023-03-10T19:03:17 | 2023-03-10T19:03:17 | NONE | null | I have a table defined as follows:
```python
from playhouse.postgres_ext import BinaryJSONField
class MyTable(flask_db.Model):
some_data = BinaryJSONField(index=False)
```
For this table, we don’t need an index since we only ever write to this table.
When I try to use generate_models on this table, the ge... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2691/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2691/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2690 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2690/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2690/comments | https://api.github.com/repos/coleifer/peewee/issues/2690/events | https://github.com/coleifer/peewee/issues/2690 | 1,618,951,492 | I_kwDOAA7yGM5gfz1E | 2,690 | Prefetch with many ForeignKeyField to same model | {
"login": "dim49v",
"id": 15666913,
"node_id": "MDQ6VXNlcjE1NjY2OTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/15666913?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dim49v",
"html_url": "https://github.com/dim49v",
"followers_url": "https://api.github.com/users/dim49v/fo... | [] | closed | false | null | [] | null | [
"Seems to be working OK for me:\r\n\r\n```python\r\nclass State(db.Model):\r\n name = TextField()\r\n def __str__(self):\r\n return self.name\r\n\r\nclass Transition(db.Model):\r\n source_state = ForeignKeyField(State, backref='sources')\r\n target_state = ForeignKeyField(State, backref='targets'... | 2023-03-10T13:06:12 | 2023-03-12T14:15:30 | 2023-03-12T14:08:10 | NONE | null | Hello!
I'm have 2 models:
```
class State(Entity):
uuid = UUIDField(column_name='uuid', primary_key=True)
class Transition(Entity):
uuid = UUIDField(column_name='uuid', primary_key=True)
source_state = ForeignKeyField(State, column_name='source_state_id', backref='_db_source_transitions')
targ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2690/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2690/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2689 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2689/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2689/comments | https://api.github.com/repos/coleifer/peewee/issues/2689/events | https://github.com/coleifer/peewee/issues/2689 | 1,617,001,747 | I_kwDOAA7yGM5gYX0T | 2,689 | Is it possible to serialise peewee.Expression? | {
"login": "vdytyniak-exos",
"id": 94358054,
"node_id": "U_kgDOBZ_KJg",
"avatar_url": "https://avatars.githubusercontent.com/u/94358054?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vdytyniak-exos",
"html_url": "https://github.com/vdytyniak-exos",
"followers_url": "https://api.github.com... | [] | closed | false | null | [] | null | [
"No, not really or not officially. You can see how the [dynamic filters work in flask-peewee](http://docs.peewee-orm.com/projects/flask-peewee/en/latest/admin.html#filters): https://github.com/coleifer/flask-peewee/blob/master/flask_peewee/filters.py\r\n\r\nProbably the easiest thing to do though is to use the djan... | 2023-03-09T11:19:40 | 2023-03-09T14:04:47 | 2023-03-09T12:43:27 | NONE | null | it is not an issue, but I didn't find other communication channel to get some ideas in how to serialise peewee.Expression to pass it to the API and later use there as filter in the query. Thanks | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2689/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2689/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2688 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2688/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2688/comments | https://api.github.com/repos/coleifer/peewee/issues/2688/events | https://github.com/coleifer/peewee/pull/2688 | 1,611,011,168 | PR_kwDOAA7yGM5LWNxs | 2,688 | mysql add column comment | {
"login": "smzhao",
"id": 2282742,
"node_id": "MDQ6VXNlcjIyODI3NDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2282742?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/smzhao",
"html_url": "https://github.com/smzhao",
"followers_url": "https://api.github.com/users/smzhao/foll... | [] | closed | false | null | [] | null | [
"Going to pass."
] | 2023-03-06T09:33:38 | 2023-03-06T12:16:44 | 2023-03-06T12:16:44 | NONE | null | mysql add column comment with verbose_name or help_text | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2688/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2688/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/2688",
"html_url": "https://github.com/coleifer/peewee/pull/2688",
"diff_url": "https://github.com/coleifer/peewee/pull/2688.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/2688.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/2687 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2687/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2687/comments | https://api.github.com/repos/coleifer/peewee/issues/2687/events | https://github.com/coleifer/peewee/issues/2687 | 1,610,105,140 | I_kwDOAA7yGM5f-EE0 | 2,687 | `playhouse.signals.Signal.disconnect` disconnects more than key, sender pair. | {
"login": "real-yfprojects",
"id": 62463991,
"node_id": "MDQ6VXNlcjYyNDYzOTkx",
"avatar_url": "https://avatars.githubusercontent.com/u/62463991?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/real-yfprojects",
"html_url": "https://github.com/real-yfprojects",
"followers_url": "https://api... | [] | closed | false | null | [] | null | [
"Oh yes it should be instead:\r\n\r\n```\r\nif not (n,s)==key\r\n```",
"Nice! Thanks for fixing. Do you have a rough estimate for the next release date?",
"Let me think on it."
] | 2023-03-05T08:30:29 | 2023-03-05T14:57:19 | 2023-03-05T14:49:03 | NONE | null | When connecting two receiver to the same sender and disconnecting one of them. Both are disconnected. This bug is also illustrated by the code itself:
https://github.com/coleifer/peewee/blob/f88fa44a29601ca2de9fe492fda11b1fb28fb412/playhouse/signals.py#L25-L38
The `_receivers` set stores pairs of receiver and mod... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2687/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2687/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2686 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2686/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2686/comments | https://api.github.com/repos/coleifer/peewee/issues/2686/events | https://github.com/coleifer/peewee/issues/2686 | 1,610,098,096 | I_kwDOAA7yGM5f-CWw | 2,686 | Undocumented parameter `sender` for `playhouse.signals.Signal.disconnect`. | {
"login": "real-yfprojects",
"id": 62463991,
"node_id": "MDQ6VXNlcjYyNDYzOTkx",
"avatar_url": "https://avatars.githubusercontent.com/u/62463991?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/real-yfprojects",
"html_url": "https://github.com/real-yfprojects",
"followers_url": "https://api... | [] | closed | false | null | [] | null | [
"You just don't want to update/improve the documentation of your library or why are you closing it without a comment. Others will find that pretty unwelcoming.",
"7246a7f2b8c5adbae33180af3c817601560dc33a"
] | 2023-03-05T08:03:44 | 2023-03-05T16:53:34 | 2023-03-05T12:25:53 | NONE | null | https://github.com/coleifer/peewee/blob/f88fa44a29601ca2de9fe492fda11b1fb28fb412/playhouse/signals.py#L25
There is a `sender` parameter. However there is no such parameter here:
https://github.com/coleifer/peewee/blob/f88fa44a29601ca2de9fe492fda11b1fb28fb412/docs/peewee/playhouse.rst?plain=1#L2740 | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2686/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2686/timeline | null | not_planned | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2685 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2685/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2685/comments | https://api.github.com/repos/coleifer/peewee/issues/2685/events | https://github.com/coleifer/peewee/issues/2685 | 1,609,389,010 | I_kwDOAA7yGM5f7VPS | 2,685 | Cast Bigint to timestamp | {
"login": "antoinebrtd",
"id": 34452191,
"node_id": "MDQ6VXNlcjM0NDUyMTkx",
"avatar_url": "https://avatars.githubusercontent.com/u/34452191?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/antoinebrtd",
"html_url": "https://github.com/antoinebrtd",
"followers_url": "https://api.github.com/... | [] | closed | false | null | [] | null | [
"Is there a very compelling reason why you are using `TimestampField` at all, instead of `DateTimeField`? It's really intended mostly for Sqlite users, which does not provide a dedicated date/time type.\r\n\r\nAt any rate, you need to use the postgres `to_timestamp` function here if you insist on doing it this way:... | 2023-03-03T23:16:36 | 2023-03-03T23:56:30 | 2023-03-03T23:56:29 | NONE | null | Hello,
I am trying to partition some data using `fn.date_part` on a `TimestampField`.
Here is my simplified model:
```
class Game(Model):
id = PrimaryKeyField()
ts_played = TimestampField(utc=True, default=None, null=True)
score = IntegerField(null=True)
```
My full query:
```
results = Game ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2685/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2685/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2684 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2684/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2684/comments | https://api.github.com/repos/coleifer/peewee/issues/2684/events | https://github.com/coleifer/peewee/issues/2684 | 1,601,653,522 | I_kwDOAA7yGM5fd0sS | 2,684 | Build failures with Cython 3.0.0b1 | {
"login": "mgorny",
"id": 110765,
"node_id": "MDQ6VXNlcjExMDc2NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/110765?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mgorny",
"html_url": "https://github.com/mgorny",
"followers_url": "https://api.github.com/users/mgorny/follow... | [] | closed | false | null | [] | null | [
"Thank you, I think I got 'em in the above commit.",
"Thanks, seems to build now. Note that there's still this warning though:\r\n\r\n```\r\n[1/2] Cythonizing playhouse/_sqlite_ext.pyx\r\n/tmp/peewee/venv/lib/python3.11/site-packages/Cython/Compiler/Main.py:370: FutureWarning: Cython directive 'language_level' no... | 2023-02-27T17:48:43 | 2023-02-27T18:05:46 | 2023-02-27T17:57:56 | NONE | null | Cython 3.0.0 has released its first beta, meaning that 3.0.0 final will be out sooner than later. Right now peewee fails to build with it:
```
$ python setup.py build
Compiling playhouse/_sqlite_udf.pyx because it changed.
Compiling playhouse/_sqlite_ext.pyx because it changed.
[1/2] Cythonizing playhouse/_sqlit... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2684/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2684/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2683 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2683/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2683/comments | https://api.github.com/repos/coleifer/peewee/issues/2683/events | https://github.com/coleifer/peewee/issues/2683 | 1,599,887,876 | I_kwDOAA7yGM5fXFoE | 2,683 | Can't query with unicode character | {
"login": "groggyegg",
"id": 66879210,
"node_id": "MDQ6VXNlcjY2ODc5MjEw",
"avatar_url": "https://avatars.githubusercontent.com/u/66879210?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/groggyegg",
"html_url": "https://github.com/groggyegg",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"This probably has to do with the collation you're using. Is this MySQL?",
"No, I’m using SQLite",
"Wait so your data is *literally* the Unicode escapes? If so have you tried double escaping the forward quote?",
"> Wait so your data is _literally_ the Unicode escapes? If so have you tried double escaping the ... | 2023-02-26T00:49:33 | 2023-02-26T12:53:07 | 2023-02-26T12:53:07 | NONE | null | I have a column containing this type of data `{"zh": "\u65e5\u97e9\u5267"}` and when I query it with this code `Video.select().where(Video.director.contains('\u65e5\u97e9\u5267'))` , I'm not getting any result. It only works when I query non-unicode text e.g. `Video.select().where(Video.director.contains('"zh"'))`.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2683/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2683/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2682 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2682/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2682/comments | https://api.github.com/repos/coleifer/peewee/issues/2682/events | https://github.com/coleifer/peewee/issues/2682 | 1,599,859,949 | I_kwDOAA7yGM5fW-zt | 2,682 | peewee.InterfaceError: Error, database must be initialized before opening a connection. | {
"login": "NPZYMR",
"id": 101792221,
"node_id": "U_kgDOBhE53Q",
"avatar_url": "https://avatars.githubusercontent.com/u/101792221?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NPZYMR",
"html_url": "https://github.com/NPZYMR",
"followers_url": "https://api.github.com/users/NPZYMR/follower... | [] | closed | false | null | [] | null | [
"If you had taken a moment to debug this, you would have found that `db_name = os.environ.get('DB_NAME')` is somehow getting set to `None`. This is the issue.",
"In debug, I'm getting my DB name in \"db_name = os.environ.get('DB_NAME')\" but\ndon't know how to rectify this now. please don't mind this I'm new to\n... | 2023-02-25T22:25:31 | 2023-02-26T19:46:52 | 2023-02-25T22:42:51 | NONE | null | import os
from playhouse.postgres_ext import CharField, DateTimeField, IntegerField, BooleanField
from .base import Base
import datetime
from peewee import PostgresqlDatabase
from playhouse.migrate import *
db_name = os.environ.get('DB_NAME')
db_host = os.environ.get('DB_HOST')
db_port = os.environ.get('DB_PO... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2682/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2682/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2681 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2681/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2681/comments | https://api.github.com/repos/coleifer/peewee/issues/2681/events | https://github.com/coleifer/peewee/issues/2681 | 1,599,322,496 | I_kwDOAA7yGM5fU7mA | 2,681 | Does migrate() run every time I run server(Ex. flask server) | {
"login": "NPZYMR",
"id": 101792221,
"node_id": "U_kgDOBhE53Q",
"avatar_url": "https://avatars.githubusercontent.com/u/101792221?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NPZYMR",
"html_url": "https://github.com/NPZYMR",
"followers_url": "https://api.github.com/users/NPZYMR/follower... | [] | closed | false | null | [] | null | [
"Let's say you want to add a column to a model in an application. The typical process would be to:\r\n\r\n1. Stop the application.\r\n2. Update the schema of the database by running a migration once.\r\n3. Restart the application with the new field present in the code.\r\n\r\nYou can always add a \"check\" in your ... | 2023-02-24T21:54:40 | 2023-02-25T12:46:39 | 2023-02-24T22:51:06 | NONE | null | Suppose I've added create_table(fail_silently=True) when the flask server starts.
In this model class below, I want to add the column "test" in my DB corresponding field "test_field".
Question:
1. Do I need to add "test_field" in my model **EmpDetails** or outside the **class** or both(like I did in the code snipp... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2681/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2681/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2680 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2680/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2680/comments | https://api.github.com/repos/coleifer/peewee/issues/2680/events | https://github.com/coleifer/peewee/issues/2680 | 1,593,303,175 | I_kwDOAA7yGM5e9-CH | 2,680 | How to use with pgbouncer? | {
"login": "backpropogation",
"id": 34347364,
"node_id": "MDQ6VXNlcjM0MzQ3MzY0",
"avatar_url": "https://avatars.githubusercontent.com/u/34347364?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/backpropogation",
"html_url": "https://github.com/backpropogation",
"followers_url": "https://api... | [] | closed | false | null | [] | null | [
"They are somewhat orthogonal, and also dependent upon what kind of pooling you use in pgbouncer (session, txn or statement). Peewee's pooled variants will maintain open connections to postgres so doubling-up and using `PooledPostgresqlDatabase` + pgbouncer is probably unnecessary. It also kinda depends on what lat... | 2023-02-21T11:23:00 | 2023-02-21T13:35:54 | 2023-02-21T13:35:54 | NONE | null | Could someone, please, make clear, how to use peewee with pgbouncer?
Am I supposed to use `PooledPostgresqlExtDatabase` or it's overkill and just `PostgresqlExtDatabase` will be fine? Connection string will point to pgbouncer. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2680/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2680/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/2679 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/2679/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/2679/comments | https://api.github.com/repos/coleifer/peewee/issues/2679/events | https://github.com/coleifer/peewee/pull/2679 | 1,592,259,335 | PR_kwDOAA7yGM5KXb30 | 2,679 | Fix typo in docs | {
"login": "puntonim",
"id": 6423485,
"node_id": "MDQ6VXNlcjY0MjM0ODU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6423485?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/puntonim",
"html_url": "https://github.com/puntonim",
"followers_url": "https://api.github.com/users/punto... | [] | closed | false | null | [] | null | [] | 2023-02-20T17:54:34 | 2023-02-20T21:01:12 | 2023-02-20T21:01:12 | NONE | null | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/2679/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/2679/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/2679",
"html_url": "https://github.com/coleifer/peewee/pull/2679",
"diff_url": "https://github.com/coleifer/peewee/pull/2679.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/2679.patch",
"merged_at": null
} |
End of preview. Expand in Data Studio
Dataset Card for Peewee Issues
Dataset Summary
Peewee Issues is a dataset containing all the issues in the Peewee github repository up to the last date of extraction (5/3/2023). It has been made for educational purposes in mind (especifically, to get me used to using Hugging Face's datasets), but can be used for multi-label classification or semantic search. The contents are all in English and concern SQL databases and ORM libraries.
- Downloads last month
- 9