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 list | milestone null | comments list | 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/1618 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1618/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1618/comments | https://api.github.com/repos/coleifer/peewee/issues/1618/events | https://github.com/coleifer/peewee/pull/1618 | 328,825,235 | MDExOlB1bGxSZXF1ZXN0MTkyMjQ1NDU5 | 1,618 | Correct spelling mistakes. | {
"login": "EdwardBetts",
"id": 3818,
"node_id": "MDQ6VXNlcjM4MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3818?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EdwardBetts",
"html_url": "https://github.com/EdwardBetts",
"followers_url": "https://api.github.com/users/Edward... | [] | closed | false | null | [] | null | [
"Thank you!"
] | 2018-06-03T12:38:58 | 2018-06-03T20:22:09 | 2018-06-03T20:01:37 | CONTRIBUTOR | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1618/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1618/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1618",
"html_url": "https://github.com/coleifer/peewee/pull/1618",
"diff_url": "https://github.com/coleifer/peewee/pull/1618.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1618.patch",
"merged_at": "2018-06-03T20:01:37"
} | |
https://api.github.com/repos/coleifer/peewee/issues/1617 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1617/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1617/comments | https://api.github.com/repos/coleifer/peewee/issues/1617/events | https://github.com/coleifer/peewee/issues/1617 | 328,762,654 | MDU6SXNzdWUzMjg3NjI2NTQ= | 1,617 | importing peewee hangs debugging on windows | {
"login": "GitHubAre",
"id": 17234860,
"node_id": "MDQ6VXNlcjE3MjM0ODYw",
"avatar_url": "https://avatars.githubusercontent.com/u/17234860?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GitHubAre",
"html_url": "https://github.com/GitHubAre",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Try to use Pycharm. ",
"pycharm works fine, thank you!"
] | 2018-06-02T17:40:13 | 2018-06-02T22:15:26 | 2018-06-02T22:15:26 | NONE | null | Hello,
I am using Visual Studio Code and Windows 10 for development
I have installed peewee using pip.
When having _from peewee import *_ I cant debug and everything hangs on the import line.
If I remove breakpoints from Visual Studio Code it does not hang.
Can you please suggest what could be problem? What is hap... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1617/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/1617/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1616 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1616/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1616/comments | https://api.github.com/repos/coleifer/peewee/issues/1616/events | https://github.com/coleifer/peewee/issues/1616 | 327,206,079 | MDU6SXNzdWUzMjcyMDYwNzk= | 1,616 | use value as LIKE left hand operand | {
"login": "gbour",
"id": 644293,
"node_id": "MDQ6VXNlcjY0NDI5Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/644293?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbour",
"html_url": "https://github.com/gbour",
"followers_url": "https://api.github.com/users/gbour/followers"... | [] | closed | false | null | [] | null | [
"Sure, you can use `Value(123456)`:\r\n\r\n```python\r\n\r\n# If prefix is a string literal:\r\nquery = SomeTable.select().where(Value('123456').startswith('someprefix'))\r\n\r\n# If prefix is a column on the table:\r\nquery = SomeTable.select().where(Value('123456').startswith(SomeTable.prefix))\r\n```",
"Oh rea... | 2018-05-29T07:49:38 | 2018-05-29T15:45:29 | 2018-05-29T13:47:15 | NONE | null | Hello,
In sqlite, we can do a query like that (prefix being a field of mytable table):
`SELECT * FROM mytable WHERE 123456 LIKE prefix||'%'`
same in mysql:
`SELECT * FROM mytable WHERE 123456 LIKE concat(prefix,'%')`
It will match prefixes like '12' or '1234'. I use it for prefix matching.
Unfortunately wit... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1616/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/1616/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1615 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1615/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1615/comments | https://api.github.com/repos/coleifer/peewee/issues/1615/events | https://github.com/coleifer/peewee/issues/1615 | 327,062,488 | MDU6SXNzdWUzMjcwNjI0ODg= | 1,615 | Inserting billions of rows | {
"login": "stefdoerr",
"id": 7935362,
"node_id": "MDQ6VXNlcjc5MzUzNjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/7935362?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stefdoerr",
"html_url": "https://github.com/stefdoerr",
"followers_url": "https://api.github.com/users/st... | [] | closed | false | null | [] | null | [
"I tried moving the `with db.atomic():` inside the `for group in tqdm(groups):` loop which is how I had written it in `sqlite` and the progress bar said that it would take 6 hours to complete versus 2 minutes in `sqlite`\r\n\r\n```python\r\n with h5py.File(dataset, 'r') as infile:\r\n groups = list(infile... | 2018-05-28T15:32:19 | 2018-05-29T13:48:32 | 2018-05-28T22:51:35 | NONE | null | Hi, I wanted to try out peewee for the first time but I hit a snag at inserting ~20 billion rows. With the python sqlite3 library it works super fast (~1.5 minutes).
With peewee I don't see any progress. Neither does the file grow nor does it finish within a reasonable time-frame and there is no indication of progre... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1615/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/1615/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1614 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1614/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1614/comments | https://api.github.com/repos/coleifer/peewee/issues/1614/events | https://github.com/coleifer/peewee/issues/1614 | 326,434,137 | MDU6SXNzdWUzMjY0MzQxMzc= | 1,614 | Problem serializing query result to JSON | {
"login": "mgraupner",
"id": 586644,
"node_id": "MDQ6VXNlcjU4NjY0NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/586644?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mgraupner",
"html_url": "https://github.com/mgraupner",
"followers_url": "https://api.github.com/users/mgra... | [] | closed | false | null | [] | null | [
"Yes, this is the intended behavior. That group by looks sketchy as hell since you're selecting columns that aren't included in the group by...granted, that probably works fine for SQLite and MySQL. Anyways!\r\n\r\n`model_to_dict` probably isn't going to work correctly for what you're trying to do without some gymn... | 2018-05-25T08:48:25 | 2018-05-25T16:50:33 | 2018-05-25T16:50:33 | NONE | null | Following model:
```
class User(BaseModel):
...
class Event(BaseModel):
...
user = ForeignKeyField(User, related_name='events')
```
I want to have the newest event for each user:
```
result = (User
.select(User, Event)
.join(Event)
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1614/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/1614/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1613 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1613/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1613/comments | https://api.github.com/repos/coleifer/peewee/issues/1613/events | https://github.com/coleifer/peewee/issues/1613 | 326,396,432 | MDU6SXNzdWUzMjYzOTY0MzI= | 1,613 | SchemaMigrator.add_column ignores the index_type, always results a btree index. | {
"login": "wonderbeyond",
"id": 228361,
"node_id": "MDQ6VXNlcjIyODM2MQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/228361?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wonderbeyond",
"html_url": "https://github.com/wonderbeyond",
"followers_url": "https://api.github.com/u... | [] | closed | false | null | [] | null | [
"Thanks, I've fixed this in 8a95426 and added a test and updated docs. I appreciate you taking the time to report this issue."
] | 2018-05-25T06:26:17 | 2018-05-25T13:52:40 | 2018-05-25T13:52:40 | NONE | null | with `db.create_tables`, I can get an `GIN` index for a field like below:
```python
BinaryJSONField(default=dict, index=True, null=True)
```
However, if I add a new column with `migrator.add_column`, I always get a btree index.
You may need inspecting code here: https://github.com/coleifer/peewee/blob/master... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1613/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/1613/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1612 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1612/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1612/comments | https://api.github.com/repos/coleifer/peewee/issues/1612/events | https://github.com/coleifer/peewee/issues/1612 | 326,366,663 | MDU6SXNzdWUzMjYzNjY2NjM= | 1,612 | table_exists() function not working. | {
"login": "djh2020",
"id": 6467508,
"node_id": "MDQ6VXNlcjY0Njc1MDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/6467508?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/djh2020",
"html_url": "https://github.com/djh2020",
"followers_url": "https://api.github.com/users/djh2020/... | [] | closed | false | null | [] | null | [
"So in examining / digging through your tests I see your documentation isn't accurate. Looks like it needs to be updated.\r\n\r\nhttps://github.com/coleifer/peewee/blob/49c162d5939bb52627c1e6a1687e722b8bf83ec9/tests/database.py#L398\r\n\r\n\r\ndocumented\r\n<img width=\"702\" alt=\"screen shot 2018-05-24 at 8 22 1... | 2018-05-25T03:15:45 | 2018-05-25T13:38:00 | 2018-05-25T13:38:00 | NONE | null | I am unable to get this function to work. I have tried (table='job'),('job'),(job),(['job'])

| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1612/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/1612/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1611 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1611/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1611/comments | https://api.github.com/repos/coleifer/peewee/issues/1611/events | https://github.com/coleifer/peewee/issues/1611 | 325,655,257 | MDU6SXNzdWUzMjU2NTUyNTc= | 1,611 | get_or_create failing | {
"login": "ra-esmith",
"id": 24212262,
"node_id": "MDQ6VXNlcjI0MjEyMjYy",
"avatar_url": "https://avatars.githubusercontent.com/u/24212262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ra-esmith",
"html_url": "https://github.com/ra-esmith",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Ok so the GET if I just do that fails!! But why? I can run this query by hand in psql ...\r\nThere are other fields in the table, here they are, but this record does exist, wht this value for code.\r\n\r\n\r\ndoing a select explicitly\r\n('SELECT \"t1\".\"code\", \"t1\".\"allstars\", \"t1\".\"average_resale_fact... | 2018-05-23T11:02:16 | 2018-05-25T15:08:25 | 2018-05-25T14:01:17 | NONE | null | Hello,
So millions of times get_or_create works fine, but sometimes I am crashing on
what is a legal select statement ! Using newest peewee ...
As a test would like to try the get and create manually, but am unsure how to write that now.
Here are some of what I have found. The table t1 has a primary key na... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1611/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/1611/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1610 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1610/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1610/comments | https://api.github.com/repos/coleifer/peewee/issues/1610/events | https://github.com/coleifer/peewee/issues/1610 | 325,066,901 | MDU6SXNzdWUzMjUwNjY5MDE= | 1,610 | get_or_create violates unique constraint when saving | {
"login": "albireox",
"id": 568775,
"node_id": "MDQ6VXNlcjU2ODc3NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/568775?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/albireox",
"html_url": "https://github.com/albireox",
"followers_url": "https://api.github.com/users/albireo... | [] | closed | false | null | [] | null | [
"Can you create a minimal test-case I can use to reproduce the issue? I'm unclear from your comment what your model looks like or where the actual error is occurring.",
"I don't seem to be able to reproduce this on a simple case so it may have something to do with my DB (Postgresql). For what I can see, the probl... | 2018-05-21T21:33:45 | 2018-05-22T00:57:52 | 2018-05-22T00:57:52 | NONE | null | If I do
```python
dbo, created = Plate.get_or_create(plate_id=1234)
if created is True:
dbo.chunk = 'a'
dbo.save()
```
O get an error
```python
IntegrityError: duplicate key value violates unique constraint "plate_id_uniq"
DETAIL: Key (plate_id)=(1234) already exists
```
This seems to happe... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1610/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/1610/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1609 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1609/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1609/comments | https://api.github.com/repos/coleifer/peewee/issues/1609/events | https://github.com/coleifer/peewee/issues/1609 | 325,038,699 | MDU6SXNzdWUzMjUwMzg2OTk= | 1,609 | MySQL Error 1093 on recursive instance deletion | {
"login": "timlehr",
"id": 5310859,
"node_id": "MDQ6VXNlcjUzMTA4NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/5310859?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timlehr",
"html_url": "https://github.com/timlehr",
"followers_url": "https://api.github.com/users/timlehr/... | [] | closed | false | null | [] | null | [
"From the MySQL [update docs](https://dev.mysql.com/doc/refman/8.0/en/update.html):\r\n\r\n> You cannot update a table and select from the same table in a subquery.\r\n\r\nSee also [delete docs](https://dev.mysql.com/doc/refman/8.0/en/delete.html#idm139870165521360).\r\n\r\nThis appears to be a MySQL limitation. Yo... | 2018-05-21T19:54:09 | 2018-05-21T21:44:54 | 2018-05-21T21:44:54 | NONE | null | Hi Charles,
I'm using the recursive delete instance functionality of peewee quite a bit and so far it always worked out quite well. However, I recently added a self-referencing FK to one of my models `File`:
`_source_file = ForeignKeyField(column_name="sourcefile", model='self', null=True, field='dbid')`
I'm acc... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1609/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/1609/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1608 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1608/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1608/comments | https://api.github.com/repos/coleifer/peewee/issues/1608/events | https://github.com/coleifer/peewee/issues/1608 | 324,648,958 | MDU6SXNzdWUzMjQ2NDg5NTg= | 1,608 | Can't add parameters for DecimalField used in ArrayField (peewee 2.10.2) | {
"login": "ssrebelious",
"id": 2326764,
"node_id": "MDQ6VXNlcjIzMjY3NjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/2326764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ssrebelious",
"html_url": "https://github.com/ssrebelious",
"followers_url": "https://api.github.com/us... | [] | closed | false | null | [] | null | [
"That's a nice workaround but I'll see what I can do to offer better support.",
"This fix will be in the 3.4.0 release. If you plan to continue using 2.10 then the subclassing solution is totally fine."
] | 2018-05-19T18:09:24 | 2018-05-20T03:52:49 | 2018-05-20T03:48:20 | NONE | null | I have a model where I need to define custom parameters for DecimalField that is used inside ArrayField:
```python
class Pricing(Model):
base_cost = ArrayField(
DecimalField,
max_digits=16,
decimal_places=2,
help_text='Base cost',
null=False
)
class Meta:
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1608/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/1608/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1607 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1607/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1607/comments | https://api.github.com/repos/coleifer/peewee/issues/1607/events | https://github.com/coleifer/peewee/issues/1607 | 324,349,299 | MDU6SXNzdWUzMjQzNDkyOTk= | 1,607 | [Feature Request] iregex support | {
"login": "wonderbeyond",
"id": 228361,
"node_id": "MDQ6VXNlcjIyODM2MQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/228361?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wonderbeyond",
"html_url": "https://github.com/wonderbeyond",
"followers_url": "https://api.github.com/u... | [] | closed | false | null | [] | null | [
"Peewee supports a regexp operator. Depending on the database you're using, you can utilize the db-specific features to handle case-sensitivity.",
"Added support for MySQL and Postgresql. SQLite is going to be trickier and I may not implement it.\r\n\r\nSee: f631f222fe6b0c5cb68de99dede98d03454d3e3f"
] | 2018-05-18T10:07:54 | 2018-05-18T16:53:43 | 2018-05-18T14:02:11 | NONE | null | See https://docs.djangoproject.com/zh-hans/2.0/ref/models/querysets/#iregex | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1607/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/1607/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1606 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1606/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1606/comments | https://api.github.com/repos/coleifer/peewee/issues/1606/events | https://github.com/coleifer/peewee/issues/1606 | 324,109,514 | MDU6SXNzdWUzMjQxMDk1MTQ= | 1,606 | Help: AttributeError: when select with more than one join | {
"login": "eguzmanf",
"id": 13544743,
"node_id": "MDQ6VXNlcjEzNTQ0NzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/13544743?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eguzmanf",
"html_url": "https://github.com/eguzmanf",
"followers_url": "https://api.github.com/users/egu... | [] | closed | false | null | [] | null | [
"Since you don't appear to have actual foreign-keys, you'll need to tell peewee how to reconstruct the model graph by providing aliases in your join predicates:\r\n\r\n```python\r\n .join(age, pw.JOIN.LEFT_OUTER, on=(cit.AGE_ID == age.AGE_ID).alias('agecitas'))\r\n .join(per, pw.JOIN.LEFT_OUTER,... | 2018-05-17T17:06:16 | 2018-05-18T14:16:12 | 2018-05-17T19:12:28 | NONE | null | **Hi Friends,
I needs help please, I'm getting the following error when try a select with join:**
(work) C:\Users\eguzman\Documents\python-work\asterisk-insert-reminder>python script.py
Traceback (most recent call last):
File "script.py", line 41, in <module>
row.ageagendas.CODIGO, row.ageagendas.PER_ID, ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1606/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/1606/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1605 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1605/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1605/comments | https://api.github.com/repos/coleifer/peewee/issues/1605/events | https://github.com/coleifer/peewee/issues/1605 | 322,984,836 | MDU6SXNzdWUzMjI5ODQ4MzY= | 1,605 | Get untouched database field values | {
"login": "timlehr",
"id": 5310859,
"node_id": "MDQ6VXNlcjUzMTA4NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/5310859?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timlehr",
"html_url": "https://github.com/timlehr",
"followers_url": "https://api.github.com/users/timlehr/... | [] | closed | false | null | [] | null | [
"That is the purpose of `dirty_fields`. For your use-case I'd suggest putting an interface on-top of your model instance and routing accesses through that. In that way you can track changes."
] | 2018-05-14T21:17:06 | 2018-05-14T21:29:08 | 2018-05-14T21:29:08 | NONE | null | Hi Charles,
in Peewee 2 I was using the `prepared()` function to store the initial field values selected from the DB in a dictionary, so I could compare it with `__data__` at any time to determine if changes have been made. I know that the dirty field is supposed to offer this functionality, but using the dirty flag... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1605/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/1605/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1604 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1604/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1604/comments | https://api.github.com/repos/coleifer/peewee/issues/1604/events | https://github.com/coleifer/peewee/issues/1604 | 322,869,341 | MDU6SXNzdWUzMjI4NjkzNDE= | 1,604 | "KeyError: None" when using JOIN and aggregate_rows in 2.10.2 | {
"login": "eely22",
"id": 4094985,
"node_id": "MDQ6VXNlcjQwOTQ5ODU=",
"avatar_url": "https://avatars.githubusercontent.com/u/4094985?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eely22",
"html_url": "https://github.com/eely22",
"followers_url": "https://api.github.com/users/eely22/foll... | [] | closed | false | null | [] | null | [
"Peewee 3.x removed `aggregate_rows` because it was, in retrospect, a poorly-designed hack. The concept, roughly, was to produce a cartesian product of all the requested data and then de-duplicate it on the Python side. It's slow (because Python), expensive (because amount of bits being xferred) and buggy (because ... | 2018-05-14T15:33:22 | 2018-05-16T16:20:55 | 2018-05-16T16:20:55 | NONE | null | There is a case where using joins and aggregate_rows is causing uncaught exceptions. The example seems to be related to joining tables through a junction table, where there are two tables A and C and another B that joins the two together. B has two rows, both pointing to the same A. The two B records have one with a C ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1604/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/1604/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1603 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1603/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1603/comments | https://api.github.com/repos/coleifer/peewee/issues/1603/events | https://github.com/coleifer/peewee/issues/1603 | 322,192,087 | MDU6SXNzdWUzMjIxOTIwODc= | 1,603 | why not model.DoesNotExist inherite form Exception? | {
"login": "xvdy",
"id": 12590255,
"node_id": "MDQ6VXNlcjEyNTkwMjU1",
"avatar_url": "https://avatars.githubusercontent.com/u/12590255?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xvdy",
"html_url": "https://github.com/xvdy",
"followers_url": "https://api.github.com/users/xvdy/followers"... | [] | closed | false | null | [] | null | [
"`DoesNotExist` is not an instance but a class:\r\n\r\n```python\r\nisinstance(Model.DoesNotExist, Exception) -- False\r\nissubclass(Model.DoesNotExist, Exception) -- True\r\n```\r\n\r\nYou catch it like this:\r\n\r\n```python\r\ntry:\r\n obj = SomeModel.get(SomeModel.field == 'value')\r\nexcept SomeModel.DoesNo... | 2018-05-11T07:12:06 | 2018-05-11T15:34:10 | 2018-05-11T15:34:10 | NONE | null | ```
@asyncio.coroutine
def get(self, source_, *args, **kwargs):
"""Get the model instance.
:param source_: model or base query for lookup
Example::
async def my_async_func():
obj1 = await objects.get(MyModel, id=1)
obj2 = await ob... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1603/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/1603/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1602 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1602/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1602/comments | https://api.github.com/repos/coleifer/peewee/issues/1602/events | https://github.com/coleifer/peewee/issues/1602 | 321,744,944 | MDU6SXNzdWUzMjE3NDQ5NDQ= | 1,602 | Alias fields gets lost when doing union | {
"login": "kwellman",
"id": 279549,
"node_id": "MDQ6VXNlcjI3OTU0OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/279549?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kwellman",
"html_url": "https://github.com/kwellman",
"followers_url": "https://api.github.com/users/kwellma... | [] | closed | false | null | [] | null | [
"I added a test-case that I think is equivalent to your example. It is passing for me: 909b371123a73ea00b7db18bbdb870083286d603\r\n\r\nHere's the test-case code:\r\n\r\n```python\r\n def test_union_with_join(self):\r\n u1, u2 = [User.create(username='u%s' % i) for i in (1, 2)]\r\n for u, ts in ((u1... | 2018-05-09T22:15:28 | 2018-05-10T13:55:56 | 2018-05-10T00:11:13 | NONE | null | I wrote a little test to show my problem:
```python
from peewee import Model, SqliteDatabase, CharField, ForeignKeyField
database = SqliteDatabase(':memory:')
class BaseModel(Model):
class Meta:
database = database
class Tournament(BaseModel):
name = CharField()
class Result(BaseModel... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1602/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/1602/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1601 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1601/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1601/comments | https://api.github.com/repos/coleifer/peewee/issues/1601/events | https://github.com/coleifer/peewee/issues/1601 | 321,073,619 | MDU6SXNzdWUzMjEwNzM2MTk= | 1,601 | flask_utils fails to import if libsqlite3 or sqlite-devel is not installed | {
"login": "bmamouri",
"id": 6419173,
"node_id": "MDQ6VXNlcjY0MTkxNzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6419173?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bmamouri",
"html_url": "https://github.com/bmamouri",
"followers_url": "https://api.github.com/users/bmamo... | [] | closed | false | null | [] | null | [
"Oops, just realized the problem is already fixed in the [latest version](https://github.com/coleifer/peewee/blob/master/playhouse/sqlite_ext.py#L47).\r\n\r\nPlease close the issue. Thanks"
] | 2018-05-08T07:31:01 | 2018-05-08T07:35:36 | 2018-05-08T07:35:35 | NONE | null | Similar issue in the past: https://github.com/coleifer/peewee/issues/1218
I use PostgreSQL and my server does not have SQLite installed. When I want to import FlaskDB from flask_utils, I encounter the following issue:
```
File "/home/ubuntu/presentation/api/server.py", line 4, in <module>
from playhouse.f... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1601/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/1601/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1600 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1600/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1600/comments | https://api.github.com/repos/coleifer/peewee/issues/1600/events | https://github.com/coleifer/peewee/issues/1600 | 321,038,032 | MDU6SXNzdWUzMjEwMzgwMzI= | 1,600 | Request: forgetting to wrap comparisons in parentheses, or using the wrong operators should cause an error | {
"login": "robhawkins",
"id": 308934,
"node_id": "MDQ6VXNlcjMwODkzNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/308934?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/robhawkins",
"html_url": "https://github.com/robhawkins",
"followers_url": "https://api.github.com/users/r... | [] | closed | false | null | [] | null | [
"Sorry, there's not really any way to identify these kinds of mistakes. The documentation makes it abundantly clear that you're to use `&` and `|`, typically if you do make the mistake of using `and` and `or` you won't repeat it."
] | 2018-05-08T04:23:44 | 2018-05-08T13:35:31 | 2018-05-08T13:35:30 | NONE | null | Is it possible to throw an exception when someone writes a condition the wrong way in peewee?
I'm just getting to know this very useful tool. I used it for the first time a week ago, and then again today, and had forgotten to use `&` instead of `and` and also forgot to wrap the conditions in parentheses. This caus... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1600/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/1600/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1599 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1599/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1599/comments | https://api.github.com/repos/coleifer/peewee/issues/1599/events | https://github.com/coleifer/peewee/issues/1599 | 320,640,596 | MDU6SXNzdWUzMjA2NDA1OTY= | 1,599 | different select behavior between 3.3.4 and 3.2.2 | {
"login": "trim21",
"id": 13553903,
"node_id": "MDQ6VXNlcjEzNTUzOTAz",
"avatar_url": "https://avatars.githubusercontent.com/u/13553903?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/trim21",
"html_url": "https://github.com/trim21",
"followers_url": "https://api.github.com/users/trim21/fo... | [] | closed | false | null | [] | null | [
"I try many peewee versions, 3.2.4 is first version that return the values of table1 and 3.2.3 is the latest version that return the value of table2",
"The change that was introduced was to avoid overwriting values. You're selecting all columns on `Table1` (including it's status field), so it's expected that the ... | 2018-05-06T23:57:28 | 2018-05-07T01:15:05 | 2018-05-07T00:09:19 | NONE | null | I try some code like this
```python
# coding=utf-8
import peewee
from peewee import IntegerField, FixedCharField, TextField
db = peewee.SqliteDatabase('example.db')
class DB(peewee.Model):
class Meta:
database = db
class Table1(DB):
name = TextField(unique=True, null=False)
st... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1599/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/1599/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1598 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1598/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1598/comments | https://api.github.com/repos/coleifer/peewee/issues/1598/events | https://github.com/coleifer/peewee/issues/1598 | 320,602,850 | MDU6SXNzdWUzMjA2MDI4NTA= | 1,598 | auto primary key field | {
"login": "ra-esmith",
"id": 24212262,
"node_id": "MDQ6VXNlcjI0MjEyMjYy",
"avatar_url": "https://avatars.githubusercontent.com/u/24212262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ra-esmith",
"html_url": "https://github.com/ra-esmith",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"looks like the model.insert call is not making the primary key. i have not intentionally passed in a primary key, also possible the record coming in has null on the primary key already and you are not overwriting that? I am going to try .create instead of .insert",
"Peewee has a convention of using `id` for an... | 2018-05-06T15:37:16 | 2018-05-08T13:46:56 | 2018-05-08T13:45:01 | NONE | null | Using peewee 3.3.1 (just upgraded to 3.3.4).
Python
On ubuntu 16
"sometimes" I find a rather odd new error.
I have various classes which have foriegn keys etc, some have no primary key defined. Peewee defiens an auto increments the key on creation, or it has in the "past versions". However, I now find that... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1598/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/1598/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1597 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1597/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1597/comments | https://api.github.com/repos/coleifer/peewee/issues/1597/events | https://github.com/coleifer/peewee/issues/1597 | 320,486,879 | MDU6SXNzdWUzMjA0ODY4Nzk= | 1,597 | Peewee returns Decimal(), unsupported type. | {
"login": "mtairu",
"id": 4996264,
"node_id": "MDQ6VXNlcjQ5OTYyNjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4996264?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mtairu",
"html_url": "https://github.com/mtairu",
"followers_url": "https://api.github.com/users/mtairu/foll... | [] | closed | false | null | [] | null | [
"solved."
] | 2018-05-05T07:18:33 | 2018-05-05T11:51:23 | 2018-05-05T11:51:23 | NONE | null | Querying data from RDS, and peewee get the record succesfully however, when I loop through to get the value, it returns Decimal(), or corresponding type. I used peewee in my last project, and it did not return data like this.
```
records = market.select().limit(1)
return [r.volume for r in records]
results:
[D... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1597/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/1597/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1596 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1596/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1596/comments | https://api.github.com/repos/coleifer/peewee/issues/1596/events | https://github.com/coleifer/peewee/issues/1596 | 319,818,101 | MDU6SXNzdWUzMTk4MTgxMDE= | 1,596 | Syntax error while using db.execute_sql to get sqlite3 table schema | {
"login": "gzxultra",
"id": 10581586,
"node_id": "MDQ6VXNlcjEwNTgxNTg2",
"avatar_url": "https://avatars.githubusercontent.com/u/10581586?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gzxultra",
"html_url": "https://github.com/gzxultra",
"followers_url": "https://api.github.com/users/gzx... | [] | closed | false | null | [] | null | [
"Those \".\"-commands are only implemented in the sqlite shell. They're not part of the sql interface.",
"Check out the code in SqliteDatabase like get_tables, get_columns, etc if\nyou want to introspect the database. There's also the reflection module in\nplayhouse.reflection. Check the docs.\n\nOn Thu, May 3, 2... | 2018-05-03T07:48:53 | 2018-05-03T10:58:07 | 2018-05-03T10:56:10 | NONE | null | Problem:
I got a syntax error when using db.execute_sql to get sqlite3 table schema,
Reproduce:
```python
In [135]: db = SqliteDatabase('test.db')
...:
...:
...: class ExampleTable(Model):
...: class Meta:
...: table_name = 'test_table'
...: database = d... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1596/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/1596/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1595 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1595/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1595/comments | https://api.github.com/repos/coleifer/peewee/issues/1595/events | https://github.com/coleifer/peewee/pull/1595 | 319,747,172 | MDExOlB1bGxSZXF1ZXN0MTg1NTg3OTc0 | 1,595 | Add .execute() in examples with insert_many | {
"login": "rennerocha",
"id": 382887,
"node_id": "MDQ6VXNlcjM4Mjg4Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/382887?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rennerocha",
"html_url": "https://github.com/rennerocha",
"followers_url": "https://api.github.com/users/r... | [] | closed | false | null | [] | null | [
"Thank you, this is helpful."
] | 2018-05-02T23:39:12 | 2018-05-03T00:18:54 | 2018-05-03T00:18:48 | CONTRIBUTOR | null | If the code is executed without .execute(), the data will never be inserted. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1595/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/1595/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1595",
"html_url": "https://github.com/coleifer/peewee/pull/1595",
"diff_url": "https://github.com/coleifer/peewee/pull/1595.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1595.patch",
"merged_at": "2018-05-03T00:18:48"
} |
https://api.github.com/repos/coleifer/peewee/issues/1594 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1594/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1594/comments | https://api.github.com/repos/coleifer/peewee/issues/1594/events | https://github.com/coleifer/peewee/issues/1594 | 319,480,899 | MDU6SXNzdWUzMTk0ODA4OTk= | 1,594 | constraints of ForeignKeyField cause syntax error | {
"login": "elonzh",
"id": 8749411,
"node_id": "MDQ6VXNlcjg3NDk0MTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8749411?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elonzh",
"html_url": "https://github.com/elonzh",
"followers_url": "https://api.github.com/users/elonzh/foll... | [] | closed | false | null | [] | null | [
"peewee version: 3.2.2\r\ndatabase: mysql 5.6",
"i changed the sql to\r\n```sql\r\nCREATE TABLE IF NOT EXISTS `trial_books` (`id` INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY, `created_at` DATETIME NOT NULL, `updated_at` DATETIME NOT NULL, `book_id` INTEGER UNSIGNED NOT NULL, FOREIGN KEY (`\r\n ... | 2018-05-02T09:36:01 | 2018-05-02T14:47:04 | 2018-05-02T14:47:04 | NONE | null | I have some models based on the database which was created by sql.
here is ddl for the model `Book`:
```sql
create table fennec.user_books
(
id int unsigned auto_increment
primary key,
book_id int unsigned not null,
user_type smallint(5) unsigned not null,
user_id int not null,
stage smallint(5) unsign... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1594/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/1594/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1593 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1593/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1593/comments | https://api.github.com/repos/coleifer/peewee/issues/1593/events | https://github.com/coleifer/peewee/issues/1593 | 318,983,987 | MDU6SXNzdWUzMTg5ODM5ODc= | 1,593 | Model level constraint | {
"login": "bySabi",
"id": 6242574,
"node_id": "MDQ6VXNlcjYyNDI1NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/6242574?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bySabi",
"html_url": "https://github.com/bySabi",
"followers_url": "https://api.github.com/users/bySabi/foll... | [] | closed | false | null | [] | null | [
"Fields have `null=False` by default, or in other words, by default fields do not allow null values.",
"@coleifer thanks for take the time to answer Peewee beginners questions. You are doing a very good job here 👏\r\n\r\none more ... \r\n\r\nI create a SQLite db and a model with a DateField, say:\r\n```\r\nclass... | 2018-04-30T18:14:22 | 2018-05-01T15:04:20 | 2018-04-30T19:31:58 | NONE | null | A incomer here ...
I know the field constraints but I need `null=False` for all fields.
Can I set `null=False` by default for a Model, Is this possible?
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1593/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/1593/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1592 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1592/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1592/comments | https://api.github.com/repos/coleifer/peewee/issues/1592/events | https://github.com/coleifer/peewee/issues/1592 | 318,695,659 | MDU6SXNzdWUzMTg2OTU2NTk= | 1,592 | Missing things from Changes in 3.0 doc | {
"login": "tomako",
"id": 1412056,
"node_id": "MDQ6VXNlcjE0MTIwNTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/1412056?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tomako",
"html_url": "https://github.com/tomako",
"followers_url": "https://api.github.com/users/tomako/foll... | [] | closed | false | null | [] | null | [
"Thanks for reporting, should be fixed.",
"I added the following methods to select queries:\r\n\r\n* `union_all()`\r\n* `union()`\r\n* `intersect()`\r\n* `except_()`"
] | 2018-04-29T07:08:20 | 2018-04-29T19:08:35 | 2018-04-29T19:08:10 | NONE | null | I've just moved a project to the latest version and found few shortcomings that I think are missing from the list of changes. I've checked also the release notes but neither found there. Anyway they might be useful for others.
- Database class init parameter `fields` (for adding custom fields) has been renamed to `f... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1592/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/1592/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1591 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1591/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1591/comments | https://api.github.com/repos/coleifer/peewee/issues/1591/events | https://github.com/coleifer/peewee/issues/1591 | 318,591,837 | MDU6SXNzdWUzMTg1OTE4Mzc= | 1,591 | Feature: get_unique_row | {
"login": "yanghg-basefx",
"id": 29534214,
"node_id": "MDQ6VXNlcjI5NTM0MjE0",
"avatar_url": "https://avatars.githubusercontent.com/u/29534214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yanghg-basefx",
"html_url": "https://github.com/yanghg-basefx",
"followers_url": "https://api.githu... | [] | closed | false | null | [] | null | [
"Given how easy it is to add this to your own base model class, I'm going to pass on adding similar functionality to peewee. As you noted, the proper way to guarantee uniqueness is to have a unique constraint.\r\n\r\n```python\r\n@classmethod\r\ndef get_unique_row(cls, *expr):\r\n query = cls.select().where(*exp... | 2018-04-28T02:21:55 | 2018-05-02T00:35:23 | 2018-04-29T19:11:56 | NONE | null | Consider: If one database can't have an unique index, but some queries must get a unique record, what should we do?
So I implement this method in SelectQuery (peewee 2.8.1):
```python
def get_unique_row(self):
clone = self.paginate(1, 2)
qrw = clone.execute()
try:
row = next(qrw)
exc... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1591/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/1591/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1590 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1590/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1590/comments | https://api.github.com/repos/coleifer/peewee/issues/1590/events | https://github.com/coleifer/peewee/pull/1590 | 318,315,732 | MDExOlB1bGxSZXF1ZXN0MTg0NTUxOTA5 | 1,590 | Fix issue with sort_models and DeferredForeignKey | {
"login": "sanjredfield",
"id": 5788651,
"node_id": "MDQ6VXNlcjU3ODg2NTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/5788651?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sanjredfield",
"html_url": "https://github.com/sanjredfield",
"followers_url": "https://api.github.com... | [] | closed | false | null | [] | null | [
"Thank you, I've submitted an equivalent cleaned-up patch with a test-case: d92036e7602f29c5ce4dae4ff2ffd09c28fab218",
"Thanks very much, I'll be sure to include a test case if I submit another PR in the future."
] | 2018-04-27T08:08:01 | 2018-04-29T19:12:20 | 2018-04-29T19:12:20 | NONE | null | I found an issue when using DeferredForeignKey and create_tables. The easiest way to duplicate the issue is to make a small modification to [this](http://docs.peewee-orm.com/en/latest/peewee/models.html#circular-foreign-key-dependencies) example from the peewee docs.
Here is the original example, which works fine. ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1590/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/1590/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1590",
"html_url": "https://github.com/coleifer/peewee/pull/1590",
"diff_url": "https://github.com/coleifer/peewee/pull/1590.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1590.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1589 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1589/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1589/comments | https://api.github.com/repos/coleifer/peewee/issues/1589/events | https://github.com/coleifer/peewee/issues/1589 | 318,263,724 | MDU6SXNzdWUzMTgyNjM3MjQ= | 1,589 | Database.cursor parameter documentation and consistency. | {
"login": "diekhans",
"id": 110053,
"node_id": "MDQ6VXNlcjExMDA1Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/110053?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/diekhans",
"html_url": "https://github.com/diekhans",
"followers_url": "https://api.github.com/users/diekhan... | [] | closed | false | null | [] | null | [
"Thanks, I've updated the method signature for `PostgresqlExtDatabase` and mentioned in the docs that the parameter is internal-use-only. fbb4ded7000d5163344c67236fee7a1fae38991c"
] | 2018-04-27T03:12:50 | 2018-04-27T13:38:33 | 2018-04-27T13:38:33 | NONE | null | peewee-3.3.1
http://docs.peewee-orm.com/en/latest/peewee/api.html#Database.cursor
Indicates that Database.currsor(commit=None ) has cursor as an optional an parameter. However, It does not define what this parameter does.
playhouse.postgres_ext.PostgresqlExtDatabase.cursor(commit) has the commit parameter as... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1589/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/1589/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1588 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1588/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1588/comments | https://api.github.com/repos/coleifer/peewee/issues/1588/events | https://github.com/coleifer/peewee/pull/1588 | 317,986,759 | MDExOlB1bGxSZXF1ZXN0MTg0MzA4Mzgy | 1,588 | 'Metadata' object has no attribute 'model_ref' | {
"login": "klen",
"id": 90699,
"node_id": "MDQ6VXNlcjkwNjk5",
"avatar_url": "https://avatars.githubusercontent.com/u/90699?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/klen",
"html_url": "https://github.com/klen",
"followers_url": "https://api.github.com/users/klen/followers",
"follo... | [] | closed | false | null | [] | null | [
"Thank you!"
] | 2018-04-26T11:25:59 | 2018-04-26T12:04:25 | 2018-04-26T12:04:17 | CONTRIBUTOR | null | Fixed mistype in Metadata class. It breaks migrations for now. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1588/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/1588/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1588",
"html_url": "https://github.com/coleifer/peewee/pull/1588",
"diff_url": "https://github.com/coleifer/peewee/pull/1588.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1588.patch",
"merged_at": "2018-04-26T12:04:17"
} |
https://api.github.com/repos/coleifer/peewee/issues/1587 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1587/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1587/comments | https://api.github.com/repos/coleifer/peewee/issues/1587/events | https://github.com/coleifer/peewee/issues/1587 | 317,742,146 | MDU6SXNzdWUzMTc3NDIxNDY= | 1,587 | Preserving column names without needing Pythonic attribute names convention | {
"login": "ketozhang",
"id": 13506487,
"node_id": "MDQ6VXNlcjEzNTA2NDg3",
"avatar_url": "https://avatars.githubusercontent.com/u/13506487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ketozhang",
"html_url": "https://github.com/ketozhang",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Columns are exposed as attributes on model classes. As such, they must be valid Python identifiers. Peewee makes allowances for the weird types of column-names you might see by allowing you to specify the `column_name` parameter when defining your field, as you have done in your example model definition.\r\n\r\nAs... | 2018-04-25T18:25:21 | 2018-04-25T19:24:29 | 2018-04-25T18:53:13 | NONE | null | I understand that peewee requires storing every column as a the attribute of the Model instance. @coleifer once told me that `column_name` only preserves SQL column_name however it is impossible to access the column in the Model instance:
> In this way, the actual underlying column-name is still preserved and used,... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1587/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/1587/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1586 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1586/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1586/comments | https://api.github.com/repos/coleifer/peewee/issues/1586/events | https://github.com/coleifer/peewee/issues/1586 | 317,143,033 | MDU6SXNzdWUzMTcxNDMwMzM= | 1,586 | [attention] DATABASE_URL issue | {
"login": "ak4nv",
"id": 73960,
"node_id": "MDQ6VXNlcjczOTYw",
"avatar_url": "https://avatars.githubusercontent.com/u/73960?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ak4nv",
"html_url": "https://github.com/ak4nv",
"followers_url": "https://api.github.com/users/ak4nv/followers",
"f... | [] | closed | false | null | [] | null | [
"Ew interesting I wonder if that's been reported to python, since it's in the urllib.parse module.",
"https://bugs.python.org/issue18140"
] | 2018-04-24T09:27:49 | 2018-04-24T15:21:32 | 2018-04-24T15:21:32 | NONE | null | If you like using DATABASE_URL, just keep in mind that your password should not contain a "?" character.
```shell
>>> from urllib.parse import urlparse
>>> urlparse('postgres://login:p?assword@localhost:5432/db')
ParseResult(scheme='postgres', netloc='login:p', path='', params='', query='assword@localhost:5432/db',... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1586/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/1586/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1585 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1585/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1585/comments | https://api.github.com/repos/coleifer/peewee/issues/1585/events | https://github.com/coleifer/peewee/issues/1585 | 316,289,691 | MDU6SXNzdWUzMTYyODk2OTE= | 1,585 | Each object be an singleton though the entire application | {
"login": "GabrielSalla",
"id": 15304514,
"node_id": "MDQ6VXNlcjE1MzA0NTE0",
"avatar_url": "https://avatars.githubusercontent.com/u/15304514?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GabrielSalla",
"html_url": "https://github.com/GabrielSalla",
"followers_url": "https://api.github.c... | [] | closed | false | null | [] | null | [
"So, SQLAlchemy uses an identity-map to do this kind of thing. Which brings a lot of other logic into the equation, such as the concept of session/object lifetimes, aggregating changes during commit, etc.\r\n\r\nPeewee, on the other hand, is an active-record ORM. Objects are containers for row data rather than cano... | 2018-04-20T14:27:24 | 2018-04-20T15:28:36 | 2018-04-20T15:28:36 | NONE | null | SQLAlchemy has a neat feature where everytime an object of a model is instantiated, if this instance already existed, it would return the same object it already had (exactly). As an example, if you select objects from the database twice, both answers would be the same, including the `id()` of the objects.
It's a rea... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1585/reactions",
"total_count": 9,
"+1": 4,
"-1": 0,
"laugh": 0,
"hooray": 2,
"confused": 0,
"heart": 3,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1585/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1584 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1584/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1584/comments | https://api.github.com/repos/coleifer/peewee/issues/1584/events | https://github.com/coleifer/peewee/issues/1584 | 316,052,026 | MDU6SXNzdWUzMTYwNTIwMjY= | 1,584 | Window function for MySQL | {
"login": "victators",
"id": 5924717,
"node_id": "MDQ6VXNlcjU5MjQ3MTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/5924717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/victators",
"html_url": "https://github.com/victators",
"followers_url": "https://api.github.com/users/vi... | [] | closed | false | null | [] | null | [
"> Are the window function queries supported for MySQL databases?\r\n\r\nI'm not sure, although they are supported with integration tests for Postgresql.",
"You might try this for now:\r\n\r\n```python\r\nw = Window(partition_by=[PROJECT.date])\r\nquery = (aap\r\n .select(aap.date, aap.animal, aap.value, ... | 2018-04-19T21:44:30 | 2018-04-19T22:05:01 | 2018-04-19T21:58:32 | NONE | null | Are the window function queries supported for MySQL databases? I tried running the following and I get a ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(PARTITION BY `t1`.`date`) AS `avg` FROM `PROJECT` A... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1584/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/1584/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1583 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1583/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1583/comments | https://api.github.com/repos/coleifer/peewee/issues/1583/events | https://github.com/coleifer/peewee/issues/1583 | 315,967,045 | MDU6SXNzdWUzMTU5NjcwNDU= | 1,583 | Data Class query result | {
"login": "hugo-pires",
"id": 7768784,
"node_id": "MDQ6VXNlcjc3Njg3ODQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/7768784?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hugo-pires",
"html_url": "https://github.com/hugo-pires",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"You mean the 3.7 data-classes? Sure...just provide your own constructor function and call .objects(), e.g.:\r\n\r\n```python\r\ndef make_data_class(data_dict):\r\n # do whatever.\r\n return DataClass(**data_dict)\r\n\r\nfor data_class_obj in some_query.objects(make_data_class):\r\n ...\r\n```",
"Thank y... | 2018-04-19T17:17:46 | 2018-04-19T20:19:48 | 2018-04-19T17:23:58 | NONE | null | Hello
Is it possible the get the query results as a Data Class instance?
Thank you | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1583/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/1583/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1582 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1582/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1582/comments | https://api.github.com/repos/coleifer/peewee/issues/1582/events | https://github.com/coleifer/peewee/issues/1582 | 315,899,311 | MDU6SXNzdWUzMTU4OTkzMTE= | 1,582 | timestamp auto update | {
"login": "1xinghuan",
"id": 33982538,
"node_id": "MDQ6VXNlcjMzOTgyNTM4",
"avatar_url": "https://avatars.githubusercontent.com/u/33982538?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/1xinghuan",
"html_url": "https://github.com/1xinghuan",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Sure, with the caveat that the new value will not be available to your code unless you explicitly re-fetch the new value.\r\n\r\n```python\r\nclass TimestampTest(Model):\r\n name = CharField(max_length=20)\r\n create_time = DateTimeField(constraints=[SQL('DEFAULT CURRENT_TIMESTAMP')])\r\n last_modify_time... | 2018-04-19T14:19:56 | 2018-04-19T15:29:04 | 2018-04-19T14:47:31 | NONE | null | Can peewee support auto update time when modify data? Like in MySql, it can use "ON UPDATE CURRENT_TIMESTAMP":
```
CREATE TABLE `timestampTest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) DEFAULT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_modify_time` timestamp NOT NULL... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1582/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/1582/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1581 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1581/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1581/comments | https://api.github.com/repos/coleifer/peewee/issues/1581/events | https://github.com/coleifer/peewee/issues/1581 | 315,885,531 | MDU6SXNzdWUzMTU4ODU1MzE= | 1,581 | Date storage and converstion | {
"login": "biskit",
"id": 1078732,
"node_id": "MDQ6VXNlcjEwNzg3MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1078732?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/biskit",
"html_url": "https://github.com/biskit",
"followers_url": "https://api.github.com/users/biskit/foll... | [] | closed | false | null | [] | null | [
"That format is no good because it doesn't sort lexicographically. Sqlite doesn't have a dedicate date/time data-type. You'll want to convert those to YYYY-mm-ddTHH:MM:SS so they sort correctly.\r\n\r\nPeewee *can* read values like that if you specify the strptime format, however comparisons like the one in your ex... | 2018-04-19T13:47:11 | 2018-04-19T14:44:07 | 2018-04-19T14:44:07 | NONE | null | I have a date coming in like this '04/20/2018 7:52 PM'. It's stored in a DateTimeField column as is. So any comparison against datetime.now() fails (typically > some datetime). | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1581/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/1581/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1580 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1580/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1580/comments | https://api.github.com/repos/coleifer/peewee/issues/1580/events | https://github.com/coleifer/peewee/issues/1580 | 315,793,587 | MDU6SXNzdWUzMTU3OTM1ODc= | 1,580 | Problem importing ManyToManyField from playhouse.fields in pipenv | {
"login": "philippnkling",
"id": 13765363,
"node_id": "MDQ6VXNlcjEzNzY1MzYz",
"avatar_url": "https://avatars.githubusercontent.com/u/13765363?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/philippnkling",
"html_url": "https://github.com/philippnkling",
"followers_url": "https://api.githu... | [] | closed | false | null | [] | null | [
"Sounds like `pipenv` has an old version of peewee on your computer.\r\n\r\nIn peewee 3.x `ManyToManyField` has moved into `peewee`, so:\r\n\r\n```python\r\n# 3.x\r\nfrom peewee import ManyToManyField\r\n```\r\n\r\nI'm not familiar with `pipenv` but it sounds like it's using an older version of peewee on your compu... | 2018-04-19T09:17:55 | 2018-04-23T07:30:10 | 2018-04-19T14:45:26 | NONE | null | Hey,
recently I am having the problem of being unable to import the ManyToManyField from playhouse.fields on an Ubuntu server where I am using pipenv to manage packages and run python. Namely the command
`from playhouse.fields import ManyToManyField`
will lead to the error:
`ImportError: cannot import name ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1580/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/1580/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1579 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1579/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1579/comments | https://api.github.com/repos/coleifer/peewee/issues/1579/events | https://github.com/coleifer/peewee/issues/1579 | 315,581,344 | MDU6SXNzdWUzMTU1ODEzNDQ= | 1,579 | Issue with union queries for models with similar columns | {
"login": "bison",
"id": 240676,
"node_id": "MDQ6VXNlcjI0MDY3Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/240676?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bison",
"html_url": "https://github.com/bison",
"followers_url": "https://api.github.com/users/bison/followers"... | [] | closed | false | null | [] | null | [
"I wouldn't say you're doing anything wrong. What's happening is the result-rows from the cursor look like:\r\n\r\n```sql\r\nselect t1.id, t1.user_id, t1.content, t2.id, t2.username \r\nfrom tweet as t1 \r\ninner join users as t2 on (t1.user_id=t2.id) \r\nwhere t2.id = 1 \r\nunion \r\nselect t3.id, t3.user_id, t3.c... | 2018-04-18T17:54:29 | 2018-04-19T14:45:35 | 2018-04-19T14:45:35 | NONE | null | When I union two queries that are selecting multiple models, the IDs seem to be confused (actually any column with the same name):
```python
query = Tweet.select(Tweet, User).join(User).where(User.id == 1)
query2 = Tweet.select(Tweet, User).join(User)
union = query | query2
for t in union:
print(t.id)
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1579/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/1579/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1578 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1578/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1578/comments | https://api.github.com/repos/coleifer/peewee/issues/1578/events | https://github.com/coleifer/peewee/issues/1578 | 315,473,483 | MDU6SXNzdWUzMTU0NzM0ODM= | 1,578 | Move playhouse module as a submodule on peewee? | {
"login": "vadimkantorov",
"id": 1041752,
"node_id": "MDQ6VXNlcjEwNDE3NTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1041752?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vadimkantorov",
"html_url": "https://github.com/vadimkantorov",
"followers_url": "https://api.github.... | [] | closed | false | null | [] | null | [
"This is simply how peewee is organized. Peewee is a standalone python module and all extras/extensions are included in a separate namespace.",
"I see your point. My suggestion was to move naming in the direction of making `playhouse` module name more related to peewee. A middle ground may be `peweeplayhouse`?",
... | 2018-04-18T13:12:33 | 2018-04-18T14:39:36 | 2018-04-18T13:46:47 | NONE | null | Finding in source code something like `import playhouse.shortcuts` is not very specific or self-explaining IMO.
A big leap would be moving at least some functions like `model_to_dict` / `dict_to_model` to stock peewee, but even making them `peewee.playhouse.model_to_dict` would be more discoverable.
Thanks for a ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1578/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/1578/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1577 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1577/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1577/comments | https://api.github.com/repos/coleifer/peewee/issues/1577/events | https://github.com/coleifer/peewee/issues/1577 | 315,302,680 | MDU6SXNzdWUzMTUzMDI2ODA= | 1,577 | Column name conflict | {
"login": "biskit",
"id": 1078732,
"node_id": "MDQ6VXNlcjEwNzg3MzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1078732?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/biskit",
"html_url": "https://github.com/biskit",
"followers_url": "https://api.github.com/users/biskit/foll... | [] | closed | false | null | [] | null | [
"Right, so you named a column the same as a classmethod.\r\n\r\nThe workaround here is to:\r\n\r\n```python\r\nclass Foo(Model):\r\n update = TimestampField() # uh-oh.\r\n\r\n# do this instead:\r\nclass Foo(Model):\r\n update_ = TimestampField(column_name='update') # added \"_\" to avoid name conflict.\r\n`... | 2018-04-18T02:04:50 | 2018-04-18T02:22:52 | 2018-04-18T02:14:54 | NONE | null | This one left me scratching my head till trial and error found it.
1. Create a table with a column name 'update' - OK
2. Create a record - OK
2. Query a record - OK
3. Update a record - Not OK. Messages are extremely confusing from 'TypeError: 'str' object is not callable' to 'TypeError: 'unicode' object is not c... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1577/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/1577/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1576 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1576/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1576/comments | https://api.github.com/repos/coleifer/peewee/issues/1576/events | https://github.com/coleifer/peewee/issues/1576 | 315,109,828 | MDU6SXNzdWUzMTUxMDk4Mjg= | 1,576 | Joins are shared after clone | {
"login": "bison",
"id": 240676,
"node_id": "MDQ6VXNlcjI0MDY3Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/240676?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bison",
"html_url": "https://github.com/bison",
"followers_url": "https://api.github.com/users/bison/followers"... | [] | closed | false | null | [] | null | [
"Some quick testing revealed a bug in the cloning of the from-list and the join dictionaries. Pushed a fix.",
"For what it's worthy, queries should be immutable -- so no need to call clone():\r\n\r\n```python\r\nquery = Tweet.select()\r\nnew_query = query.join(User)\r\n# query -> select * from tweet\r\n# new_quer... | 2018-04-17T15:21:16 | 2018-04-17T19:15:31 | 2018-04-17T16:34:58 | NONE | null | On latest 3.x release (haven't tested others), the list of joins appears to be shared between queries after calling clone:
```python
query = Tweet.select()
new_query = query.clone()
new_query.join(User)
print(query.sql())
print(new_query.sql())
```
Outputs:
```
('SELECT "t1"."id", "t1"."user_id", "t1"."te... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1576/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/1576/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1575 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1575/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1575/comments | https://api.github.com/repos/coleifer/peewee/issues/1575/events | https://github.com/coleifer/peewee/issues/1575 | 315,061,743 | MDU6SXNzdWUzMTUwNjE3NDM= | 1,575 | Can ManyToManyField support "self" | {
"login": "1xinghuan",
"id": 33982538,
"node_id": "MDQ6VXNlcjMzOTgyNTM4",
"avatar_url": "https://avatars.githubusercontent.com/u/33982538?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/1xinghuan",
"html_url": "https://github.com/1xinghuan",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"You're _much_ better off just doing this:\r\n\r\n```python\r\n\r\nclass User(ModelBase):\r\n name = CharField()\r\n class Meta:\r\n table_name = 'users'\r\n\r\nclass Relationship(ModelBase):\r\n from_user = ForeignKeyField(User, backref='following')\r\n to_user = ForeignKeyField(User, backref='f... | 2018-04-17T13:32:47 | 2018-04-17T13:44:26 | 2018-04-17T13:44:13 | NONE | null | Is that possible to use ManyToManyField in such way:
```
class User(ModelBase):
name = CharField(column_name='NAME', null=False)
followers = ManyToManyField("self", backref="following")
class Meta:
db_table = 'users'
```
Then it can create a table like "user_user_through" | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1575/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/1575/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1574 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1574/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1574/comments | https://api.github.com/repos/coleifer/peewee/issues/1574/events | https://github.com/coleifer/peewee/issues/1574 | 314,604,714 | MDU6SXNzdWUzMTQ2MDQ3MTQ= | 1,574 | ArrayField equals queries | {
"login": "tuukkamustonen",
"id": 94327,
"node_id": "MDQ6VXNlcjk0MzI3",
"avatar_url": "https://avatars.githubusercontent.com/u/94327?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tuukkamustonen",
"html_url": "https://github.com/tuukkamustonen",
"followers_url": "https://api.github.com/u... | [] | closed | false | null | [] | null | [
"You might try using `Param` or `Passthrough` around your list, e.g.\r\n\r\n```python\r\n.where(MyModel.field == Passthrough(['element', 'another']))\r\n```",
"In peewee 3.x, for what it's worth, it's not necessary to use a wrapper around the value, you can express the equality as you'd expect:\r\n\r\n```python\r... | 2018-04-16T11:11:47 | 2018-04-16T20:42:16 | 2018-04-16T18:36:58 | NONE | null | How do you query [ArrayField](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#ArrayField) for equal list comparison like:
```sql
... WHERE field = ARRAY['element', 'another'];
```
`.where(MyModel.field == ['element', 'another'])` produces:
```sql
WHERE (\"field\" = (ARRAY['e', 'l', 'e', 'm', 'e',... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1574/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/1574/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1573 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1573/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1573/comments | https://api.github.com/repos/coleifer/peewee/issues/1573/events | https://github.com/coleifer/peewee/issues/1573 | 314,547,718 | MDU6SXNzdWUzMTQ1NDc3MTg= | 1,573 | UnboundLocalError: local variable 'constructor' referenced before assignment | {
"login": "raphael0202",
"id": 9609923,
"node_id": "MDQ6VXNlcjk2MDk5MjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/9609923?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raphael0202",
"html_url": "https://github.com/raphael0202",
"followers_url": "https://api.github.com/us... | [] | closed | false | null | [] | null | [
"When calling `switch()` you need to pass the model you are switching the context to. The error message is not very helpful, but you should change your code in this manner:\r\n\r\n```python\r\n.join(User).switch(PlatformBridge).join(Bot)\r\n```",
"I've also amended the implementation of `switch()` so that when ca... | 2018-04-16T08:27:56 | 2018-04-16T15:26:49 | 2018-04-16T13:32:16 | NONE | null | This error occurs on Peewee 3.1.1, after an upgrade from Peewee 2.9.3.
Here is quick script that reproduces the error:
```import peewee
class Bot(BaseModel):
name = peewee.CharField(max_length=30, index=True)
class User(BaseModel):
original_id = peewee.CharField(max_length=50, null=True)
class Pl... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1573/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/1573/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1572 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1572/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1572/comments | https://api.github.com/repos/coleifer/peewee/issues/1572/events | https://github.com/coleifer/peewee/issues/1572 | 314,426,290 | MDU6SXNzdWUzMTQ0MjYyOTA= | 1,572 | Duplicate AS clause in SQL when aliasing a function call | {
"login": "Terrance",
"id": 4025899,
"node_id": "MDQ6VXNlcjQwMjU4OTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/4025899?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Terrance",
"html_url": "https://github.com/Terrance",
"followers_url": "https://api.github.com/users/Terra... | [] | closed | false | null | [] | null | [
"Thanks for reporting, I'll take a look.",
"Fixed, thanks.",
"Works great, thanks for the quick response! 🙂"
] | 2018-04-15T15:41:50 | 2018-04-16T07:20:04 | 2018-04-16T02:42:14 | NONE | null | I have two tables -- `User`, and `Data` which references users. When querying, I add a property on the user result for whether any data rows reference that user (in reality there's other metadata attached here too):
```python
class User(Model):
...
@classmethod
def select_context(cls):
retu... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1572/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/1572/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1571 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1571/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1571/comments | https://api.github.com/repos/coleifer/peewee/issues/1571/events | https://github.com/coleifer/peewee/issues/1571 | 314,098,488 | MDU6SXNzdWUzMTQwOTg0ODg= | 1,571 | Compare dates | {
"login": "loukash",
"id": 2196038,
"node_id": "MDQ6VXNlcjIxOTYwMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2196038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/loukash",
"html_url": "https://github.com/loukash",
"followers_url": "https://api.github.com/users/loukash/... | [] | closed | false | null | [] | null | [
"Fix problem_1\r\n```\r\n\t@hybrid_method\r\n\tdef is_valid(self):\r\n\t\treturn (self.not_after > datetime.now()) & (self.not_before < datetime.now())\r\n```\r\n`Cert.select().where(Cert.is_valid() == True)`",
"Here is perhaps a cleaner way of implementing `is_valid()`:\r\n\r\n```python\r\n\r\n @hybrid_proper... | 2018-04-13T13:01:49 | 2018-04-13T14:15:24 | 2018-04-13T14:15:24 | NONE | null | My model:
```
class Cert(db.Model):
not_before = DateTimeField();
not_after = DateTimeField();
@hybrid_property
def is_valid(self):
return True if (self.not_after > datetime.now()) and (self.not_before <= datetime.now()) else False
@hybrid_property
def valid_for(self):
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1571/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/1571/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1570 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1570/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1570/comments | https://api.github.com/repos/coleifer/peewee/issues/1570/events | https://github.com/coleifer/peewee/issues/1570 | 313,955,660 | MDU6SXNzdWUzMTM5NTU2NjA= | 1,570 | "return_id_list" should be mentioned in 3.0 backwards-incompatible changes. | {
"login": "aniketpanjwani",
"id": 16311215,
"node_id": "MDQ6VXNlcjE2MzExMjE1",
"avatar_url": "https://avatars.githubusercontent.com/u/16311215?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aniketpanjwani",
"html_url": "https://github.com/aniketpanjwani",
"followers_url": "https://api.gi... | [] | closed | false | null | [] | null | [
"Ahh, you're right, sorry I missed that. I can add it."
] | 2018-04-13T03:15:07 | 2018-04-13T03:59:59 | 2018-04-13T03:59:59 | NONE | null | In 2.x, there was a "return_id_list" method for Postgresql by which you could get back the new ids created through "insert_many". It appears that this has been replaced with a more general "returning" method.
However, neither change is documented in the "Changes in 3.0" page. Happy to make a PR myself, but I just wa... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1570/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/1570/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1569 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1569/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1569/comments | https://api.github.com/repos/coleifer/peewee/issues/1569/events | https://github.com/coleifer/peewee/issues/1569 | 313,951,554 | MDU6SXNzdWUzMTM5NTE1NTQ= | 1,569 | ImproperlyConfigured: MySQL driver not installed! | {
"login": "MatthewKosloski",
"id": 1219553,
"node_id": "MDQ6VXNlcjEyMTk1NTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1219553?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MatthewKosloski",
"html_url": "https://github.com/MatthewKosloski",
"followers_url": "https://api.g... | [] | closed | false | null | [] | null | [
"Peewee will work with `pymysql` or `mysql-python`. It sounds like you have an issue with your module-import path. This is not an issue with Peewee -- I'd suggest trying StackOverflow.",
"`mysqlclient` is recommend",
"So for mysql:\r\n\r\n* [pymysql](https://github.com/PyMySQL/PyMySQL) is a pure-python mysql cl... | 2018-04-13T02:47:04 | 2020-11-09T03:28:17 | 2018-04-13T03:16:35 | NONE | null | Hey, guys. I'm trying to connect to my remote MySQL database using Peewee, but I am getting the following error (in a virtual environment):
```
Traceback (most recent call last):
File "peewee_test.py", line 2, in <module>
from student import Student
File "/Users/Matthew/Desktop/python-mvc/student.py", l... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1569/reactions",
"total_count": 4,
"+1": 4,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1569/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1568 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1568/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1568/comments | https://api.github.com/repos/coleifer/peewee/issues/1568/events | https://github.com/coleifer/peewee/issues/1568 | 313,757,916 | MDU6SXNzdWUzMTM3NTc5MTY= | 1,568 | migration: Default value is set to non-unique value with add_column even if field needs uniqueness | {
"login": "ccosby",
"id": 194775,
"node_id": "MDQ6VXNlcjE5NDc3NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/194775?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ccosby",
"html_url": "https://github.com/ccosby",
"followers_url": "https://api.github.com/users/ccosby/follow... | [] | closed | false | null | [] | null | [
"Interesting... so what you're running into is -- you'd like to add a new, non-nullable, unique field with a dynamic default. The migrator's `apply_default()` helper is implemented such that, if the field's default is callable, it is only called once:\r\n\r\n```python\r\n def apply_default(self, table, column_na... | 2018-04-12T14:42:14 | 2020-05-05T07:06:05 | 2018-04-12T16:10:49 | NONE | null | https://github.com/coleifer/peewee/blob/449450d738a8c8f2893e5309d03d03bc249e9d7e/playhouse/migrate.py#L273
This is the migrate() equivalent of https://github.com/coleifer/peewee/issues/429
When using playhouse.migrate.SchemaMigrator.add_column() with field.default set to a callable and field.unique=True, more wor... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1568/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1568/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1567 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1567/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1567/comments | https://api.github.com/repos/coleifer/peewee/issues/1567/events | https://github.com/coleifer/peewee/issues/1567 | 313,562,518 | MDU6SXNzdWUzMTM1NjI1MTg= | 1,567 | PooledDatabase's reuse_if_open setting is not working | {
"login": "axiaoxin",
"id": 2876405,
"node_id": "MDQ6VXNlcjI4NzY0MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2876405?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/axiaoxin",
"html_url": "https://github.com/axiaoxin",
"followers_url": "https://api.github.com/users/axiao... | [] | closed | false | null | [] | null | [
"And the usage of \r\n \r\n with db:\r\n do_some_query()\r\n\r\nstill raise the MySQL gone away error",
"f0a6f11aea19089af34befed2dab886706e1593a",
"\r\nWhy the super class of PooledDatabase is object? there is no connect function. dose the super class is Database? ",
"`PooledDatabase` is used in... | 2018-04-12T03:17:48 | 2018-04-12T12:48:28 | 2018-04-12T04:21:15 | NONE | null | https://github.com/coleifer/peewee/blob/master/playhouse/pool.py#L122
the reuse_if_open params is no used | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1567/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/1567/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1566 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1566/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1566/comments | https://api.github.com/repos/coleifer/peewee/issues/1566/events | https://github.com/coleifer/peewee/issues/1566 | 313,516,108 | MDU6SXNzdWUzMTM1MTYxMDg= | 1,566 | Migration leaves out foreign key constraint | {
"login": "csytan",
"id": 16357,
"node_id": "MDQ6VXNlcjE2MzU3",
"avatar_url": "https://avatars.githubusercontent.com/u/16357?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/csytan",
"html_url": "https://github.com/csytan",
"followers_url": "https://api.github.com/users/csytan/followers",
... | [] | closed | false | null | [] | null | [
"As far as I know sqlite doesn't support adding constraints. Can you try executing the equivalent alter table query and see what happens?",
"Sure thing. It looks like `ALTER TABLE` works with the `ON DELETE` clause:\r\n\r\n```\r\n~/dev$ sqlite3 testdb\r\nSQLite version 3.19.3 2017-06-27 16:48:08\r\nEnter \".help\... | 2018-04-11T22:58:16 | 2018-04-12T16:33:45 | 2018-04-12T14:41:24 | NONE | null | When adding a foreign key column using `playhouse.migrate`, the foreign key constraint is missing from the updated table schema. Here's some test code:
## 1. Create a test table with a working foreign key
```
# Using peewee==3.2.2
import peewee
from playhouse import migrate
database = peewee.SqliteDatabase(... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1566/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/1566/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1565 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1565/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1565/comments | https://api.github.com/repos/coleifer/peewee/issues/1565/events | https://github.com/coleifer/peewee/issues/1565 | 312,575,702 | MDU6SXNzdWUzMTI1NzU3MDI= | 1,565 | Model.create() option to skip saving immediately | {
"login": "vadimkantorov",
"id": 1041752,
"node_id": "MDQ6VXNlcjEwNDE3NTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1041752?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vadimkantorov",
"html_url": "https://github.com/vadimkantorov",
"followers_url": "https://api.github.... | [] | closed | false | null | [] | null | [
"Well... you can wrap your operations in a transaction, using `atomic()`. `atomic()` is a context-manager or decorator, but if you want to use it in the above middleware-type API, you should be able to:\r\n\r\n```python\r\n\r\nclass TransactionPerRequest(object):\r\n def process_request(self, req, resp):\r\n ... | 2018-04-09T15:23:20 | 2018-04-11T19:58:26 | 2018-04-11T19:58:25 | NONE | null | From what I can see in the source code, there is no option to postpone saving:
https://github.com/coleifer/peewee/blob/master/peewee.py#L5160
How do I postpone saving? I wish to do some object modification and having a single db request would be more economical.
Should I wrap the `create` call in `db.atomic()`? ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1565/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/1565/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1564 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1564/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1564/comments | https://api.github.com/repos/coleifer/peewee/issues/1564/events | https://github.com/coleifer/peewee/issues/1564 | 312,122,863 | MDU6SXNzdWUzMTIxMjI4NjM= | 1,564 | Convenient way to select random records from union | {
"login": "vegeta1k95",
"id": 32207817,
"node_id": "MDQ6VXNlcjMyMjA3ODE3",
"avatar_url": "https://avatars.githubusercontent.com/u/32207817?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vegeta1k95",
"html_url": "https://github.com/vegeta1k95",
"followers_url": "https://api.github.com/use... | [] | closed | false | null | [] | null | [
"```python\r\ns1 = SomeModel.select().where(...)\r\ns2 = SomeModel.select().where(...)\r\nquery = (s1 & s2).order_by(fn.RANDOM())\r\n```",
"@coleifer \r\nWhenever I'm trying to iterate through this new query or make a list I get error:\r\n```\r\npeewee.OperationalError: 1st ORDER BY term does not match any column... | 2018-04-06T21:21:26 | 2018-04-07T17:20:55 | 2018-04-07T17:20:23 | NONE | null | Suppose there are two `SELECT` queries that can't be joined into one by joining `WHERE` clauses for some reason.
Is there any way to get their random ordered union?
Example:
Both this
```
s1 = SomeModel.select().where( some_condition1 )
s2 = SomeModel.select().where( some_condition2 )
s3 = (s1 & s2).order_by(fn.... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1564/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/1564/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1563 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1563/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1563/comments | https://api.github.com/repos/coleifer/peewee/issues/1563/events | https://github.com/coleifer/peewee/issues/1563 | 312,089,707 | MDU6SXNzdWUzMTIwODk3MDc= | 1,563 | Foreign keys must specify a `rel_field` | {
"login": "csytan",
"id": 16357,
"node_id": "MDQ6VXNlcjE2MzU3",
"avatar_url": "https://avatars.githubusercontent.com/u/16357?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/csytan",
"html_url": "https://github.com/csytan",
"followers_url": "https://api.github.com/users/csytan/followers",
... | [] | closed | false | null | [] | null | [
"The error message is out-of-date. The parameter name is \"field\" (no \"rel_\"). It refers to the field on the model your FK points to - typically the primary key.",
"```\r\n# e.g., to reference the \"id\" field of ServiceCategory:\r\nForeignKeyField(db.ServiceCategory, db.ServiceCategory.id, null=True, on_delet... | 2018-04-06T19:25:10 | 2018-04-06T19:48:48 | 2018-04-06T19:47:07 | NONE | null | Hi Charles,
Thank you for your excellent library 🙌
I'm trying to do some migrations by adding a ForeignKeyField, but I'm getting this error:
https://github.com/coleifer/peewee/blob/master/playhouse/migrate.py#L264
I couldn't find any documentation on what the `rel_field` is supposed to be.
## Code
```
w... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1563/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1563/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1562 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1562/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1562/comments | https://api.github.com/repos/coleifer/peewee/issues/1562/events | https://github.com/coleifer/peewee/pull/1562 | 312,052,823 | MDExOlB1bGxSZXF1ZXN0MTgwMDA2MDg3 | 1,562 | Update api.rst for Sqlitedatabase inheritance | {
"login": "Declan1984",
"id": 8843918,
"node_id": "MDQ6VXNlcjg4NDM5MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/8843918?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Declan1984",
"html_url": "https://github.com/Declan1984",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"Thanks I'll pass on this for now. It'd be nice if the python domain of ReST supported this type of annotation but I couldn't find it."
] | 2018-04-06T17:17:58 | 2018-04-06T18:15:26 | 2018-04-06T18:15:26 | NONE | null | Adding an explicit indication that Sqlitedatabase inherits from Database; if proposed change is accepted, I can go into the other classes and add similar explicit reference. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1562/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/1562/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1562",
"html_url": "https://github.com/coleifer/peewee/pull/1562",
"diff_url": "https://github.com/coleifer/peewee/pull/1562.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1562.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1561 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1561/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1561/comments | https://api.github.com/repos/coleifer/peewee/issues/1561/events | https://github.com/coleifer/peewee/pull/1561 | 311,987,399 | MDExOlB1bGxSZXF1ZXN0MTc5OTU3Mjcx | 1,561 | Made an AttributeError message more informative. | {
"login": "vsajip",
"id": 130553,
"node_id": "MDQ6VXNlcjEzMDU1Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/130553?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vsajip",
"html_url": "https://github.com/vsajip",
"followers_url": "https://api.github.com/users/vsajip/follow... | [] | closed | false | null | [] | null | [
"Going to pass, thanks."
] | 2018-04-06T14:00:44 | 2018-04-06T14:14:20 | 2018-04-06T14:14:20 | NONE | null | If a stray keyword argument is passed to a `Model` initialisation, the resulting `AttributeError` message isn't particularly informative - it mentions neither the failing attribute nor the instance type affected. This change makes the error message more informative. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1561/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/1561/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1561",
"html_url": "https://github.com/coleifer/peewee/pull/1561",
"diff_url": "https://github.com/coleifer/peewee/pull/1561.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1561.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1560 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1560/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1560/comments | https://api.github.com/repos/coleifer/peewee/issues/1560/events | https://github.com/coleifer/peewee/issues/1560 | 311,392,572 | MDU6SXNzdWUzMTEzOTI1NzI= | 1,560 | FTS with snippet/extract | {
"login": "rcarmo",
"id": 392683,
"node_id": "MDQ6VXNlcjM5MjY4Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/392683?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rcarmo",
"html_url": "https://github.com/rcarmo",
"followers_url": "https://api.github.com/users/rcarmo/follow... | [] | closed | false | null | [] | null | [
"Try:\r\n\r\n```python\r\nfn.snippet(FTSPage._meta.entity).alias('extract')\r\n```",
"FTS5 is a completely different library, really. I'd suggest doing a very close reading of the fts5 sqlite documentation if you haven't already. Personally, I've gone back to FTS4 because FTS5 was just a bit problematic (especial... | 2018-04-04T21:10:44 | 2018-08-01T01:34:51 | 2018-04-04T21:21:00 | CONTRIBUTOR | null | Hi there,
I'm porting an older bit of code to 3.x, and am having trouble with the following:
```python
query = (FTSPage.select(Page,
FTSPage,
fn.snippet(FTSPage.as_entity()).alias('extract'),
FTSPage.bm25().alias('score'))... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1560/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/1560/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1559 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1559/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1559/comments | https://api.github.com/repos/coleifer/peewee/issues/1559/events | https://github.com/coleifer/peewee/issues/1559 | 311,136,116 | MDU6SXNzdWUzMTExMzYxMTY= | 1,559 | Support type hints in model fields | {
"login": "tuukkamustonen",
"id": 94327,
"node_id": "MDQ6VXNlcjk0MzI3",
"avatar_url": "https://avatars.githubusercontent.com/u/94327?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tuukkamustonen",
"html_url": "https://github.com/tuukkamustonen",
"followers_url": "https://api.github.com/u... | [] | closed | true | null | [] | null | [
"I think type hints are misguided and unpythonic, and it's my stance that they will never be supported by peewee. Python is a high-level dynamic language, peewee plays to these strengths. You couldn't implement peewee in go, it'd look completely different.\r\n\r\nI enjoy statically typed languages. When I want stat... | 2018-04-04T08:40:52 | 2021-06-13T17:04:05 | 2018-04-04T11:22:46 | NONE | null | Being aware that you don't like type hints (#1298), I'll be bold and ask if you would allow users to annotate their models with type hints?
Problem:
```python
class User(peewee.Model):
name = CharField()
u = User()
u.name = 'Joe' # mypy will nag because inferred type is 'CharField'
```
Cannot:
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1559/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1559/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1558 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1558/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1558/comments | https://api.github.com/repos/coleifer/peewee/issues/1558/events | https://github.com/coleifer/peewee/issues/1558 | 310,694,782 | MDU6SXNzdWUzMTA2OTQ3ODI= | 1,558 | insert_many fails on sqlite 3.6.20 | {
"login": "binrush",
"id": 3984423,
"node_id": "MDQ6VXNlcjM5ODQ0MjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/3984423?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/binrush",
"html_url": "https://github.com/binrush",
"followers_url": "https://api.github.com/users/binrush/... | [] | closed | false | null | [] | null | [
"Correct, SQLite began supporting multi-value INSERT statements in 3.7.11, which was released over 6 years ago: http://sqlite.org/releaselog/3_7_11.html\r\n\r\nFor simplicity, Peewee 3.0 no longer includes this workaround. You can, of course, write your code to process the INSERTs in a loop (which is all 2.x did)."... | 2018-04-03T05:01:13 | 2018-04-03T12:09:41 | 2018-04-03T12:09:41 | NONE | null | Hi! Thank you for your great project.
On peewee version 3.2.2, I'm trying to use insert_many with sqite 3.6.20:
```python
import peewee as pw
import logging
logging.basicConfig(level=logging.DEBUG)
db = pw.SqliteDatabase(':memory:')
class TestTable(pw.Model):
id = pw.PrimaryKeyField()
data = ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1558/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/1558/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1557 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1557/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1557/comments | https://api.github.com/repos/coleifer/peewee/issues/1557/events | https://github.com/coleifer/peewee/issues/1557 | 310,387,707 | MDU6SXNzdWUzMTAzODc3MDc= | 1,557 | «Connection already open» when trying to get data from session_interface in flask | {
"login": "ak4nv",
"id": 73960,
"node_id": "MDQ6VXNlcjczOTYw",
"avatar_url": "https://avatars.githubusercontent.com/u/73960?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ak4nv",
"html_url": "https://github.com/ak4nv",
"followers_url": "https://api.github.com/users/ak4nv/followers",
"f... | [] | closed | false | null | [] | null | [
"When you use the `FlaskDB` helper class, it automatically registers two callbacks with Flask:\r\n\r\n* before_request() -- open the database connection\r\n* teardown_request() -- close the database connection\r\n\r\nMy guess is that when the `before_request()` callback fires, it's raising an exception because the ... | 2018-04-02T03:53:01 | 2018-04-04T11:07:19 | 2018-04-02T14:02:54 | NONE | null | Hi!
I'm trying to get session data from table in my custom session interface in Flask and I'm getting the error `Connection already open`.
Here is a code sample
```python
import peewee as pw
from flask import Flask, jsonify
from flask.sessions import SessionInterface, SessionMixin
from werkzeug.datastructures ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1557/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/1557/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1556 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1556/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1556/comments | https://api.github.com/repos/coleifer/peewee/issues/1556/events | https://github.com/coleifer/peewee/issues/1556 | 310,365,075 | MDU6SXNzdWUzMTAzNjUwNzU= | 1,556 | IPField Design | {
"login": "ghost",
"id": 10137,
"node_id": "MDQ6VXNlcjEwMTM3",
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ghost",
"html_url": "https://github.com/ghost",
"followers_url": "https://api.github.com/users/ghost/followers",
"f... | [] | closed | false | null | [] | null | [
"Mine does not support Python 2 tho... :thinking: ",
"Because the `ipaddress` is a Python 3.x-only module, I'm going to pass on any related modifications to the peewee `IPField`. I think it's perfectly fine for this functionality to continue existing in a third-party library like yours (until such time as Peewee ... | 2018-04-02T00:13:23 | 2018-04-02T13:54:24 | 2018-04-02T13:54:24 | NONE | null | Hello, about the Design of new Peewee `IPField`, I am the creator of a package `peewee-extra-fields`,
we have a similar Field for IP, I think we can tinker and collaborate for better on that field:
We have `IPAddressField` and `IPNetworkField` its features are:
- They use Native Pythons `ipaddress.IPv4Address` ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1556/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/1556/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1555 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1555/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1555/comments | https://api.github.com/repos/coleifer/peewee/issues/1555/events | https://github.com/coleifer/peewee/issues/1555 | 310,265,633 | MDU6SXNzdWUzMTAyNjU2MzM= | 1,555 | Default value with SQL and returns of Model.create | {
"login": "fy0",
"id": 1579850,
"node_id": "MDQ6VXNlcjE1Nzk4NTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/1579850?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fy0",
"html_url": "https://github.com/fy0",
"followers_url": "https://api.github.com/users/fy0/followers",
"f... | [] | closed | false | null | [] | null | [
"> I know peewee not supported SQL default yet, but use constraints to instead of is ok\r\n\r\nThis is the correct way to implement server-side column defaults in Peewee.\r\n\r\nPostgres supports a `RETURNING` clause, so you can retrieve the server-created timestamp by specifying the timestamp column, as you have d... | 2018-03-31T19:29:31 | 2018-04-01T17:27:27 | 2018-04-01T17:02:48 | NONE | null | I know peewee not supported SQL default yet, but use `constraints` to instead of is ok, for example:
```python
timestamp = DateTimeField(constraints=[SQL('DEFAULT CURRENT_TIMESTAMP')])
```
It works, but not perfect.
```python
from peewee import *
db = SqliteDatabase(":memory:")
class Test(Model):
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1555/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/1555/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1554 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1554/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1554/comments | https://api.github.com/repos/coleifer/peewee/issues/1554/events | https://github.com/coleifer/peewee/issues/1554 | 309,551,094 | MDU6SXNzdWUzMDk1NTEwOTQ= | 1,554 | playhouse.postgres_ext.BinaryJSONField returns string | {
"login": "felipetrz",
"id": 568830,
"node_id": "MDQ6VXNlcjU2ODgzMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/568830?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/felipetrz",
"html_url": "https://github.com/felipetrz",
"followers_url": "https://api.github.com/users/feli... | [] | closed | false | null | [] | null | [
"The JSONB code is tested, so if something were that badly broken it would certainly show up as a lot of test failures.\r\n\r\nAre you using `playhouse.postgres_ext.PostgresqlExtDatabase` instead of the generic `peewee.PostgresqlDatabase`?",
"Sorry, the bug was actually with peewee-moves, that wasn't creating the... | 2018-03-28T22:13:00 | 2018-03-29T20:08:08 | 2018-03-29T15:26:30 | NONE | null | When I store data in a postgres JSONB field using the provided field type, it should be accessed as a dict/list object when I retrieve it. Instead it's being returned as a string. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1554/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/1554/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1553 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1553/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1553/comments | https://api.github.com/repos/coleifer/peewee/issues/1553/events | https://github.com/coleifer/peewee/issues/1553 | 309,531,153 | MDU6SXNzdWUzMDk1MzExNTM= | 1,553 | Pwiz does not generate column defaults | {
"login": "geonyoro",
"id": 10379310,
"node_id": "MDQ6VXNlcjEwMzc5MzEw",
"avatar_url": "https://avatars.githubusercontent.com/u/10379310?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/geonyoro",
"html_url": "https://github.com/geonyoro",
"followers_url": "https://api.github.com/users/geo... | [] | closed | false | null | [] | null | [
"I'm curious what this patch would entail...feel free to submit but I can't make any guarantees about merging.",
"I am not sure whether any defaults extracted from the schema itself should be translated into Python defaults. Enforcement at the schema level is different than at the application level.\r\n\r\nLookin... | 2018-03-28T21:04:16 | 2018-04-03T12:12:04 | 2018-04-02T14:42:48 | NONE | null | There seems to be no inclusion of column default values.
Given that the information schema for the three systems includes it, is it okay if I submit my workaround for this as a pull request?
My pull initially focuses on MySQL, but with 'possibility' of including psql and sqlite. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1553/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/1553/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1552 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1552/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1552/comments | https://api.github.com/repos/coleifer/peewee/issues/1552/events | https://github.com/coleifer/peewee/issues/1552 | 308,441,692 | MDU6SXNzdWUzMDg0NDE2OTI= | 1,552 | [BUG] Float gets autoconverted into integer in query in Peewee 3.1 | {
"login": "Egor3f",
"id": 5215884,
"node_id": "MDQ6VXNlcjUyMTU4ODQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/5215884?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Egor3f",
"html_url": "https://github.com/Egor3f",
"followers_url": "https://api.github.com/users/Egor3f/foll... | [] | closed | false | null | [] | null | [
"Just a thought -- if you have a price and are multiplying it by a float, that could cause issues... you might have better luck using a `DecimalField` which will not introduce precision errors.\r\n\r\nI'll look into the issue as reported, just thought I'd mention that as a suggestion.",
"I just wrote a small test... | 2018-03-26T05:57:23 | 2018-03-26T15:15:13 | 2018-03-26T15:15:12 | NONE | null | I have exaclty the same issue, as there: https://github.com/coleifer/peewee/issues/1150
I need to multiply IntegerField by float value in select query (to apply commission or discount to price field).
But in actual SQL query float gets converted to integer, so 0.9 becomes 0.
In peewee v2 I could use `Item.select((... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1552/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/1552/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1551 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1551/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1551/comments | https://api.github.com/repos/coleifer/peewee/issues/1551/events | https://github.com/coleifer/peewee/issues/1551 | 308,419,035 | MDU6SXNzdWUzMDg0MTkwMzU= | 1,551 | Why don't you support oracle database? | {
"login": "inpool",
"id": 3860872,
"node_id": "MDQ6VXNlcjM4NjA4NzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3860872?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/inpool",
"html_url": "https://github.com/inpool",
"followers_url": "https://api.github.com/users/inpool/foll... | [] | closed | false | null | [] | null | [
"It's pretty obvious that open source developers won't bother with Oracle and it's licences. \r\nWhat's the justification for writing and orm in your free time for a database you don't use?\r\n\r\nIf you are interested, it's easy to add a backed for Oracle, and if you have a license you can actually even test the c... | 2018-03-26T03:03:44 | 2018-03-26T17:03:52 | 2018-03-26T15:26:16 | NONE | null | I often need to write tools about existing apps, which are based on Oracle, and I love peewee, and when I'm ready to use her, I find that she doesn't support Oracle. Why does peewee not support Oracle? | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1551/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/1551/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1550 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1550/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1550/comments | https://api.github.com/repos/coleifer/peewee/issues/1550/events | https://github.com/coleifer/peewee/pull/1550 | 308,336,266 | MDExOlB1bGxSZXF1ZXN0MTc3MjgxMjU4 | 1,550 | Integration with Sanic | {
"login": "rxcai",
"id": 5463519,
"node_id": "MDQ6VXNlcjU0NjM1MTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/5463519?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rxcai",
"html_url": "https://github.com/rxcai",
"followers_url": "https://api.github.com/users/rxcai/follower... | [] | closed | false | null | [] | null | [] | 2018-03-25T09:49:22 | 2018-03-25T20:27:41 | 2018-03-25T20:27:40 | CONTRIBUTOR | null | Using peewee in a Sanic project and got `Error 2006: MySQL server has gone away`. After implementation of handler in request and response middleware, the error has gone and the application runs well. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1550/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/1550/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1550",
"html_url": "https://github.com/coleifer/peewee/pull/1550",
"diff_url": "https://github.com/coleifer/peewee/pull/1550.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1550.patch",
"merged_at": "2018-03-25T20:27:40"
} |
https://api.github.com/repos/coleifer/peewee/issues/1549 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1549/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1549/comments | https://api.github.com/repos/coleifer/peewee/issues/1549/events | https://github.com/coleifer/peewee/issues/1549 | 307,891,444 | MDU6SXNzdWUzMDc4OTE0NDQ= | 1,549 | pip install peewee fails with Anaconda on Win10 | {
"login": "happylrd",
"id": 15155131,
"node_id": "MDQ6VXNlcjE1MTU1MTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/15155131?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/happylrd",
"html_url": "https://github.com/happylrd",
"followers_url": "https://api.github.com/users/hap... | [] | closed | false | null | [] | null | [
"Hmm... I don't know, with setup.py, how to check if a header file/shared lib is going to be available ahead-of-time.",
"@coleifer `conda install -c conda-forge peewee` can solve this problem, the only regrettable thing is that the version of peewee is a little old, just 2.10.2.\r\n\r\n**Supplement 2018.4.10**\r... | 2018-03-23T03:35:43 | 2018-04-10T04:00:19 | 2018-03-27T13:51:47 | NONE | null | `pip install peewee` fails with Anaconda on Windows 10.
- OS: Windows 10
- Python: Python 3.6.4 :: Anaconda, Inc.
- Cython: 0.27.3
### error
```
playhouse\_sqlite_ext.c(531): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
error: command 'D:\\MyIDE\\VS2015\\VC\\BIN\\x86_... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1549/reactions",
"total_count": 3,
"+1": 3,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1549/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1548 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1548/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1548/comments | https://api.github.com/repos/coleifer/peewee/issues/1548/events | https://github.com/coleifer/peewee/issues/1548 | 307,744,108 | MDU6SXNzdWUzMDc3NDQxMDg= | 1,548 | ArrayField should use the db_value and python_value methods of it's data-type | {
"login": "coleifer",
"id": 119974,
"node_id": "MDQ6VXNlcjExOTk3NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/119974?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/coleifer",
"html_url": "https://github.com/coleifer",
"followers_url": "https://api.github.com/users/coleife... | [] | closed | false | null | [] | null | [
"eba0aefdc63b2d4106334cd5c11d1c9de659fb12"
] | 2018-03-22T17:32:33 | 2018-03-23T14:52:14 | 2018-03-23T14:52:14 | OWNER | null | Currently `ArrayField` does no processing in either `db_value` or `python_value`, meaning arrays of fields that implement custom conversion will not work as expected. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1548/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/1548/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1547 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1547/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1547/comments | https://api.github.com/repos/coleifer/peewee/issues/1547/events | https://github.com/coleifer/peewee/issues/1547 | 307,621,498 | MDU6SXNzdWUzMDc2MjE0OTg= | 1,547 | Add documentation for ~ opertor | {
"login": "dyadav7",
"id": 8121360,
"node_id": "MDQ6VXNlcjgxMjEzNjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/8121360?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dyadav7",
"html_url": "https://github.com/dyadav7",
"followers_url": "https://api.github.com/users/dyadav7/... | [] | closed | false | null | [] | null | [
"There is an example.\r\n\r\n\r\n",
"Thanks"
] | 2018-03-22T12:25:10 | 2018-03-23T01:46:52 | 2018-03-22T13:44:55 | NONE | null | Documentation has example for contains - e.g. Facility.name.contains('tennis').
There should be example for reverse of this contain API / reverse of any than queries.
e.g. I want to search for a Facility for which the Facility.name does not contain "tennis".
See: https://stackoverflow.com/questions/25734566/operat... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1547/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/1547/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1546 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1546/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1546/comments | https://api.github.com/repos/coleifer/peewee/issues/1546/events | https://github.com/coleifer/peewee/issues/1546 | 307,141,491 | MDU6SXNzdWUzMDcxNDE0OTE= | 1,546 | peewee.InterfaceError: (0, '') | pymysql.err.InterfaceError: (0, '') | {
"login": "MozzieHan",
"id": 23057269,
"node_id": "MDQ6VXNlcjIzMDU3MjY5",
"avatar_url": "https://avatars.githubusercontent.com/u/23057269?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MozzieHan",
"html_url": "https://github.com/MozzieHan",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"This looks like a bug in peewee-async or something? Some server issue?\r\n\r\nPeewee is tested with mysql every release (and every commit for that matter) so I know mysql isn't horribly broken or anything.",
"The follow up is at https://github.com/05bit/peewee-async/issues/26",
"We encounter the same problem w... | 2018-03-21T07:26:23 | 2021-11-22T13:40:03 | 2018-03-21T13:39:47 | NONE | null | I am encountering this exception (using peewee-async high-level api) then my asyncio based daemon is idle (about 15 minutes or so), after that time, this exception occurs, I have tried to close and reopen connection, and was surprised that Manager (high-level api) did not track its state (close/reopen is done using its... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1546/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/1546/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1545 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1545/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1545/comments | https://api.github.com/repos/coleifer/peewee/issues/1545/events | https://github.com/coleifer/peewee/issues/1545 | 306,896,671 | MDU6SXNzdWUzMDY4OTY2NzE= | 1,545 | a + b != sum([a, b]) | {
"login": "phryk",
"id": 1021513,
"node_id": "MDQ6VXNlcjEwMjE1MTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1021513?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/phryk",
"html_url": "https://github.com/phryk",
"followers_url": "https://api.github.com/users/phryk/follower... | [] | closed | false | null | [] | null | [
"Peewee uses operator overloads to compose expressions and queries themselves. For queries, the operators are:\r\n\r\n* addition: UNION ALL\r\n* bitwise or: UNION\r\n* bitwise and: INTERSECT\r\n* subtraction: EXCEPT\r\n\r\nI'm not sure how the `sum` builtin is implemented but apparently it is doing something weird.... | 2018-03-20T14:44:30 | 2018-03-20T16:03:02 | 2018-03-20T16:03:02 | NONE | null | Expected behavior:
`a + b == sum([a, b])`
Actual behavior:
```
>>> a = User.select(User.id)
>>> b = News.select(News.id)
>>> a + b == sum([a, b])
False
>>> (a + b).sql()
('SELECT "t1"."id" FROM "user" AS "t1" UNION ALL SELECT "t2"."id" FROM "news" AS "t2"', [])
>>> sum([a, b]).sql()
('? UNION ALL SELECT ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1545/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/1545/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1544 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1544/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1544/comments | https://api.github.com/repos/coleifer/peewee/issues/1544/events | https://github.com/coleifer/peewee/issues/1544 | 306,513,158 | MDU6SXNzdWUzMDY1MTMxNTg= | 1,544 | drop_table does not pass **options properly | {
"login": "ccosby",
"id": 194775,
"node_id": "MDQ6VXNlcjE5NDc3NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/194775?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ccosby",
"html_url": "https://github.com/ccosby",
"followers_url": "https://api.github.com/users/ccosby/follow... | [] | closed | false | null | [] | null | [
"Thanks, fixed."
] | 2018-03-19T15:32:24 | 2018-03-19T15:37:10 | 2018-03-19T15:37:10 | NONE | null | https://github.com/coleifer/peewee/blob/74f3b30e6c0a6f8461b8bd33a21fd5fe9ad5c8c3/peewee.py#L4542
It appears as if **options should be passed to _drop_table() instead of execute() here.
unittest doesn't catch this one because it tests the private method instead of the public one. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1544/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/1544/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1543 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1543/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1543/comments | https://api.github.com/repos/coleifer/peewee/issues/1543/events | https://github.com/coleifer/peewee/issues/1543 | 306,243,551 | MDU6SXNzdWUzMDYyNDM1NTE= | 1,543 | Add column if doesn't exist | {
"login": "Shashwat986",
"id": 5304561,
"node_id": "MDQ6VXNlcjUzMDQ1NjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/5304561?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Shashwat986",
"html_url": "https://github.com/Shashwat986",
"followers_url": "https://api.github.com/us... | [] | closed | false | null | [] | null | [
"Adding columns strikes me as being different-enough from just creating tables that I think the current division of APIs is appropriate.\r\n\r\nThe table is based on a model, which is declared in Python code -- from the perspective of a running app, it's structure is static. When adding (or otherwise altering) fiel... | 2018-03-18T14:11:33 | 2018-03-18T22:34:49 | 2018-03-18T22:34:49 | NONE | null | I was wondering if it would be useful to have a method to add any new columns to a table, or to all tables in the database. It'll make db migrations much easier.
In my head, usage would look like:
```py
db.connect()
db.create_tables([User, Tweet])
db.add_columns([User, Tweet]) # or User.add_columns()
```
I f... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1543/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/1543/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1542 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1542/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1542/comments | https://api.github.com/repos/coleifer/peewee/issues/1542/events | https://github.com/coleifer/peewee/issues/1542 | 306,186,539 | MDU6SXNzdWUzMDYxODY1Mzk= | 1,542 | TimestampField type is different if accessed via query as opposed to directly | {
"login": "vsajip",
"id": 130553,
"node_id": "MDQ6VXNlcjEzMDU1Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/130553?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vsajip",
"html_url": "https://github.com/vsajip",
"followers_url": "https://api.github.com/users/vsajip/follow... | [] | closed | false | null | [] | null | [
"`DateTimeField` uses a \"datetime\" column-type for the backend data-storage. In SQLite in particular, which does not have a date/time column type, it can be much more efficient to store the data as an integer timestamp. The `TimestampField` exists to allow you to work with Python `datetime` objects but store them... | 2018-03-17T20:08:22 | 2020-07-02T09:23:43 | 2018-03-17T21:13:37 | NONE | null | If I have a model which has a timestamp field:
```
class MyModel(BaseModel):
...
expiry = TimestampField(utc=True, index=True, default=None)
...
```
If I then create an instance using e.g.
```
instance = MyModel.create(..., expiry=time.time() + 86400, ...)
```
then the type of `instance.expiry` i... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1542/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/1542/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1541 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1541/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1541/comments | https://api.github.com/repos/coleifer/peewee/issues/1541/events | https://github.com/coleifer/peewee/pull/1541 | 306,006,999 | MDExOlB1bGxSZXF1ZXN0MTc1NTkzMDY5 | 1,541 | Make connecting signals operation idempotent | {
"login": "bmwant",
"id": 3602533,
"node_id": "MDQ6VXNlcjM2MDI1MzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/3602533?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bmwant",
"html_url": "https://github.com/bmwant",
"followers_url": "https://api.github.com/users/bmwant/foll... | [] | closed | false | null | [] | null | [
"@coleifer could you review this one?",
"I don't think this is exactly a bug, and I don't love the solution proposed in this patch. I don't really think of registering a signal as an idempotent operation, and registering the same combination of receiver/name/sender seems like a user mistake.\r\n\r\nI've tried to ... | 2018-03-16T17:05:28 | 2018-03-16T18:55:09 | 2018-03-16T18:55:09 | NONE | null | ## Rationale
Attaching receivers should not crash a program.
## Use cases
1. Module has been reloaded
`m.py`
```
from peewee import *
from playhouse import signals
class A(signals.Model):
a = TextField(default='')
state = []
@signals.post_save(sender=A)
def post_save(sender, instance, created):... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1541/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/1541/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1541",
"html_url": "https://github.com/coleifer/peewee/pull/1541",
"diff_url": "https://github.com/coleifer/peewee/pull/1541.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1541.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1540 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1540/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1540/comments | https://api.github.com/repos/coleifer/peewee/issues/1540/events | https://github.com/coleifer/peewee/issues/1540 | 305,818,961 | MDU6SXNzdWUzMDU4MTg5NjE= | 1,540 | update_or_create is missing ? | {
"login": "elonzh",
"id": 8749411,
"node_id": "MDQ6VXNlcjg3NDk0MTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8749411?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elonzh",
"html_url": "https://github.com/elonzh",
"followers_url": "https://api.github.com/users/elonzh/foll... | [] | closed | false | null | [] | null | [
"Because it's hard to correctly write a generic version of these methods that isn't vulnerable to race conditions. The proper way to implement this is very short, and as a result, I leave it up to users to implement their own method for create-or-get (similar workflow for insert-or-update):\r\n\r\n```python\r\n# cr... | 2018-03-16T06:46:54 | 2018-03-16T13:59:58 | 2018-03-16T13:59:58 | NONE | null | I'm curious that why the model method `update_or_create` is not provided.
https://github.com/coleifer/peewee/commit/073364ad89a8de48f4a25bbf6106bf42050d34fa | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1540/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/1540/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1539 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1539/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1539/comments | https://api.github.com/repos/coleifer/peewee/issues/1539/events | https://github.com/coleifer/peewee/issues/1539 | 305,226,342 | MDU6SXNzdWUzMDUyMjYzNDI= | 1,539 | db.batch_commit() mode | {
"login": "HarryR",
"id": 303926,
"node_id": "MDQ6VXNlcjMwMzkyNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/303926?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HarryR",
"html_url": "https://github.com/HarryR",
"followers_url": "https://api.github.com/users/HarryR/follow... | [] | closed | false | null | [] | null | [
"I originally thought that the `10` in the call to batch_commit() was the total number of batches, but on reading again I think you mean to imply a batch size of 10, or, a commit every 10 rows?\r\n\r\nSomething like that should be do-able, but it is probably cleaner to pass an iterator, e.g.:\r\n\r\n```python\r\n\r... | 2018-03-14T16:09:38 | 2018-03-14T18:57:27 | 2018-03-14T18:57:27 | NONE | null | ```python
db = SqliteDatabase(':memory:')
with db.batch_commit(10):
for n in range(0, 1234):
Model.create(**...)
```
Every N'th model creation commits the transaction, the equivalent Python without `batch_commit` is:
```python
with db.manual_commit():
db.begin():
for n, row in enumerat... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1539/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1539/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1538 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1538/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1538/comments | https://api.github.com/repos/coleifer/peewee/issues/1538/events | https://github.com/coleifer/peewee/issues/1538 | 305,105,309 | MDU6SXNzdWUzMDUxMDUzMDk= | 1,538 | Introspector does not preserve capitalized columns name | {
"login": "ketozhang",
"id": 13506487,
"node_id": "MDQ6VXNlcjEzNTA2NDg3",
"avatar_url": "https://avatars.githubusercontent.com/u/13506487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ketozhang",
"html_url": "https://github.com/ketozhang",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"The introspector \"python-izes\" the column names by default. So if you have such a table, the actual field definition will look something like:\r\n\r\n```python\r\ndept = TextField(column_name='Dept')\r\n```\r\n\r\nIn this way, the actual underlying column-name is still preserved and used, it's just that the acce... | 2018-03-14T10:41:03 | 2018-03-16T14:00:10 | 2018-03-16T14:00:10 | NONE | null | Given a simple table like
```python
class Table(Model):
employee = CharField(unique=True)
Dept = TextField()
```
On the attempt in trying to introspect this table `models = Introspector.from_database(db).generate_models()`, the keys in `models['Table'].__dict__` are all lowercase:
```python
>>> ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1538/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/1538/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1537 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1537/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1537/comments | https://api.github.com/repos/coleifer/peewee/issues/1537/events | https://github.com/coleifer/peewee/issues/1537 | 305,097,899 | MDU6SXNzdWUzMDUwOTc4OTk= | 1,537 | how to get sql when save | {
"login": "visonforcoding",
"id": 4387302,
"node_id": "MDQ6VXNlcjQzODczMDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/4387302?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/visonforcoding",
"html_url": "https://github.com/visonforcoding",
"followers_url": "https://api.gith... | [] | closed | false | null | [] | null | [
"You can turn on query logging: http://docs.peewee-orm.com/en/latest/peewee/database.html#logging-queries\r\n\r\n```python\r\n# Print all queries to stderr.\r\nimport logging\r\nlogger = logging.getLogger('peewee')\r\nlogger.setLevel(logging.DEBUG)\r\nlogger.addHandler(logging.StreamHandler())\r\n```\r\n\r\nJust a ... | 2018-03-14T10:19:17 | 2018-03-14T14:00:08 | 2018-03-14T14:00:08 | NONE | null | can i get the sql when i use save function . i don`t know why i can`t save. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1537/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/1537/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1536 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1536/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1536/comments | https://api.github.com/repos/coleifer/peewee/issues/1536/events | https://github.com/coleifer/peewee/issues/1536 | 304,595,039 | MDU6SXNzdWUzMDQ1OTUwMzk= | 1,536 | DataSet thaw() exports dates in isoformat() which is not on the format list for DateTimeField | {
"login": "yevrah",
"id": 118672,
"node_id": "MDQ6VXNlcjExODY3Mg==",
"avatar_url": "https://avatars.githubusercontent.com/u/118672?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yevrah",
"html_url": "https://github.com/yevrah",
"followers_url": "https://api.github.com/users/yevrah/follow... | [] | closed | false | null | [] | null | [
"This is a bit tricky because JSON should utilize ISO format, but Peewee really only has date-parsing logic to work-around the fact that SQLite doesn't have a native datetime data-type. By convention, Peewee has used the equivalent of Python's `__str__()` for datetime/date/time objects when persisting in SQLite.\r\... | 2018-03-13T01:18:25 | 2018-03-13T14:03:55 | 2018-03-13T03:18:09 | NONE | null | We are using a script to freeze copies of our staging and prod MySQL database. For development we are using SQLite, using the thawed data from MySQL. However, this issue can be replicated just from freezing and thawing between SQLite entities.
Test script below to show the issue.
```python
# test.py
from peewe... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1536/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/1536/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1535 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1535/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1535/comments | https://api.github.com/repos/coleifer/peewee/issues/1535/events | https://github.com/coleifer/peewee/pull/1535 | 304,187,131 | MDExOlB1bGxSZXF1ZXN0MTc0MjM4Mjk0 | 1,535 | Add big integer auto field support. | {
"login": "delobanov",
"id": 37274413,
"node_id": "MDQ6VXNlcjM3Mjc0NDEz",
"avatar_url": "https://avatars.githubusercontent.com/u/37274413?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/delobanov",
"html_url": "https://github.com/delobanov",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Replaced with cleaner implementation in 37e538f. Thanks."
] | 2018-03-11T19:42:00 | 2018-03-11T20:21:42 | 2018-03-11T20:21:42 | NONE | null | I added a new class that represents 8 bit autoincrement field. Tested this on postgresql. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1535/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/1535/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1535",
"html_url": "https://github.com/coleifer/peewee/pull/1535",
"diff_url": "https://github.com/coleifer/peewee/pull/1535.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1535.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1534 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1534/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1534/comments | https://api.github.com/repos/coleifer/peewee/issues/1534/events | https://github.com/coleifer/peewee/issues/1534 | 304,104,389 | MDU6SXNzdWUzMDQxMDQzODk= | 1,534 | Incorrect SQL for integer-returning `Case()` within `fn.SUM()`, with PostgreSQL | {
"login": "a-p-",
"id": 4145331,
"node_id": "MDQ6VXNlcjQxNDUzMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/4145331?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/a-p-",
"html_url": "https://github.com/a-p-",
"followers_url": "https://api.github.com/users/a-p-/followers",
... | [] | closed | false | null | [] | null | [
"Thank you for the excellent report. I was able to replicate this and found a bug related to updating mutable scope-specific settings in-place instead of copying. Should be fixed. I'll push a new bugfix release shortly.",
"I'm getting the same error and wondering when this can be fixed? Thanks.",
"The example a... | 2018-03-10T20:54:55 | 2020-08-29T18:04:09 | 2018-03-10T22:18:54 | NONE | null | Peewee 3.1.2 appears to be generating incorrect SQL for a `Case()` call that evaluates to an integer within an `fn.SUM()` call, when using PostgreSQL (10.1).
Some simplified example code to reproduce the problem is at the bottom.
The query is like:
```python
query = Example.select(
Example.name,
fn.... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1534/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/1534/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1533 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1533/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1533/comments | https://api.github.com/repos/coleifer/peewee/issues/1533/events | https://github.com/coleifer/peewee/issues/1533 | 304,070,815 | MDU6SXNzdWUzMDQwNzA4MTU= | 1,533 | ProgrammingError during get_or_create | {
"login": "jonathan-s",
"id": 2124818,
"node_id": "MDQ6VXNlcjIxMjQ4MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2124818?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jonathan-s",
"html_url": "https://github.com/jonathan-s",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"I'm using peewee-async so it may have to do with that library. Checking.. "
] | 2018-03-10T13:30:28 | 2018-03-10T14:19:22 | 2018-03-10T14:19:22 | NONE | null | I'm running Postgres with peewee 2.10.2
When running the following code:
```
Author.get_or_create(
id=author['id'],
defaults=author
)
```
I get syntax error at or near "AS" `LINE 1: ...t1"."country" FROM "author" AS t1 WHERE ("author" AS t1 AND ...` It happens for the second AS. The full query i... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1533/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/1533/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1532 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1532/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1532/comments | https://api.github.com/repos/coleifer/peewee/issues/1532/events | https://github.com/coleifer/peewee/issues/1532 | 304,067,837 | MDU6SXNzdWUzMDQwNjc4Mzc= | 1,532 | Flat tuples | {
"login": "jonathan-s",
"id": 2124818,
"node_id": "MDQ6VXNlcjIxMjQ4MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2124818?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jonathan-s",
"html_url": "https://github.com/jonathan-s",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"You can easily write a little transform:\r\n\r\n```python\r\n\r\nimport operator\r\nflat_transform = lambda query: map(operator.itemgetter(0), query)\r\n\r\nx = [(1,), (2,), (3,), (4,)]\r\nlist(flat_transform(x)) # [1, 2, 3, 4]\r\n```"
] | 2018-03-10T12:42:21 | 2018-03-10T15:21:04 | 2018-03-10T15:21:04 | NONE | null | It would be nice if there was an option to return tuples that were flat. Much like the django queryset `values_list(flat=True)`. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1532/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/1532/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1531 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1531/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1531/comments | https://api.github.com/repos/coleifer/peewee/issues/1531/events | https://github.com/coleifer/peewee/pull/1531 | 303,933,250 | MDExOlB1bGxSZXF1ZXN0MTc0MDczMzUx | 1,531 | Support prefetching ManyToManyFields | {
"login": "iBelieve",
"id": 3230912,
"node_id": "MDQ6VXNlcjMyMzA5MTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3230912?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iBelieve",
"html_url": "https://github.com/iBelieve",
"followers_url": "https://api.github.com/users/iBeli... | [] | closed | false | null | [] | null | [
"Interesting... Since the `prefetch` API requires the specification of the intervening models, it *does* seem a bit un-intuitive to access the related instances through the many-to-many field. Or maybe it is intuitive? I'm not sure...ManyToManyField is such a hack!",
"At least for my use case, it feels intuitive,... | 2018-03-09T18:17:35 | 2018-03-10T04:05:31 | 2018-03-10T04:05:30 | CONTRIBUTOR | null | Previously, prefetching a relationship exposed in a ManyToMany field would only expose the through model’s prefetched data. Now, the many to many field correctly exposes the prefetched data via the through field’s prefetched results, rather than requerying what has already been prefetched. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1531/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/1531/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1531",
"html_url": "https://github.com/coleifer/peewee/pull/1531",
"diff_url": "https://github.com/coleifer/peewee/pull/1531.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1531.patch",
"merged_at": "2018-03-10T04:05:30"
} |
https://api.github.com/repos/coleifer/peewee/issues/1530 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1530/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1530/comments | https://api.github.com/repos/coleifer/peewee/issues/1530/events | https://github.com/coleifer/peewee/issues/1530 | 303,890,280 | MDU6SXNzdWUzMDM4OTAyODA= | 1,530 | Why ForeignKeyAccessor.__set__() doesn't update instance._dirty? | {
"login": "TwoAnts",
"id": 5968383,
"node_id": "MDQ6VXNlcjU5NjgzODM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5968383?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TwoAnts",
"html_url": "https://github.com/TwoAnts",
"followers_url": "https://api.github.com/users/TwoAnts/... | [] | closed | false | null | [] | null | [
"Fixed, thanks for reporting."
] | 2018-03-09T16:02:52 | 2018-03-09T16:27:21 | 2018-03-09T16:26:34 | NONE | null | I use `=` to set a `ForeignKeyField` and call `save()` method, but it doesn't take effect.
When I read the source code in peewee.py, I found that `ForeignKeyAccessor.__set__()` seems not to update the `instance._dirty` . This leads to a failure to update `ForeignKeyField` by calling `save()` method.
Please fix it... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1530/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/1530/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1529 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1529/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1529/comments | https://api.github.com/repos/coleifer/peewee/issues/1529/events | https://github.com/coleifer/peewee/pull/1529 | 303,666,019 | MDExOlB1bGxSZXF1ZXN0MTczODc2OTY0 | 1,529 | Clarify that safe=True is the default behaviour. The existing doc sounded like it was False by default. | {
"login": "bryhoyt",
"id": 4769854,
"node_id": "MDQ6VXNlcjQ3Njk4NTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4769854?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bryhoyt",
"html_url": "https://github.com/bryhoyt",
"followers_url": "https://api.github.com/users/bryhoyt/... | [] | closed | false | null | [] | null | [] | 2018-03-08T23:08:42 | 2018-03-09T15:00:25 | 2018-03-09T15:00:25 | CONTRIBUTOR | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1529/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/1529/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1529",
"html_url": "https://github.com/coleifer/peewee/pull/1529",
"diff_url": "https://github.com/coleifer/peewee/pull/1529.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1529.patch",
"merged_at": "2018-03-09T15:00:25"
} | |
https://api.github.com/repos/coleifer/peewee/issues/1528 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1528/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1528/comments | https://api.github.com/repos/coleifer/peewee/issues/1528/events | https://github.com/coleifer/peewee/pull/1528 | 303,665,295 | MDExOlB1bGxSZXF1ZXN0MTczODc2Mzgw | 1,528 | Clarify comment that sounded like create_tables() in Peewee 3 will dr… | {
"login": "bryhoyt",
"id": 4769854,
"node_id": "MDQ6VXNlcjQ3Njk4NTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/4769854?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bryhoyt",
"html_url": "https://github.com/bryhoyt",
"followers_url": "https://api.github.com/users/bryhoyt/... | [] | closed | false | null | [] | null | [
"Cheers!"
] | 2018-03-08T23:05:32 | 2018-03-09T15:00:08 | 2018-03-09T15:00:03 | CONTRIBUTOR | null | …op your table if it exists.
This scared me on first read. I had to read it a couple times to figure out that the second part of the parenthetical comment was talking about the drop_tables() method. And I had to read the source code to be fully sure.
I like the updated functionality, though. It's a great improvem... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1528/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/1528/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1528",
"html_url": "https://github.com/coleifer/peewee/pull/1528",
"diff_url": "https://github.com/coleifer/peewee/pull/1528.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1528.patch",
"merged_at": "2018-03-09T15:00:03"
} |
https://api.github.com/repos/coleifer/peewee/issues/1527 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1527/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1527/comments | https://api.github.com/repos/coleifer/peewee/issues/1527/events | https://github.com/coleifer/peewee/issues/1527 | 302,081,403 | MDU6SXNzdWUzMDIwODE0MDM= | 1,527 | Postgres Match returns only one result | {
"login": "metakermit",
"id": 1818628,
"node_id": "MDQ6VXNlcjE4MTg2Mjg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1818628?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/metakermit",
"html_url": "https://github.com/metakermit",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"Not sure what the issue might be, but the `Match` function is tested and returns multiple results where appropriate. Perhaps there's an issue with the query you're providing?",
"Example ipython notebook showing it working:\r\n\r\nhttps://gist.github.com/coleifer/cee34b9db777c76de95a0c717aadd030"
] | 2018-03-04T12:22:45 | 2018-03-04T16:29:52 | 2018-03-04T16:29:52 | NONE | null | Hi, I'm using the `Match` functionality to access Postgres' [full-text search](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#pg-fts) (`from playhouse.postgres_ext import Match`), but I only get 1 result.
For comparison, using the same search query (just a single word) the `contains` query returns more r... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1527/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/1527/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1526 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1526/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1526/comments | https://api.github.com/repos/coleifer/peewee/issues/1526/events | https://github.com/coleifer/peewee/issues/1526 | 301,951,733 | MDU6SXNzdWUzMDE5NTE3MzM= | 1,526 | Get all results from a Select Query without specifying columns | {
"login": "ketozhang",
"id": 13506487,
"node_id": "MDQ6VXNlcjEzNTA2NDg3",
"avatar_url": "https://avatars.githubusercontent.com/u/13506487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ketozhang",
"html_url": "https://github.com/ketozhang",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"I'm not sure about your definition for the `User` model you've used in your examples, but presumably it has fields on it besides the ID?\r\n\r\nLet's look at some examples:\r\n\r\n```python\r\nclass User(Model):\r\n username = TextField()\r\n```\r\n\r\nThe user model in these examples has a username field, as w... | 2018-03-03T01:03:25 | 2018-03-03T01:55:07 | 2018-03-03T01:32:48 | NONE | null | Hi, so far I've read majority of the documentation on peewee. While there are plenty of instructions on how to create a SelectQuery [[1]](http://docs.peewee-orm.com/en/latest/peewee/querying.html
)[[2]](http://docs.peewee-orm.com/en/latest/peewee/query_examples.html#basic-exercises). There is no example on extracting ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1526/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/1526/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1525 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1525/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1525/comments | https://api.github.com/repos/coleifer/peewee/issues/1525/events | https://github.com/coleifer/peewee/issues/1525 | 301,635,789 | MDU6SXNzdWUzMDE2MzU3ODk= | 1,525 | execute_sql() got an unexpected keyword argument 'commit' | {
"login": "jcrevits",
"id": 11039634,
"node_id": "MDQ6VXNlcjExMDM5NjM0",
"avatar_url": "https://avatars.githubusercontent.com/u/11039634?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jcrevits",
"html_url": "https://github.com/jcrevits",
"followers_url": "https://api.github.com/users/jcr... | [] | closed | false | null | [] | null | [
"I'm not sure I follow. In your database class have you overridden the `execute_sql` method?\r\n\r\nIf you look at the signature of `execute_sql` you'll see:\r\n\r\n```python\r\n def execute_sql(self, sql, params=None, commit=SENTINEL):\r\n```\r\n\r\nI don't see `execute_sql()` being overridden by either `Postgr... | 2018-03-02T02:52:07 | 2018-03-05T02:27:58 | 2018-03-05T02:27:58 | NONE | null | Hi there, good job on the new version and I've been trying to upgrade one of our (older) systems that uses peewee. However I've been encountering the issue below. Does the traceback speak to you? This is with using postgres and `PooledPostgresqlExtDatabase`. Thank you and "hopefully" this is not on my side! (i.e. it's ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1525/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/1525/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1524 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1524/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1524/comments | https://api.github.com/repos/coleifer/peewee/issues/1524/events | https://github.com/coleifer/peewee/issues/1524 | 301,485,327 | MDU6SXNzdWUzMDE0ODUzMjc= | 1,524 | Documentation for `Case` Shortcut | {
"login": "r0mille",
"id": 2582481,
"node_id": "MDQ6VXNlcjI1ODI0ODE=",
"avatar_url": "https://avatars.githubusercontent.com/u/2582481?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/r0mille",
"html_url": "https://github.com/r0mille",
"followers_url": "https://api.github.com/users/r0mille/... | [] | closed | false | null | [] | null | [
"I forgot that file existed, and so it hasn't been updated yet for 3.x.\r\n\r\nYou can find the `Case` helper here, as it's now part of \"peewee.py\": http://docs.peewee-orm.com/en/latest/peewee/api.html#Case"
] | 2018-03-01T17:06:25 | 2018-03-01T17:11:09 | 2018-03-01T17:11:09 | NONE | null | https://github.com/coleifer/peewee/blob/master/playhouse/README.md
mentions a section for `Shortcuts/helpers` where CASE statements can be constructed.
However there is nothing in Peewee docs that would help a user figure out how to construct `CASE` statements.
http://docs.peewee-orm.com/en/latest/peewee/playhous... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1524/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/1524/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1523 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1523/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1523/comments | https://api.github.com/repos/coleifer/peewee/issues/1523/events | https://github.com/coleifer/peewee/issues/1523 | 301,282,369 | MDU6SXNzdWUzMDEyODIzNjk= | 1,523 | Aggregation result as list | {
"login": "ak4nv",
"id": 73960,
"node_id": "MDQ6VXNlcjczOTYw",
"avatar_url": "https://avatars.githubusercontent.com/u/73960?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ak4nv",
"html_url": "https://github.com/ak4nv",
"followers_url": "https://api.github.com/users/ak4nv/followers",
"f... | [] | closed | false | null | [] | null | [
"I'm going to assume the `name` field has a string as Python equivalent. By default, the result of the query is coerced to the same type of the original field, a string in this case. You can prevent this by doing:\r\n\r\n``` python\r\n qs = (Model\r\n .select(Model.group, fn.array_agg(Model.name, coerce... | 2018-03-01T05:28:14 | 2018-03-02T04:49:08 | 2018-03-02T04:49:08 | NONE | null | Hi!
First of all my congratulations with new major release! I've been using peewee several years and I love it!
This code below returns aggregated field as string. Is there another way to get result as list?
```python
qs = (Model
.select(Model.group, fn.array_agg(Model.name).alias('name'))
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1523/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/1523/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1522 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1522/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1522/comments | https://api.github.com/repos/coleifer/peewee/issues/1522/events | https://github.com/coleifer/peewee/issues/1522 | 300,848,272 | MDU6SXNzdWUzMDA4NDgyNzI= | 1,522 | Returns on inserts | {
"login": "justin-richert",
"id": 12699723,
"node_id": "MDQ6VXNlcjEyNjk5NzIz",
"avatar_url": "https://avatars.githubusercontent.com/u/12699723?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/justin-richert",
"html_url": "https://github.com/justin-richert",
"followers_url": "https://api.gi... | [] | closed | false | null | [] | null | [
"The code gets a bit difficult when it's trying to figure out what to return for insert queries when the db supports returning clauses. By default we want to select the table's primary key and return the last-inserted ID...but if the user specifies something else, we probably should return a cursor over the returne... | 2018-02-28T00:41:49 | 2018-02-28T14:55:45 | 2018-02-28T04:00:29 | NONE | null | I'm having a little trouble with peewee's insert query.
It would be ideal if `<ModelInstance>.create()` would allow for returning all columns. I know it returns primary keys automatically, but I have a model that has server side defaults besides the primary key that I need to render in a response after inserting a... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1522/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/1522/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1521 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1521/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1521/comments | https://api.github.com/repos/coleifer/peewee/issues/1521/events | https://github.com/coleifer/peewee/issues/1521 | 300,575,416 | MDU6SXNzdWUzMDA1NzU0MTY= | 1,521 | different exception type | {
"login": "MR-omid",
"id": 3023805,
"node_id": "MDQ6VXNlcjMwMjM4MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/3023805?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MR-omid",
"html_url": "https://github.com/MR-omid",
"followers_url": "https://api.github.com/users/MR-omid/... | [] | closed | false | null | [] | null | [
"Peewee wraps database driver-specific exceptions with it's own exception types... This is done so that, regardless of what database driver you're using, you can catch the a single exception type.\r\n\r\nSo you would, theoretically, just write:\r\n\r\n```python\r\ntry:\r\n model.save()\r\nexcept peewee.Integrity... | 2018-02-27T10:36:31 | 2018-03-07T02:02:42 | 2018-03-05T13:15:57 | NONE | null | hi
with postgres database connection, exception raised as `psycopg2.IntegrityError` but its not same as `peewee.IntegrityError` and not catchable.
it is normal to use `psycopg2.IntegrityError` in except ?
for example:
```
try:
model.save()
except psycopg2.IntegrityError:
raise
``` | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1521/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/1521/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1520 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1520/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1520/comments | https://api.github.com/repos/coleifer/peewee/issues/1520/events | https://github.com/coleifer/peewee/issues/1520 | 300,543,511 | MDU6SXNzdWUzMDA1NDM1MTE= | 1,520 | Subquery (SELECT) in join condition doesn't produce valid SQL | {
"login": "Karel-van-de-Plassche",
"id": 6404167,
"node_id": "MDQ6VXNlcjY0MDQxNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/6404167?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Karel-van-de-Plassche",
"html_url": "https://github.com/Karel-van-de-Plassche",
"followers_ur... | [] | closed | false | null | [] | null | [
"The query example you provided makes no sense to me. Why are you joining `PureNetworkParams` on a sub-select when you are already selecting from the `Network` model? I'd think this is more correct:\r\n\r\n```python\r\nquery = (Network\r\n .select()\r\n .join(PureNetworkParams, on=(PureNetworkParams... | 2018-02-27T09:02:33 | 2018-02-28T17:44:32 | 2018-02-27T16:28:27 | NONE | null | I'm using 96cbe09. In a complicated query I need to join on a subquery result. The smallest reproducible case that gives the same error/SQL problems is:
``` python
query = (Network
.select()
.join(PureNetworkParams,
on=(PureNetworkParams.network_id ==
Network... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1520/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/1520/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1519 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1519/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1519/comments | https://api.github.com/repos/coleifer/peewee/issues/1519/events | https://github.com/coleifer/peewee/issues/1519 | 300,533,502 | MDU6SXNzdWUzMDA1MzM1MDI= | 1,519 | Cursor count attribute returns 0, when shouldn't | {
"login": "vikt0rs",
"id": 5230490,
"node_id": "MDQ6VXNlcjUyMzA0OTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/5230490?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vikt0rs",
"html_url": "https://github.com/vikt0rs",
"followers_url": "https://api.github.com/users/vikt0rs/... | [] | closed | false | null | [] | null | [
"The `count` attribute of the cursor wrapper is something different than the `count()` method of a `Select` query:\r\n\r\n```python\r\n\r\ncreate_3_users()\r\nUser.select().count() == 3 # True\r\n\r\nqr = User.select().execute()\r\nqr.count == 0 # True\r\n\r\n[x for x in qr]\r\nqr.count == 3 # True\r\n```\r\n\r\... | 2018-02-27T08:27:23 | 2018-02-27T15:56:47 | 2018-02-27T15:09:20 | NONE | null | For some reasons, when I try to check if request returns some data with the "count" attribute, the check fails because it always returns 0. Please, suggest.
PS - this also worked in 2.X
```
>>> docs.select().execute()
<peewee.ModelObjectCursorWrapper object at 0x1089b80f0>
>>> docs.select().execute().count
0
>... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1519/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/1519/timeline | null | completed | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.