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/1118 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1118/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1118/comments | https://api.github.com/repos/coleifer/peewee/issues/1118/events | https://github.com/coleifer/peewee/issues/1118 | 187,488,949 | MDU6SXNzdWUxODc0ODg5NDk= | 1,118 | Error installing under PyPy | {
"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 | [
"I'm not sure what all is going on in the error you pasted. I literally have no idea.\n",
"My best guess so far is that speedups are probably missing some kind of definition to match PyPy's C headers. Cython also has issues with PyPy, so these probably need to move to cffi or something.\n\nEither way, I need to f... | 2016-11-05T10:25:18 | 2016-11-13T22:38:07 | 2016-11-13T22:38:07 | CONTRIBUTOR | null | When trying to install under `pyenv`, I'm getting the following:
```
Running setup.py install for peewee
Complete output from command /home/rcarmo/.pyenv/versions/pypy-5.4.1/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-T8dLe0/peewee/setup.py';exec(compile(getattr(tokenize, 'open', open)(... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1118/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/1118/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1117 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1117/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1117/comments | https://api.github.com/repos/coleifer/peewee/issues/1117/events | https://github.com/coleifer/peewee/issues/1117 | 186,958,602 | MDU6SXNzdWUxODY5NTg2MDI= | 1,117 | Nested brackets in the documentation? | {
"login": "NathanWailes",
"id": 1755791,
"node_id": "MDQ6VXNlcjE3NTU3OTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1755791?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NathanWailes",
"html_url": "https://github.com/NathanWailes",
"followers_url": "https://api.github.com... | [] | closed | false | null | [] | null | [
"These are optional keyword arguments. The arguments in brackets are shown with their default values (if they have one).\n",
"I understand that brackets indicate optional arguments; I'm asking why they're nested.\n",
"Because that's how you do it. https://docs.python.org/3/library/collections.html#collections.d... | 2016-11-03T00:58:31 | 2016-11-04T19:49:16 | 2016-11-03T04:45:02 | NONE | null | What do the nested brackets mean in the documentation?
`model_to_dict(model[, recurse=True[, backrefs=False[, only=None[, exclude=None[, extra_attrs=None[, fields_from_query=None]]]]]])`
([Link](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#model_to_dict))
I looked online and it seems that having brac... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1117/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/1117/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1116 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1116/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1116/comments | https://api.github.com/repos/coleifer/peewee/issues/1116/events | https://github.com/coleifer/peewee/issues/1116 | 186,837,520 | MDU6SXNzdWUxODY4Mzc1MjA= | 1,116 | Silence Signals Support | {
"login": "smittysmee",
"id": 8376011,
"node_id": "MDQ6VXNlcjgzNzYwMTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8376011?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/smittysmee",
"html_url": "https://github.com/smittysmee",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"I'm not following this at all. \n",
"The signals all have a disconnect method, so you could use that. Alternatively you could use a global variable or thread local to keep track of the state.\n"
] | 2016-11-02T15:41:20 | 2016-11-02T17:17:56 | 2016-11-02T17:17:56 | NONE | null | Would it be possible to add the ability to silence signals for the pre_save handler, post_save handler, etc. This would allow for pre_save and post_save actions on the objects to prevent a loop modification within a handler.
Essentially, I have a process that once it is posted, the handler will take the object and p... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1116/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/1116/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1115 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1115/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1115/comments | https://api.github.com/repos/coleifer/peewee/issues/1115/events | https://github.com/coleifer/peewee/issues/1115 | 186,366,882 | MDU6SXNzdWUxODYzNjY4ODI= | 1,115 | FlaskDB with existing proxy | {
"login": "timster",
"id": 173666,
"node_id": "MDQ6VXNlcjE3MzY2Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/173666?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timster",
"html_url": "https://github.com/timster",
"followers_url": "https://api.github.com/users/timster/fo... | [] | closed | false | null | [] | null | [
"Argh. This can be closed. After posting, I wondered why I was using FlaskDB in the first place. I updated my code to just connect/disconnect before/after app requests. No FlaskDB needed.\n\n``` python\n@app.before_request\ndef connect_proxy():\n initialize_proxy()\n proxy.connect()\n\n@app.teardown_request\n... | 2016-10-31T18:54:11 | 2016-11-01T13:21:35 | 2016-11-01T13:21:35 | NONE | null | I have an existing set of models that I'm trying to integrate into a new Flask app. For all these models, I'm using a Proxy object as the database.
It would be great if FlaskDB accepted a Proxy instance as the `database` argument, but it seems like it only works with a Database instance.
Here's a minimal reproduc... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1115/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/1115/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1114 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1114/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1114/comments | https://api.github.com/repos/coleifer/peewee/issues/1114/events | https://github.com/coleifer/peewee/issues/1114 | 186,196,086 | MDU6SXNzdWUxODYxOTYwODY= | 1,114 | unsafe in multi-thread context | {
"login": "argpass",
"id": 16532113,
"node_id": "MDQ6VXNlcjE2NTMyMTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16532113?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/argpass",
"html_url": "https://github.com/argpass",
"followers_url": "https://api.github.com/users/argpas... | [] | closed | false | null | [] | null | [
"Can you explain in greater detail? Peewee stores the connection state in a thread-local, so each thread should by default have its own connection.\n",
"Whatever, closing.\n",
"Please comment if you have any information you can provide to clarify the issue.\n"
] | 2016-10-31T03:30:50 | 2016-11-02T17:19:38 | 2016-11-02T17:18:48 | NONE | null | ```
class MyModel(Model):
name = CharField()
class Meta:
db = my_db
```
using `MyModel` in multi-thread environment is unsafe, as db can not be shared in different threads. | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1114/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/1114/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1113 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1113/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1113/comments | https://api.github.com/repos/coleifer/peewee/issues/1113/events | https://github.com/coleifer/peewee/pull/1113 | 185,766,274 | MDExOlB1bGxSZXF1ZXN0OTEyNzA0NTU= | 1,113 | Add IntegrityError check in case post title is already in database. | {
"login": "bdauer",
"id": 13219866,
"node_id": "MDQ6VXNlcjEzMjE5ODY2",
"avatar_url": "https://avatars.githubusercontent.com/u/13219866?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bdauer",
"html_url": "https://github.com/bdauer",
"followers_url": "https://api.github.com/users/bdauer/fo... | [] | closed | false | null | [] | null | [
"Was just running through your awesome tutorial and caught an error when playing with it. Figured I'd submit a PR.\n",
"I appreciate the intentions, but your change-set has more problems than it attempts to solve. I've fixed the underlying issue with 6a07c8e1d949724ae10c9e304b1d7d30214cf2c6\n",
"Oh shoot I didn... | 2016-10-27T20:02:54 | 2016-10-28T01:12:53 | 2016-10-27T22:08:45 | NONE | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1113/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/1113/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1113",
"html_url": "https://github.com/coleifer/peewee/pull/1113",
"diff_url": "https://github.com/coleifer/peewee/pull/1113.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1113.patch",
"merged_at": null
} | |
https://api.github.com/repos/coleifer/peewee/issues/1112 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1112/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1112/comments | https://api.github.com/repos/coleifer/peewee/issues/1112/events | https://github.com/coleifer/peewee/issues/1112 | 185,413,975 | MDU6SXNzdWUxODU0MTM5NzU= | 1,112 | BooleanField is_true and is_false methods | {
"login": "danilobellini",
"id": 2096474,
"node_id": "MDQ6VXNlcjIwOTY0NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/2096474?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danilobellini",
"html_url": "https://github.com/danilobellini",
"followers_url": "https://api.github.... | [] | closed | false | null | [] | null | [
"I appreciate you taking the time to submit this issue. Unfortunately, peewee does quite a few things that many linters find egregious. I don't use linters myself, so it doesn't bother me and personally I'm not interested in adding code simply to satisfy flake8. Thanks for providing a reference implementation, any... | 2016-10-26T14:42:04 | 2021-02-26T21:41:44 | 2016-10-26T15:14:15 | NONE | null | # Proposal
Add methods to BooleanField so that we can create expressions like `MyModel.my_field.is_true()` and `MyModel.my_field.is_false()` instead of `MyModel.my_field == True` and `MyModel.my_field == False`.
# Rationale
I'm using `flake8`, with a selected list of [pycodestyle error codes](http://pycodestyle.readt... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1112/reactions",
"total_count": 5,
"+1": 5,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/coleifer/peewee/issues/1112/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1111 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1111/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1111/comments | https://api.github.com/repos/coleifer/peewee/issues/1111/events | https://github.com/coleifer/peewee/issues/1111 | 185,240,500 | MDU6SXNzdWUxODUyNDA1MDA= | 1,111 | How do I make a CharField(collate='nocase')? | {
"login": "stenci",
"id": 5955495,
"node_id": "MDQ6VXNlcjU5NTU0OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5955495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stenci",
"html_url": "https://github.com/stenci",
"followers_url": "https://api.github.com/users/stenci/foll... | [] | closed | false | null | [] | null | [
"You can add a constraint:\n\n``` python\ncolumn = CharField(constraints=[SQL('COLLATE NOCASE')])\n```\n"
] | 2016-10-25T21:35:35 | 2016-10-25T21:41:18 | 2016-10-25T21:41:18 | CONTRIBUTOR | null | Is it possible to create a field with [`COLLATE nocase`](https://www.sqlite.org/datatype3.html#collation_sequence_examples)?
```
CREATE TABLE tab (col TEXT COLLATE nocase);
```
I looked for something like this, but I couldn't find it:
```
class Tab(Model):
col = CharField(collate='nocase')
```
The alternative i... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1111/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/1111/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1110 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1110/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1110/comments | https://api.github.com/repos/coleifer/peewee/issues/1110/events | https://github.com/coleifer/peewee/issues/1110 | 185,189,542 | MDU6SXNzdWUxODUxODk1NDI= | 1,110 | MySQL - TimestampField Issue | {
"login": "Byte-Lorenz",
"id": 17599866,
"node_id": "MDQ6VXNlcjE3NTk5ODY2",
"avatar_url": "https://avatars.githubusercontent.com/u/17599866?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Byte-Lorenz",
"html_url": "https://github.com/Byte-Lorenz",
"followers_url": "https://api.github.com/... | [] | closed | false | null | [] | null | [
"> Inserting TimestampFied with value: 1475411420001 will be stored in the MySQL database as 1475411420001000.\n> Although the resolution of the field is set to milliseconds (1.000) and not to microseconds (1.000.000)\n\nIt looks to me like you've over-thought it and done the multiplication yourself. The purpose of... | 2016-10-25T17:58:04 | 2016-10-25T18:22:24 | 2016-10-25T18:22:24 | NONE | null | **Model:**
`class Issue(BaseModel):
time = TimestampField(resolution=1000)`
Doc: [http://docs.peewee-orm.com/en/latest/peewee/api.html#TimestampField](url)
**Issue:**
Inserting TimestampFied with value: `1475411420001` will be stored in the MySQL database as `1475411420001000`.
Although the resolution of the field is... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1110/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/1110/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1109 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1109/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1109/comments | https://api.github.com/repos/coleifer/peewee/issues/1109/events | https://github.com/coleifer/peewee/issues/1109 | 185,059,843 | MDU6SXNzdWUxODUwNTk4NDM= | 1,109 | AttributeError with db.atomic() and SqliteQ | {
"login": "theotherp",
"id": 14368889,
"node_id": "MDQ6VXNlcjE0MzY4ODg5",
"avatar_url": "https://avatars.githubusercontent.com/u/14368889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/theotherp",
"html_url": "https://github.com/theotherp",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Are you running on the current, very latest commit? Because `sqliteq`'s `atomic()` is kinda broken right now in a totally different way, as I'm in the process of implementing something like a pipeline in Redis.\n",
"Yeah, that's why I mentioned the commit hash. Not sure if you want feedback on your current devel... | 2016-10-25T09:08:31 | 2016-10-25T19:22:50 | 2016-10-25T19:22:49 | NONE | null | It's me again...
With 6ffc93cd867a7f3b28783ad4f533b1f9a205f540 I get an AttributeError using db.atomic() because lock_type is not set:
```
File "C:/Users/user/PycharmProjects/nzbhydra\nzbhydra\search.py", line 318, in search
with db.atomic():
File "C:\Users\user\PycharmProjects\nzbhydra\libs\peewee.py", line 4... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1109/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/1109/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1108 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1108/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1108/comments | https://api.github.com/repos/coleifer/peewee/issues/1108/events | https://github.com/coleifer/peewee/pull/1108 | 184,795,802 | MDExOlB1bGxSZXF1ZXN0OTA1ODAzNjc= | 1,108 | Added a test to check whether a connection is already open. | {
"login": "romanek-adam",
"id": 760766,
"node_id": "MDQ6VXNlcjc2MDc2Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/760766?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/romanek-adam",
"html_url": "https://github.com/romanek-adam",
"followers_url": "https://api.github.com/u... | [] | closed | false | null | [] | null | [
"I'd like to add something like this, but am worried about breaking too many people's code... I'll look into a similar patch.\n",
"9e76c999868197a4911fa2fa457c50ab42431ff1\n",
"Thanks!\n",
"FYI: this did break our code like you mentioned above. I can work around it in our codebase but I expect this caused pro... | 2016-10-24T09:51:44 | 2017-02-23T16:15:46 | 2016-10-25T19:29:25 | NONE | null | Most importantly the check prevents from leaking database connections,
which can be disasterous when using connection pools.
Moreover it allows one to catch errors in the code which were caused
by not using database.connect() / database.close() properly.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1108/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/1108/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1108",
"html_url": "https://github.com/coleifer/peewee/pull/1108",
"diff_url": "https://github.com/coleifer/peewee/pull/1108.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1108.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1107 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1107/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1107/comments | https://api.github.com/repos/coleifer/peewee/issues/1107/events | https://github.com/coleifer/peewee/pull/1107 | 184,769,370 | MDExOlB1bGxSZXF1ZXN0OTA1NjI0NjM= | 1,107 | some string can't been decoded by utf8, return s | {
"login": "bagel",
"id": 706788,
"node_id": "MDQ6VXNlcjcwNjc4OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/706788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bagel",
"html_url": "https://github.com/bagel",
"followers_url": "https://api.github.com/users/bagel/followers"... | [] | closed | false | null | [] | null | [
"Nice, thanks for this.\n"
] | 2016-10-24T07:39:37 | 2016-10-25T19:10:20 | 2016-10-25T19:09:41 | CONTRIBUTOR | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1107/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/1107/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1107",
"html_url": "https://github.com/coleifer/peewee/pull/1107",
"diff_url": "https://github.com/coleifer/peewee/pull/1107.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1107.patch",
"merged_at": "2016-10-25T19:09:41"
} | |
https://api.github.com/repos/coleifer/peewee/issues/1106 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1106/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1106/comments | https://api.github.com/repos/coleifer/peewee/issues/1106/events | https://github.com/coleifer/peewee/issues/1106 | 184,580,650 | MDU6SXNzdWUxODQ1ODA2NTA= | 1,106 | "<<" operator does not function on Python sets | {
"login": "josefdlange",
"id": 1062835,
"node_id": "MDQ6VXNlcjEwNjI4MzU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1062835?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/josefdlange",
"html_url": "https://github.com/josefdlange",
"followers_url": "https://api.github.com/us... | [] | closed | false | null | [] | null | [
"I think I'm going to pass on fixing this, as it's a bit of a slippery slope in terms of supporting every data-type. I'd suggest just doing as you showed, and coerce to list.\n",
"Can `Node._in` coerce to list automatically? [`list`](https://docs.python.org/2.6/library/functions.html#list) accepts any iterable, s... | 2016-10-21T22:06:57 | 2016-11-10T17:06:52 | 2016-10-24T00:12:20 | CONTRIBUTOR | null | The `<<` operator in a query where the right-hand side of a `.where()` clause is a Python `set()` causes for a `ProgrammingError` on query (at least via Postgres):
```
users = set([1, 2, 3]) # Assume the set is not as trivial as this...
for u in User.select().where(User.id << users):
print u.name
ProgrammingErro... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1106/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/1106/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1105 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1105/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1105/comments | https://api.github.com/repos/coleifer/peewee/issues/1105/events | https://github.com/coleifer/peewee/issues/1105 | 184,426,639 | MDU6SXNzdWUxODQ0MjY2Mzk= | 1,105 | Tuples in SQL | {
"login": "maaaks",
"id": 3010238,
"node_id": "MDQ6VXNlcjMwMTAyMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3010238?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maaaks",
"html_url": "https://github.com/maaaks",
"followers_url": "https://api.github.com/users/maaaks/foll... | [] | closed | false | null | [] | null | [
"Traditionally, peewee hasn't supported this explicitly. Though with SQLite's new row-values stuff getting released I think it should, so I'll look at a patch.\n",
"I haven't tried yet, but I just suddenly thought that I maybe could get what I want using `CommaClause`, couldn't I?\n",
"Yes that should certainly... | 2016-10-21T08:23:06 | 2019-02-04T15:18:57 | 2016-11-14T02:44:45 | CONTRIBUTOR | null | In a query, I need to compare tuples of values (I'm not sure how are they correctly called in SQL, maybe «records»?..), like this:
``` sql
where (a.field1, a.field2) < (b.field1, b.field2)
```
Currently I achieved this by calling an empty-named function through `fn` which works but seems to be a hack or maybe even a ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1105/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/1105/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1104 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1104/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1104/comments | https://api.github.com/repos/coleifer/peewee/issues/1104/events | https://github.com/coleifer/peewee/issues/1104 | 184,122,362 | MDU6SXNzdWUxODQxMjIzNjI= | 1,104 | Segmentation fault (core dumped) when executing model_to_dict(recurse=False) | {
"login": "ajpen",
"id": 4834786,
"node_id": "MDQ6VXNlcjQ4MzQ3ODY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4834786?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ajpen",
"html_url": "https://github.com/ajpen",
"followers_url": "https://api.github.com/users/ajpen/follower... | [] | closed | false | null | [] | null | [
"It appears this could be due to low memory. I'll check that possibility.\n",
"Okay, after some digging, I got this. \n\nThe segfault is a `SIGSEGV`. \n\nHere's the backtrace from gdb\n\n```\n#0 0x00000000005377c7 in _PyObject_GC_New ()\n#1 0x00000000005379da in PyDict_New ()\n#2 0x00000000004ad2fd in _PyObjec... | 2016-10-20T02:46:50 | 2016-10-20T22:27:20 | 2016-10-20T12:05:38 | NONE | null | Here's the problematic method
```
@app.route('/get_records_by_group', methods=["POST"])
def get_records_by_group():
# try:
# session["user"]
# except KeyError:
# return jsonify(**{"code": "401", "message" : "Unauthorized"})
parameters = request.get_json(force=True)
try:
group... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1104/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/1104/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1103 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1103/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1103/comments | https://api.github.com/repos/coleifer/peewee/issues/1103/events | https://github.com/coleifer/peewee/issues/1103 | 183,874,618 | MDU6SXNzdWUxODM4NzQ2MTg= | 1,103 | Select from query | {
"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 | [
"Used `from_` keyword.\n\n``` python\n subq = (HistRec\n .select(fn.unnest(fn.string_to_array(HistRec.medserv, ' ')).alias('ms'))\n .where(HistRec.state == 1)\n .alias('subq'))\n\n qs = (HistRec\n .select(subq.c.ms, fn.count(subq.c.ms))\n .from_(subq)\n ... | 2016-10-19T06:17:11 | 2016-10-25T18:37:29 | 2016-10-25T01:37:43 | NONE | null | Hi!
Cannot understand how to select from query?
``` sql
select ms, count(ms) from
(select unnest(string_to_array(medserv,' ')) as ms
from hist h
where h.state = 1
) as a
group by ms
order by ms
```
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1103/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/1103/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1102 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1102/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1102/comments | https://api.github.com/repos/coleifer/peewee/issues/1102/events | https://github.com/coleifer/peewee/issues/1102 | 183,684,140 | MDU6SXNzdWUxODM2ODQxNDA= | 1,102 | db.create_tables causes exception in MySQLdb | {
"login": "codylandry",
"id": 12991706,
"node_id": "MDQ6VXNlcjEyOTkxNzA2",
"avatar_url": "https://avatars.githubusercontent.com/u/12991706?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/codylandry",
"html_url": "https://github.com/codylandry",
"followers_url": "https://api.github.com/use... | [] | closed | false | null | [] | null | [
"You neglected to share the only the thing I really need to debug this: the model definition!\n",
"AH, my bad. Here you go!\n\n```\nclass customer(BaseModel):\n entityId = ForeignKeyField(null=True, rel_model=entity, on_delete=\"SET NULL\")\n parent = ForeignKeyField(null=True, rel_model='self', on_delete=... | 2016-10-18T13:20:10 | 2021-12-01T16:06:03 | 2016-10-18T14:36:44 | NONE | null | After creating model classes, I attempted to run db.create_tables and received the following error:
```
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1580, in <module>
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/P... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1102/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/1102/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1101 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1101/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1101/comments | https://api.github.com/repos/coleifer/peewee/issues/1101/events | https://github.com/coleifer/peewee/issues/1101 | 183,649,300 | MDU6SXNzdWUxODM2NDkzMDA= | 1,101 | How to hook long query for debug information | {
"login": "THaGKI9",
"id": 14999583,
"node_id": "MDQ6VXNlcjE0OTk5NTgz",
"avatar_url": "https://avatars.githubusercontent.com/u/14999583?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/THaGKI9",
"html_url": "https://github.com/THaGKI9",
"followers_url": "https://api.github.com/users/THaGKI... | [] | closed | false | null | [] | null | [
"This would need to be implemented in the application. You can use `SIGALARM` to do this:\n\n``` python\ndef long_query(signal, frame):\n # handle long running query here\n pass\n\nsignal.signal(signal.SIGALRM, long_query)\nsignal.alarm(number_of_seconds_to_timeout)\ntry:\n execute_some_slow_query()\nfinal... | 2016-10-18T10:35:37 | 2016-10-18T13:54:14 | 2016-10-18T13:54:14 | NONE | null | I found that the peewee framework doesn't provide any way to intercept any long query and it's necessary to monitor such situation for further performance improvement.
Is there any efficient way?
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1101/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/1101/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1100 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1100/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1100/comments | https://api.github.com/repos/coleifer/peewee/issues/1100/events | https://github.com/coleifer/peewee/issues/1100 | 183,512,937 | MDU6SXNzdWUxODM1MTI5Mzc= | 1,100 | get of create_or_get does not account for unique indexes | {
"login": "seaneagan",
"id": 444270,
"node_id": "MDQ6VXNlcjQ0NDI3MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/444270?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/seaneagan",
"html_url": "https://github.com/seaneagan",
"followers_url": "https://api.github.com/users/sean... | [] | closed | false | null | [] | null | [
"Correct, I can see about improving the code to include these types of constraints.\n",
"To be honest, there is no piece of code I regret more than get_or_create. It's so easy to write your own version that's specific to your model. But a general purpose one is complicated. Ugh.\n",
"I think I'm actually going ... | 2016-10-17T20:02:41 | 2016-11-14T00:54:30 | 2016-11-14T00:54:30 | NONE | null | It accounts for fields that are `unique=True` [here](https://github.com/coleifer/peewee/blob/8dbf04073a0b02490cc8d86ae701523cc7481a4a/peewee.py#L4871), but not (possibly composite) unique indexes set on the meta model.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1100/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/1100/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1099 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1099/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1099/comments | https://api.github.com/repos/coleifer/peewee/issues/1099/events | https://github.com/coleifer/peewee/issues/1099 | 183,251,179 | MDU6SXNzdWUxODMyNTExNzk= | 1,099 | trouble with ".select()" using peewee database | {
"login": "leojacoby",
"id": 22846444,
"node_id": "MDQ6VXNlcjIyODQ2NDQ0",
"avatar_url": "https://avatars.githubusercontent.com/u/22846444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leojacoby",
"html_url": "https://github.com/leojacoby",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"It looks like you're missing assigning your database to your model:\n\n``` python\ndb = SqliteDatabase('my_app.db')\n\nclass Player(Model):\n name = CharField()\n\n class Meta:\n database = db\n\ndb.create_tables([Player], True)\n```\n"
] | 2016-10-16T05:57:19 | 2016-10-16T15:11:53 | 2016-10-16T15:11:53 | NONE | null | I am making a peewee database. In my python code I try to retrieve rows from the model that may be empty:
`player_in_db = Player.select().where(Player.name == player.name_display_first_last)`
`Player` is the name of the model
`name` is a field instance in `Player` defined...
```
class Player(Model):
name = Ch... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1099/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/1099/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1098 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1098/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1098/comments | https://api.github.com/repos/coleifer/peewee/issues/1098/events | https://github.com/coleifer/peewee/issues/1098 | 183,235,842 | MDU6SXNzdWUxODMyMzU4NDI= | 1,098 | Playhouse extension for asyncpg | {
"login": "kolanos",
"id": 17498,
"node_id": "MDQ6VXNlcjE3NDk4",
"avatar_url": "https://avatars.githubusercontent.com/u/17498?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kolanos",
"html_url": "https://github.com/kolanos",
"followers_url": "https://api.github.com/users/kolanos/follower... | [] | closed | false | null | [] | null | [
"The built-in async stuff all requires Python 3, and since Peewee supports both 2 and 3, any async will need to be implemented outside Peewee itself. I'd consider merging a `playhouse` extension, but as long as I'm still using Python 2 and `gevent`, I'm going to have trouble maintaining any 3.x-specific async code ... | 2016-10-15T22:09:19 | 2016-10-17T01:24:38 | 2016-10-16T15:15:55 | NONE | null | Apologies if this has been asked already, but I would very much be interested in a playhouse extension for asyncpg:
https://github.com/MagicStack/asyncpg
Is this in the plans? Or better yet, if a PR was submitted to add asyncpg support would it be considered?
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1098/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/1098/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1097 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1097/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1097/comments | https://api.github.com/repos/coleifer/peewee/issues/1097/events | https://github.com/coleifer/peewee/issues/1097 | 183,179,309 | MDU6SXNzdWUxODMxNzkzMDk= | 1,097 | Question: how to pass a database in tests? | {
"login": "aellwein",
"id": 3179781,
"node_id": "MDQ6VXNlcjMxNzk3ODE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3179781?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aellwein",
"html_url": "https://github.com/aellwein",
"followers_url": "https://api.github.com/users/aellw... | [] | closed | false | null | [] | null | [
"You may find the following helpful: http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#test-utils\n\nBasically, at run-time you can swap out the database by setting `Model1._meta.database = test_db` and doing the same for `Model2`, etc. That's what the above helper takes care of (as well as schema creation... | 2016-10-15T00:57:59 | 2016-10-16T15:20:07 | 2016-10-16T15:20:07 | NONE | null | The documentation mentions about best practice of passing the database from the global scope:
```
sqlite_db = SqliteDatabase('my_app.db')
class BaseModel(Model):
"""A base model that will use our Sqlite database."""
class Meta:
database = sqlite_db
```
I use exact this pattern in my own "persistence.... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1097/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/1097/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1096 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1096/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1096/comments | https://api.github.com/repos/coleifer/peewee/issues/1096/events | https://github.com/coleifer/peewee/issues/1096 | 182,815,363 | MDU6SXNzdWUxODI4MTUzNjM= | 1,096 | `model_to_dict` changes null foreign key fields to empty dicts | {
"login": "seaneagan",
"id": 444270,
"node_id": "MDQ6VXNlcjQ0NDI3MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/444270?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/seaneagan",
"html_url": "https://github.com/seaneagan",
"followers_url": "https://api.github.com/users/sean... | [] | closed | false | null | [] | null | [] | 2016-10-13T15:03:28 | 2016-10-13T20:00:31 | 2016-10-13T20:00:31 | NONE | null | [This line](https://github.com/coleifer/peewee/blob/dc0ac68f3a596e27e117698393b4ab64d2f92617/playhouse/shortcuts.py#L125) causes a null foreign key field to be encoded as an empty dict, instead of the null that it is.
When I try to decode the returned dict back into a model via `dict_to_model`, it chokes on the empty ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1096/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/1096/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1095 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1095/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1095/comments | https://api.github.com/repos/coleifer/peewee/issues/1095/events | https://github.com/coleifer/peewee/issues/1095 | 182,232,215 | MDU6SXNzdWUxODIyMzIyMTU= | 1,095 | join select error | {
"login": "rfyiamcool",
"id": 3785409,
"node_id": "MDQ6VXNlcjM3ODU0MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3785409?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rfyiamcool",
"html_url": "https://github.com/rfyiamcool",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"i know , thanks ! \n"
] | 2016-10-11T10:45:58 | 2016-10-11T12:04:58 | 2016-10-11T12:04:58 | NONE | null | ### this sql syntax is error ? the two table not has fk relation .
```
ProductAndCategory.select(ProductAndCategory.top_name, ProductAndCategory.second_name, ProductAndCategory.third_name, Product.pname, Product.pid).join(Product, on=((Product.pid == ProductAndCategory.pid) & (Product.product_ident != '')))
```
err... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1095/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/1095/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1094 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1094/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1094/comments | https://api.github.com/repos/coleifer/peewee/issues/1094/events | https://github.com/coleifer/peewee/pull/1094 | 182,197,898 | MDExOlB1bGxSZXF1ZXN0ODg3ODczMDU= | 1,094 | Easier way to define index type for Postgres custom fields | {
"login": "yohanboniface",
"id": 146023,
"node_id": "MDQ6VXNlcjE0NjAyMw==",
"avatar_url": "https://avatars.githubusercontent.com/u/146023?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yohanboniface",
"html_url": "https://github.com/yohanboniface",
"followers_url": "https://api.github.co... | [] | closed | false | null | [] | null | [
"Not sure what the purpose is for this change, can you explain?\n",
"> Not sure what the purpose is for this change, can you explain?\n\nAllow to deal with `index_type` without the need of inheriting from `IndexedFieldMixin`.\nThe simpler, the better :)\n",
"I appreciate the simplicity of this... let me think a... | 2016-10-11T08:04:19 | 2016-10-16T05:14:54 | 2016-10-16T05:14:54 | CONTRIBUTOR | null | Thanks :)
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1094/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/1094/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1094",
"html_url": "https://github.com/coleifer/peewee/pull/1094",
"diff_url": "https://github.com/coleifer/peewee/pull/1094.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1094.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1093 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1093/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1093/comments | https://api.github.com/repos/coleifer/peewee/issues/1093/events | https://github.com/coleifer/peewee/issues/1093 | 181,828,131 | MDU6SXNzdWUxODE4MjgxMzE= | 1,093 | Unable to except OperationalError / connection trying to be closed after catch block | {
"login": "theotherp",
"id": 14368889,
"node_id": "MDQ6VXNlcjE0MzY4ODg5",
"avatar_url": "https://avatars.githubusercontent.com/u/14368889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/theotherp",
"html_url": "https://github.com/theotherp",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"OK, I found a bug in Peewee where the calls to commit and rollback weren't being wrapped in the exception wrapper that converts driver-specific exceptions into peewee exceptions. So that is fixed in 900ed22ee5505fa56565d52dc22cfbce496ec60f\n",
"```\nOperationalError: cannot commit - no transaction is active\n```... | 2016-10-08T14:10:28 | 2016-10-10T20:12:45 | 2016-10-09T20:22:12 | NONE | null | This is what my code looks like:
```
try:
searchResult, _ = tryGetOrCreateSearchResultDbEntry(indexer.indexer.id, result)
result.searchResultId = searchResult.id
search_results.append(result)
except (IntegrityError, OperationalError) as e:
logger.error("Error while trying to save search result to datab... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1093/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/1093/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1092 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1092/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1092/comments | https://api.github.com/repos/coleifer/peewee/issues/1092/events | https://github.com/coleifer/peewee/issues/1092 | 181,774,359 | MDU6SXNzdWUxODE3NzQzNTk= | 1,092 | Calling db.rollback() instead of tx.rollback() | {
"login": "stenci",
"id": 5955495,
"node_id": "MDQ6VXNlcjU5NTU0OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5955495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stenci",
"html_url": "https://github.com/stenci",
"followers_url": "https://api.github.com/users/stenci/foll... | [] | closed | false | null | [] | null | [
"```\n+ if self.transaction_depth():\n+ raise Exception('Database.rollback() called while in a transaction (call transaction.rollback() instead).')\n self.get_conn().rollback()\n```\n\nI see the logic in what you're trying to do here, unfortunately I think this one boils down to user ... | 2016-10-07T21:46:26 | 2016-10-10T20:12:20 | 2016-10-10T20:12:20 | CONTRIBUTOR | null | I found a few errors in my app caused by the incorrect use of `rollback()`: Sometimes I called `db.rollback()` while inside (a function called from) a `with transaction as tx:` block instead of calling `tx.rollback()`.
1. The `db.rollback()` from inside a transaction works, but does not automatically [begin a new tran... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1092/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/1092/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1091 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1091/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1091/comments | https://api.github.com/repos/coleifer/peewee/issues/1091/events | https://github.com/coleifer/peewee/issues/1091 | 181,601,016 | MDU6SXNzdWUxODE2MDEwMTY= | 1,091 | Unable to delete sqlite file after connection was closed | {
"login": "theotherp",
"id": 14368889,
"node_id": "MDQ6VXNlcjE0MzY4ODg5",
"avatar_url": "https://avatars.githubusercontent.com/u/14368889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/theotherp",
"html_url": "https://github.com/theotherp",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"Looking at the code for the SQLiteQueueDatabase, I think I need to add some logic in there to close the connection. I'll get a patch up in a minute.\n",
"Note: I can delete the file on linux but not in windows.\n",
"I added the fix for that here: 72c5ea98209241f0fb3e2c1a330644735f803370\n\nBasically, each work... | 2016-10-07T07:23:13 | 2016-10-10T20:50:28 | 2016-10-10T19:59:25 | NONE | null | I'm working on a feature that allows restoring data from a backup ZIP. For this I want to replace the existing database file with one from the ZIP. But even after stopping and closing the SqliteQueueDatabase the file is still used by my process. I've tried to write a simple script to reproduce this issue but of course ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1091/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/1091/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1090 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1090/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1090/comments | https://api.github.com/repos/coleifer/peewee/issues/1090/events | https://github.com/coleifer/peewee/issues/1090 | 181,600,367 | MDU6SXNzdWUxODE2MDAzNjc= | 1,090 | SqliteQueueDatabase.is_stopped() returns false even after successful stop | {
"login": "theotherp",
"id": 14368889,
"node_id": "MDQ6VXNlcjE0MzY4ODg5",
"avatar_url": "https://avatars.githubusercontent.com/u/14368889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/theotherp",
"html_url": "https://github.com/theotherp",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [] | 2016-10-07T07:18:17 | 2016-10-10T19:58:01 | 2016-10-10T19:58:01 | NONE | null | I guess because `self._is_stopped` is never set to true in `stop()`?
To reproduce:
```
from playhouse.sqliteq import SqliteQueueDatabase
db = SqliteQueueDatabase("reproduce.db")
was_started = db.start()
print("Database was started: %s" % was_started)
was_stopped = db.stop()
print("Database was stopped: %s" % was_st... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1090/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/1090/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1089 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1089/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1089/comments | https://api.github.com/repos/coleifer/peewee/issues/1089/events | https://github.com/coleifer/peewee/issues/1089 | 181,229,688 | MDU6SXNzdWUxODEyMjk2ODg= | 1,089 | Deferring initialization doesn't work with SqliteQueueDatabase | {
"login": "theotherp",
"id": 14368889,
"node_id": "MDQ6VXNlcjE0MzY4ODg5",
"avatar_url": "https://avatars.githubusercontent.com/u/14368889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/theotherp",
"html_url": "https://github.com/theotherp",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"You need to call `db.start()` before any queries are going to run.\n",
"Doesn't change the outcome.\n",
"Oh, your model isn't referencing your database. Duh.\n",
"``` python\nclass TestModel(Model):\n test = CharField(null=True)\n\n class Meta:\n database = db\n```\n",
"Oops, that what happens... | 2016-10-05T18:24:17 | 2016-10-05T18:51:52 | 2016-10-05T18:38:26 | NONE | null | To reproduce:
```
import os
from peewee import CharField, Model
from playhouse.sqliteq import SqliteQueueDatabase
class TestModel(Model):
test = CharField(null=True)
db = SqliteQueueDatabase(None)
db.init("reproduce.db")
TestModel.create_table()
print("peewee.db was created: %s" % os.path.exists("peewee.db"))
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1089/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/1089/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1088 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1088/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1088/comments | https://api.github.com/repos/coleifer/peewee/issues/1088/events | https://github.com/coleifer/peewee/issues/1088 | 181,217,913 | MDU6SXNzdWUxODEyMTc5MTM= | 1,088 | ResultTimeout when using SqliteQueueDatabase in forked process | {
"login": "theotherp",
"id": 14368889,
"node_id": "MDQ6VXNlcjE0MzY4ODg5",
"avatar_url": "https://avatars.githubusercontent.com/u/14368889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/theotherp",
"html_url": "https://github.com/theotherp",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"From the SQLite FAQ:\n\n> Under Unix, you should not carry an open SQLite database across a fork() system call into the child process.\n",
"Thanks. But what if I initialize the database in the child process, not the parent process?\n",
"Can you show more code, particularly:\n- How are you instantiating the dat... | 2016-10-05T17:32:34 | 2016-10-05T19:37:39 | 2016-10-05T18:59:44 | NONE | null | I tried your new SqliteQueueDatabase which appears to be awesome and exactly what I needed to get rid of some ugly _database is locked_ errors. Unfortunately I can't get it to work inside a forked process. I use [os.fork()](https://github.com/theotherp/nzbhydra/blob/master/nzbhydra.py#L38) to run my program as a daemon... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1088/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/1088/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1087 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1087/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1087/comments | https://api.github.com/repos/coleifer/peewee/issues/1087/events | https://github.com/coleifer/peewee/issues/1087 | 181,021,286 | MDU6SXNzdWUxODEwMjEyODY= | 1,087 | SqliteQueueDatabase.execute_sql() doesn't work | {
"login": "stenci",
"id": 5955495,
"node_id": "MDQ6VXNlcjU5NTU0OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5955495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stenci",
"html_url": "https://github.com/stenci",
"followers_url": "https://api.github.com/users/stenci/foll... | [] | closed | false | null | [] | null | [
"Odd...that should work. The call to start() is needed (or initialize with autostart=True) because that sets up the worker threads which actually execute the queries. Also, the SqliteQueueDatabase sets the journal mode to wal automatically, but the query should work regardless. Are you using gevent? And when you sa... | 2016-10-04T22:27:53 | 2016-10-06T03:48:34 | 2016-10-06T03:48:34 | CONTRIBUTOR | null | I noticed that this works:
``` python
import peewee
db = peewee.SqliteDatabase('test.db')
print('journal mode = ', next(db.execute_sql('pragma journal_mode'))[0])
```
but this doesn't (with or without the `db.start()`):
``` python
from playhouse.sqliteq import SqliteQueueDatabase
db = SqliteQueueDatabase('test.db')
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1087/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/1087/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1086 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1086/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1086/comments | https://api.github.com/repos/coleifer/peewee/issues/1086/events | https://github.com/coleifer/peewee/issues/1086 | 180,924,060 | MDU6SXNzdWUxODA5MjQwNjA= | 1,086 | date is None with MySQL | {
"login": "albertz",
"id": 59132,
"node_id": "MDQ6VXNlcjU5MTMy",
"avatar_url": "https://avatars.githubusercontent.com/u/59132?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/albertz",
"html_url": "https://github.com/albertz",
"followers_url": "https://api.github.com/users/albertz/follower... | [] | closed | false | null | [] | null | [
"Peewee is using `pymysql` under-the-hood (or `MySQLdb`, whichever you've got installed), so when you are querying the value using `pymysql` directly and not receiving anything that tells me that the issue is not with Peewee but somewhere else. Perhaps with `pymysql` though I'm not sure.\n",
"I reported it to pym... | 2016-10-04T15:21:10 | 2016-10-05T15:40:06 | 2016-10-04T21:03:42 | NONE | null | Via `pwiz` on my MySQL database, I get:
```
class BaseModel(Model):
class Meta:
database = database
class Pub(BaseModel):
...
author = TextField(null=True)
...
publish_date = DateField(null=True)
...
```
Then, when iterating `entry in Pub.select()`, `entry.publish_date` is always `Non... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1086/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/1086/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1085 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1085/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1085/comments | https://api.github.com/repos/coleifer/peewee/issues/1085/events | https://github.com/coleifer/peewee/issues/1085 | 180,868,115 | MDU6SXNzdWUxODA4NjgxMTU= | 1,085 | SQL views | {
"login": "gjask",
"id": 3306648,
"node_id": "MDQ6VXNlcjMzMDY2NDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3306648?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gjask",
"html_url": "https://github.com/gjask",
"followers_url": "https://api.github.com/users/gjask/follower... | [] | closed | false | null | [] | null | [
"I find views to be in a bit of a gray area...kind of like triggers. My personal feeling is that there's enough variety in the types of SQL I'd need to support that until now peewee has avoided representing views or providing helpers to create/drop them. I think that for the time being I will continue to leave this... | 2016-10-04T11:29:19 | 2016-10-04T19:37:51 | 2016-10-04T19:37:51 | NONE | null | I think it would be useful to be able create sql views using peewee api, that would be created with other tables from model classes. As things are now it seems I am forced to create views manually using sql and then create related peewee model.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1085/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/1085/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1084 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1084/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1084/comments | https://api.github.com/repos/coleifer/peewee/issues/1084/events | https://github.com/coleifer/peewee/issues/1084 | 180,664,234 | MDU6SXNzdWUxODA2NjQyMzQ= | 1,084 | SQL() replacement char conflicting with Postgresql JSON operator | {
"login": "alexlatchford",
"id": 628146,
"node_id": "MDQ6VXNlcjYyODE0Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/628146?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alexlatchford",
"html_url": "https://github.com/alexlatchford",
"followers_url": "https://api.github.co... | [] | closed | false | null | [] | null | [
"Peewee's JSON fields contain methods that wrap the Postgres operators:\n\nhttp://docs.peewee-orm.com/en/latest/peewee/playhouse.html#BinaryJSONField\n",
"Have you tried this?\n\n```\nMyModel.jsonb_field.contains('the key')\n```\n",
"I'd suggest that you could also use reduce to generate a list of clauses OR--e... | 2016-10-03T15:04:39 | 2016-10-05T08:22:23 | 2016-10-05T08:22:23 | CONTRIBUTOR | null | I've been trying to query for the existence of a string in a `JSONField` which contains a list of strings. I've resorted to trying to use raw `SQL()` because from what I can glean from reading the code / [this blog post](http://charlesleifer.com/blog/postgresql-hstore-json-data-type-and-arrays-with-peewee-orm/) this so... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1084/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/1084/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1083 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1083/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1083/comments | https://api.github.com/repos/coleifer/peewee/issues/1083/events | https://github.com/coleifer/peewee/issues/1083 | 180,022,008 | MDU6SXNzdWUxODAwMjIwMDg= | 1,083 | AttributeError: 'DatabaseError' object has no attribute 'message' | {
"login": "thacoon",
"id": 14902783,
"node_id": "MDQ6VXNlcjE0OTAyNzgz",
"avatar_url": "https://avatars.githubusercontent.com/u/14902783?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thacoon",
"html_url": "https://github.com/thacoon",
"followers_url": "https://api.github.com/users/thacoo... | [] | closed | false | null | [] | null | [
"This works in Python 2.x, Python 3.x I guess doesn't work the same way.\n"
] | 2016-09-29T11:22:50 | 2016-09-29T14:05:31 | 2016-09-29T14:05:31 | NONE | null | Hi,
I tried this [gist](https://gist.github.com/thedod/11048875) that is referenced to in the [peewee/playhouse/sqlcipher_ext.py](https://github.com/coleifer/peewee/blob/master/playhouse/sqlcipher_ext.py) file, line 51. When running this I get an `AttributeError: 'DatabaseError' object has no attribute 'message'` err... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1083/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/1083/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1082 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1082/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1082/comments | https://api.github.com/repos/coleifer/peewee/issues/1082/events | https://github.com/coleifer/peewee/issues/1082 | 180,019,458 | MDU6SXNzdWUxODAwMTk0NTg= | 1,082 | Please provide a way to easily check NULLness of a foreign key field | {
"login": "maaaks",
"id": 3010238,
"node_id": "MDQ6VXNlcjMwMTAyMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3010238?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maaaks",
"html_url": "https://github.com/maaaks",
"followers_url": "https://api.github.com/users/maaaks/foll... | [] | closed | false | null | [] | null | [
"And — yes, I know about [`suppress()`](https://docs.python.org/3/library/contextlib.html#contextlib.suppress) from standard library, but it still makes impossible to do quick checks inline, like:\n\n``` python\nif obj.other_obj and obj.other_obj.foo == \"bar\":\n # yes, it is \"bar\"\n```\n",
"> This looks go... | 2016-09-29T11:10:09 | 2016-09-30T06:27:26 | 2016-09-29T13:57:03 | CONTRIBUTOR | null | Currently I know only two ways to check whether there is a related instance.
First way:
``` python
try:
other_obj = obj.other_obj
# yes, there is
except OtherObj.DoesNotExist:
# no, there isn't
```
This is **too** long for simple checks which I sometimes have to do.
Second way:
``` python
if obj.other... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1082/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/1082/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1081 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1081/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1081/comments | https://api.github.com/repos/coleifer/peewee/issues/1081/events | https://github.com/coleifer/peewee/issues/1081 | 179,830,565 | MDU6SXNzdWUxNzk4MzA1NjU= | 1,081 | UNION query with limit | {
"login": "jimstjean",
"id": 11493131,
"node_id": "MDQ6VXNlcjExNDkzMTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/11493131?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jimstjean",
"html_url": "https://github.com/jimstjean",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [] | 2016-09-28T17:05:54 | 2016-10-02T16:31:01 | 2016-10-02T16:31:01 | NONE | null | Thanks for your work on the peewee library.
I have just found an issue closely related to #566, this time on mySQL.
The case is:
```
query_1= Object.select().where(SQL(sql_1)).limit(10)
query_2= Object.select().where(SQL(sql_2)).limit(10)
results = (query_1 | query_2).execute()
```
Even if both query_1 and query_2 ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1081/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/1081/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1080 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1080/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1080/comments | https://api.github.com/repos/coleifer/peewee/issues/1080/events | https://github.com/coleifer/peewee/issues/1080 | 179,735,188 | MDU6SXNzdWUxNzk3MzUxODg= | 1,080 | Detect (and lazy load) columns that were not loaded from DB | {
"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 | [
"Peewee does not, to the extent that makes sense to me, do things that violate expectations or issue queries. If you think of the model instances as containers for row data, instead of stateful representations of query results, then I think you might be closer to what I intended the library to be. The general idea ... | 2016-09-28T10:25:26 | 2016-10-02T16:07:40 | 2016-09-28T15:47:14 | NONE | null | With:
``` python
class Entity(Model):
small_field = ...
large_field = ...
huge_field = ...
```
Large and huge field may contain big chunks of data and are not always needed.
Consider:
``` python
data = [
Entity.get(id=1),
Entity.select(Entity.id, Entity.small_field).where(Entity.id == 2).get(),
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1080/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/1080/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1079 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1079/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1079/comments | https://api.github.com/repos/coleifer/peewee/issues/1079/events | https://github.com/coleifer/peewee/issues/1079 | 179,722,354 | MDU6SXNzdWUxNzk3MjIzNTQ= | 1,079 | peewee get_or_create default use id field? | {
"login": "rfyiamcool",
"id": 3785409,
"node_id": "MDQ6VXNlcjM3ODU0MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3785409?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rfyiamcool",
"html_url": "https://github.com/rfyiamcool",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"This ticket is lacking in a lot of detail...What exactly is it that you're asking? The `get_or_create` method does not depend on an \"id\" field, but can work with any constraint. The method itself first attempts a \"get\" using the data provided. If this fails, then an attempt is made to create. If the create fa... | 2016-09-28T09:25:10 | 2017-04-27T09:59:22 | 2016-09-28T15:42:32 | NONE | null | peewee get_or_create default use id field?
can peewee use custom diff field ? mysql table not has `id` field
```
In [163]: data
Out[163]:
{'brand': 'kkkk',
'brand_img': 'b_img',
'extra': '1sdf',
'pid': 5,
'pname': 'panme',
'price': 11,
'product_img': 'xiaorui.cc',
'purl': 'url',
'secound_id': 2,
'third_... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1079/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/1079/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1078 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1078/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1078/comments | https://api.github.com/repos/coleifer/peewee/issues/1078/events | https://github.com/coleifer/peewee/issues/1078 | 179,605,579 | MDU6SXNzdWUxNzk2MDU1Nzk= | 1,078 | ModelQueryResultWrapper no longer synthesizes models for joins without FK | {
"login": "jakedt",
"id": 2183986,
"node_id": "MDQ6VXNlcjIxODM5ODY=",
"avatar_url": "https://avatars.githubusercontent.com/u/2183986?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jakedt",
"html_url": "https://github.com/jakedt",
"followers_url": "https://api.github.com/users/jakedt/foll... | [] | closed | false | null | [] | null | [
"Oh yeah, I can see the implementation has a bad unintended consequence if the columns are aliases. Can you tell me a bit more about your use case? Its after lunch and I'm having trouble thinking abstractly. Is there an analogy example using Twitter tables? (user / tweet one to many, users to users many to many)?\n... | 2016-09-27T20:33:08 | 2016-11-14T00:58:06 | 2016-11-14T00:58:06 | NONE | null | Due to #1012 we can no longer perform a query we were using and get reasonable results. Previously we were doing a many-to-one and then one-to-many join, and then eliminating duplicate rows on in code on the client side. In the previous behavior we ended up with a synthesized model instance for the incoming FK, and the... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1078/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/1078/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1077 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1077/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1077/comments | https://api.github.com/repos/coleifer/peewee/issues/1077/events | https://github.com/coleifer/peewee/issues/1077 | 179,410,612 | MDU6SXNzdWUxNzk0MTA2MTI= | 1,077 | _prefetch doesn't return results | {
"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 | [
"Had another query where _prefetch_ didn't return expected results as before.\n",
"Can you give me something reproducible?\n",
"I don't assume you need anything else from me after @alexlatchford's comment.\nDo you think you'll get to this soon?\n\nThanks heaps! ;-)\n",
"Should be fixed in 1c237421eaf6d1ab6621... | 2016-09-27T06:51:26 | 2016-10-03T10:18:14 | 2016-10-02T16:36:17 | NONE | null | I have upgraded from peewee==2.6.4 to 2.8.3 and got some issues with _prefetch_ now.
```
prefetched_users = prefetch(db_users, db_emails, db_interactions)
for user in prefetched_users:
print user.uuid
'9533af75-a176-40eb-9b24-cdd2dc3e7e5d'
print user.emails[0].email
<email address>
print user.uui... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1077/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/1077/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1076 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1076/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1076/comments | https://api.github.com/repos/coleifer/peewee/issues/1076/events | https://github.com/coleifer/peewee/issues/1076 | 178,576,297 | MDU6SXNzdWUxNzg1NzYyOTc= | 1,076 | I want to change order of table creation for create_tables() | {
"login": "maaaks",
"id": 3010238,
"node_id": "MDQ6VXNlcjMwMTAyMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3010238?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maaaks",
"html_url": "https://github.com/maaaks",
"followers_url": "https://api.github.com/users/maaaks/foll... | [] | closed | false | null | [] | null | [
"As I can see, you don't want very much to support inheritance: #616\n\nWell, a unified way to override _any_ dependencies would be even better, because I also have some cases where one table depends on existence of another because of a manually-written (via `SQL()`) constraint, which `sort_models_topologically()` ... | 2016-09-22T10:45:45 | 2017-04-10T01:02:49 | 2017-01-30T22:24:17 | CONTRIBUTOR | null | Basically, I need to make Peewee know that some of my tables are [inherited](https://www.postgresql.org/docs/current/static/ddl-inherit.html) from other tables, and this means that the «parents» should be created before «children».
Can you please move some logic out from `sort_models_topologically()`, so that I could ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1076/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/1076/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1075 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1075/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1075/comments | https://api.github.com/repos/coleifer/peewee/issues/1075/events | https://github.com/coleifer/peewee/pull/1075 | 178,482,796 | MDExOlB1bGxSZXF1ZXN0ODYyNTYwOTc= | 1,075 | Add connection management documentation for CherryPy | {
"login": "stenci",
"id": 5955495,
"node_id": "MDQ6VXNlcjU5NTU0OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5955495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stenci",
"html_url": "https://github.com/stenci",
"followers_url": "https://api.github.com/users/stenci/foll... | [] | closed | false | null | [] | null | [
"Thanks! This looks great.\n"
] | 2016-09-21T22:58:23 | 2016-09-22T07:26:16 | 2016-09-22T07:26:16 | CONTRIBUTOR | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1075/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/1075/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1075",
"html_url": "https://github.com/coleifer/peewee/pull/1075",
"diff_url": "https://github.com/coleifer/peewee/pull/1075.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1075.patch",
"merged_at": "2016-09-22T07:26:16"
} | |
https://api.github.com/repos/coleifer/peewee/issues/1074 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1074/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1074/comments | https://api.github.com/repos/coleifer/peewee/issues/1074/events | https://github.com/coleifer/peewee/issues/1074 | 178,285,919 | MDU6SXNzdWUxNzgyODU5MTk= | 1,074 | AUTOINCREMENT on sqlite doesn't work properly | {
"login": "dromer",
"id": 1185977,
"node_id": "MDQ6VXNlcjExODU5Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1185977?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dromer",
"html_url": "https://github.com/dromer",
"followers_url": "https://api.github.com/users/dromer/foll... | [] | closed | false | null | [] | null | [
"That's how sqlite auto increment work if it is not a primary key: https://www.sqlite.org/autoinc.html\n",
"Except I would assume that 'id' is a primary key.\n",
"I agree, but that depends on how the table was created. \n\nWhatever the case I think the problem here is on the sqlite side, not peewee.\n",
"The ... | 2016-09-21T08:56:16 | 2016-09-21T17:21:20 | 2016-09-21T17:21:20 | NONE | null | It seems that AUTOINCREMENT on sqlite primary keys doesn't actually increment properly.
ie.:
```
entries with id 1 and 2
2 is removed
new is added -> id = 2
----
expected -> id = 3
```
In postgres it uses the proper SERIAL increment as expected.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1074/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/1074/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1073 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1073/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1073/comments | https://api.github.com/repos/coleifer/peewee/issues/1073/events | https://github.com/coleifer/peewee/issues/1073 | 178,083,104 | MDU6SXNzdWUxNzgwODMxMDQ= | 1,073 | Disabling coercion for Func does not work | {
"login": "danygielow",
"id": 184562,
"node_id": "MDQ6VXNlcjE4NDU2Mg==",
"avatar_url": "https://avatars.githubusercontent.com/u/184562?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danygielow",
"html_url": "https://github.com/danygielow",
"followers_url": "https://api.github.com/users/d... | [] | closed | false | null | [] | null | [
"What database engine are you using?\n",
"Just committed a test. I was not able to replicate this issue:\n\n``` diff\ncommit 39531323fd4d24cc4fc0c7039ef83936ec908bc7\nAuthor: Charles Leifer <charles.leifer@propylon.pri>\nDate: Tue Sep 20 17:31:09 2016 -0500\n\n Add test related to #1073. Unable to replicate.... | 2016-09-20T14:52:20 | 2016-09-22T07:24:43 | 2016-09-22T07:17:33 | NONE | null | ``` python
class Foo(Model):
id = IntegerField()
Foo.create_table()
Foo.create(id=1)
Foo.create(id=2)
print list(Foo.select(fn.GROUP_CONCAT(Foo.id).coerce(False)))
>>ValueError: invalid literal for int() with base 10: '1,2'
```
peewee version 2.8.3
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1073/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/1073/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1072 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1072/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1072/comments | https://api.github.com/repos/coleifer/peewee/issues/1072/events | https://github.com/coleifer/peewee/issues/1072 | 178,019,288 | MDU6SXNzdWUxNzgwMTkyODg= | 1,072 | Bug with multiple foreign keys to same table and DeferredRelation | {
"login": "miketheanimal",
"id": 5294745,
"node_id": "MDQ6VXNlcjUyOTQ3NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5294745?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/miketheanimal",
"html_url": "https://github.com/miketheanimal",
"followers_url": "https://api.github.... | [] | closed | false | null | [] | null | [
"Fixed! Thanks for the great ticket.\n",
"Glad to be of service :)\n"
] | 2016-09-20T10:09:26 | 2016-09-20T17:07:22 | 2016-09-20T13:55:41 | NONE | null | Python3 with Mysql, peewee from pip3 install --upgrade peewee. Two mysql tables:
```
mysql> desc c ;
+-------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1072/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/1072/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1071 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1071/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1071/comments | https://api.github.com/repos/coleifer/peewee/issues/1071/events | https://github.com/coleifer/peewee/issues/1071 | 177,825,283 | MDU6SXNzdWUxNzc4MjUyODM= | 1,071 | Sqlite database locked - regression introduced in 2.4.5? | {
"login": "stenci",
"id": 5955495,
"node_id": "MDQ6VXNlcjU5NTU0OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5955495?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stenci",
"html_url": "https://github.com/stenci",
"followers_url": "https://api.github.com/users/stenci/foll... | [] | closed | false | null | [] | null | [
"Relevant commits:\n\nhttps://github.com/coleifer/peewee/compare/2.4.4...2.4.5\n",
"Are you calling connect and close at the start and end of every request? Is the busy timeout suitably high to allow retrying queries? I've noticed that die to the way SQLite does its busy timeout, many queries sent at close to the... | 2016-09-19T16:01:15 | 2016-10-12T23:23:21 | 2016-10-02T16:24:19 | CONTRIBUTOR | null | Below an excerpt from my CherryPy app.
The app receives bursts of ajax calls to `cncprogram_done`. Sometimes just 1 or 2 calls, sometimes up to 10 or 20 at a time (I will eventually optimize it, but for now I'm OK with it).
I just upgraded to Peewee 2.8.3 and only the first call of each burst works, the other calls ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1071/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/1071/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1070 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1070/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1070/comments | https://api.github.com/repos/coleifer/peewee/issues/1070/events | https://github.com/coleifer/peewee/pull/1070 | 177,811,750 | MDExOlB1bGxSZXF1ZXN0ODU4MTE4NzI= | 1,070 | fix ignore & replace syntax for mysql | {
"login": "631068264",
"id": 8144089,
"node_id": "MDQ6VXNlcjgxNDQwODk=",
"avatar_url": "https://avatars.githubusercontent.com/u/8144089?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/631068264",
"html_url": "https://github.com/631068264",
"followers_url": "https://api.github.com/users/63... | [] | closed | false | null | [] | null | [
"Currently ran into this. Would be awesome to see 1`INSERT IGNORE INTO` added for MySQL",
"@coleifer what would need to happen to get this merged in. Would be willing to create new PR if needed.",
"This should be working in 3.x. See:\r\n\r\n* http://docs.peewee-orm.com/en/latest/peewee/api.html#Insert\r\n* http... | 2016-09-19T15:09:40 | 2018-01-31T12:42:06 | 2018-01-31T12:42:06 | NONE | null | 2 bugs in peewee.py
1. `upsert_sql = 'INSERT OR REPLACE INTO'` will have syntax error for Mysql. So I fix it like `upsert_sql = 'REPLACE INTO'`.
2. add ignore for mysql `INSERT OR IGNORE INTO` will have syntax error for Mysql.
Example:
Page.insert(data).ignore().execute()
Page.insert_many(data).ignore().execute... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1070/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/1070/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1070",
"html_url": "https://github.com/coleifer/peewee/pull/1070",
"diff_url": "https://github.com/coleifer/peewee/pull/1070.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1070.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1069 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1069/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1069/comments | https://api.github.com/repos/coleifer/peewee/issues/1069/events | https://github.com/coleifer/peewee/issues/1069 | 177,798,607 | MDU6SXNzdWUxNzc3OTg2MDc= | 1,069 | Add `upsert_many` | {
"login": "maxnoe",
"id": 5488440,
"node_id": "MDQ6VXNlcjU0ODg0NDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/5488440?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maxnoe",
"html_url": "https://github.com/maxnoe",
"followers_url": "https://api.github.com/users/maxnoe/foll... | [] | closed | false | null | [] | null | [
"What do you get calling insert_many() with .upsert() as well?\n",
"You mean `insert_many(stuff).upsert()`?\n",
"Yeah, I was just away from my computer and wondered what that would output?\n",
"Ah, yes. This works. Thanks a lot.\n"
] | 2016-09-19T14:23:00 | 2016-09-19T18:33:18 | 2016-09-19T18:33:18 | NONE | null | There's `insert_many` but not `upsert_many`
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1069/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/1069/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1068 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1068/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1068/comments | https://api.github.com/repos/coleifer/peewee/issues/1068/events | https://github.com/coleifer/peewee/issues/1068 | 177,696,157 | MDU6SXNzdWUxNzc2OTYxNTc= | 1,068 | primary keys ignored in update queries | {
"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 | [
"When it comes to using composite primary keys, things like save() break down a bit because peewee doesn't know what exactly to do since the previous primary key values are gone from the model instance. The way it should work is that it would update, setting the new values and using the old values as the where clau... | 2016-09-19T02:55:33 | 2016-09-19T04:42:55 | 2016-09-19T04:18:28 | NONE | null | Primary keys are ignored (at least for `CompositeKeyField`) when `UPDATE`-ing rows.
I have a few "linker" tables that are just two `ForeignKeyField` used as `CompositeKeyField`.
They are not editable due to this, since any call to `.save()` results in a syntax error in the query.
I pasted an example illustrating this ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1068/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/1068/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1067 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1067/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1067/comments | https://api.github.com/repos/coleifer/peewee/issues/1067/events | https://github.com/coleifer/peewee/issues/1067 | 177,584,562 | MDU6SXNzdWUxNzc1ODQ1NjI= | 1,067 | support insert ignore , on duplicate key update or replace for mysql? | {
"login": "631068264",
"id": 8144089,
"node_id": "MDQ6VXNlcjgxNDQwODk=",
"avatar_url": "https://avatars.githubusercontent.com/u/8144089?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/631068264",
"html_url": "https://github.com/631068264",
"followers_url": "https://api.github.com/users/63... | [] | closed | false | null | [] | null | [
"OK . I find only `ignore` in [InsertQuery.on_conflict](http://docs.peeweeorm.com/en/latest/peewee/api.html#InsertQuery.on_conflict). But what is `INSERT OR IGNORE INTO` ? In Mysql only `INSERT IGNORE INTO` is right( I didn't use PostgreSQL or SQLite ). I think you should divide **peewee** into different versi... | 2016-09-17T15:25:14 | 2017-07-05T04:23:18 | 2017-07-05T04:23:18 | NONE | null | support insert ignore , on duplicate key update or replace for mysql. I want to use `insert_many` to insert data into mysql. But one of column is a `UNIQUE KEY` so how to solve this.
I hope it can like this `execute(ignore=True)`
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1067/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/1067/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1066 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1066/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1066/comments | https://api.github.com/repos/coleifer/peewee/issues/1066/events | https://github.com/coleifer/peewee/issues/1066 | 177,460,723 | MDU6SXNzdWUxNzc0NjA3MjM= | 1,066 | KeyError: '"title" is not a recognized field.' | {
"login": "631068264",
"id": 8144089,
"node_id": "MDQ6VXNlcjgxNDQwODk=",
"avatar_url": "https://avatars.githubusercontent.com/u/8144089?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/631068264",
"html_url": "https://github.com/631068264",
"followers_url": "https://api.github.com/users/63... | [] | closed | false | null | [] | null | [] | 2016-09-16T15:57:12 | 2017-03-28T05:34:56 | 2016-09-16T15:59:11 | NONE | null | ```
class Manga(BaseModel):
manga_id = IntegerField(unique=True, help_text="漫画id")
cover_url = CharField(help_text="封面链接")
view_page = CharField(help_text="漫画链接")
title = CharField(help_text="漫画标题")
date = DateField(help_text="发布日期")
```
What I want to save is a list of dict like
`{'manga_id': 1... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1066/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/1066/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1065 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1065/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1065/comments | https://api.github.com/repos/coleifer/peewee/issues/1065/events | https://github.com/coleifer/peewee/issues/1065 | 177,453,577 | MDU6SXNzdWUxNzc0NTM1Nzc= | 1,065 | {AttributeError}'ModelOptions' object has no attribute 'declared_fields' | {
"login": "smittysmee",
"id": 8376011,
"node_id": "MDQ6VXNlcjgzNzYwMTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8376011?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/smittysmee",
"html_url": "https://github.com/smittysmee",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"Issue with versions in my systems library and within the project.\n"
] | 2016-09-16T15:26:15 | 2016-09-16T15:57:49 | 2016-09-16T15:57:49 | NONE | null | Attempting a basic command, but it appears that "declared_fields" in the _meta is not a valid field.
See line in code [here](https://github.com/coleifer/peewee/blob/master/playhouse/shortcuts.py#L107).
**Model:**
```
db = AppEngineDatabase('adb')
class CloudSQLModel(Model):
create_date = DateField(default=datet... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1065/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/1065/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1064 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1064/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1064/comments | https://api.github.com/repos/coleifer/peewee/issues/1064/events | https://github.com/coleifer/peewee/issues/1064 | 177,435,453 | MDU6SXNzdWUxNzc0MzU0NTM= | 1,064 | Add postgresql network address types plz | {
"login": "Q-Master",
"id": 2825907,
"node_id": "MDQ6VXNlcjI4MjU5MDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/2825907?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Q-Master",
"html_url": "https://github.com/Q-Master",
"followers_url": "https://api.github.com/users/Q-Mas... | [] | closed | false | null | [] | null | [
"Peewee does not currently support that column type. To add it, see the custom field docs:\n\nhttp://docs.peewee-orm.com/en/latest/peewee/models.html#custom-fields\n\nTo get pwiz to understand the field, you'll first need your field class, then you'll want to modify the `PostgresqlMetadata.column_map` mapping the O... | 2016-09-16T14:11:20 | 2016-09-19T03:39:45 | 2016-09-19T03:39:45 | NONE | null | ALTER TABLE info ADD COLUMN ip inet;
this column type causes the pwiz.py to generate UnknownField class.
https://www.postgresql.org/docs/9.1/static/datatype-net-types.html
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1064/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/1064/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1063 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1063/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1063/comments | https://api.github.com/repos/coleifer/peewee/issues/1063/events | https://github.com/coleifer/peewee/pull/1063 | 177,326,806 | MDExOlB1bGxSZXF1ZXN0ODU1MDY1ODM= | 1,063 | Fix threadlocal pool | {
"login": "alexlatchford",
"id": 628146,
"node_id": "MDQ6VXNlcjYyODE0Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/628146?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alexlatchford",
"html_url": "https://github.com/alexlatchford",
"followers_url": "https://api.github.co... | [] | closed | false | null | [] | null | [
"Wait...isn't this the whole point of connection pooling?\n",
"Actually hold up, I see what you're talking about -- the issue isn't the pool, but the fact that peewee only holds a connection per thread.\n\nIf you need more than one connection (what is your use-case? I'm genuinely curious and not asking in an atte... | 2016-09-16T01:17:51 | 2016-09-23T18:03:27 | 2016-09-23T18:02:19 | CONTRIBUTOR | null | So, I appreciate there are use cases for multiple connections open per thread but please don't shoot me down straight away!
Test code:
``` python
from peewee import *
from playhouse.pool import PooledPostgresqlExtDatabase
db = PooledPostgresqlExtDatabase(
'my_app',
user='postgres',
threadlocals=True,
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1063/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/1063/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1063",
"html_url": "https://github.com/coleifer/peewee/pull/1063",
"diff_url": "https://github.com/coleifer/peewee/pull/1063.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1063.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1062 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1062/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1062/comments | https://api.github.com/repos/coleifer/peewee/issues/1062/events | https://github.com/coleifer/peewee/issues/1062 | 177,126,437 | MDU6SXNzdWUxNzcxMjY0Mzc= | 1,062 | Join by field (using) | {
"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 | [
"Joining on a subquery is totally easy in peewee, you just have to use the explicit form of the join predicate:\n\n``` python\nsubq = Service.select(fn.unnest(Service.ms).alias('code'))\nsubq = subq.alias('svc') # Subqueries need an alias.\nqs = (MedServ\n .select(MedServ.code, MedServ.name)\n .join(subq... | 2016-09-15T09:12:58 | 2016-09-20T17:12:25 | 2016-09-20T17:12:25 | NONE | null | I try to write query:
``` sql
select code, name
from medservices join (
select unnest(ms) as code from services where id = 7
) u using (code);
```
in peewee. And I can't understand how to do:
``` python
qs = (MedServ
.select(MedServ.code, MedServ.name)
.join(
Service.s... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1062/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/1062/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1061 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1061/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1061/comments | https://api.github.com/repos/coleifer/peewee/issues/1061/events | https://github.com/coleifer/peewee/pull/1061 | 176,808,649 | MDExOlB1bGxSZXF1ZXN0ODUxNjMxODI= | 1,061 | fixed a problem with TimestampField resolution | {
"login": "akrs",
"id": 2895505,
"node_id": "MDQ6VXNlcjI4OTU1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2895505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akrs",
"html_url": "https://github.com/akrs",
"followers_url": "https://api.github.com/users/akrs/followers",
... | [] | closed | false | null | [] | null | [
"Also had to fix the unit test, as the unit test assumed that `654321` microseconds stored with a millisecond precision would come out as `654` microseconds instead of `654000` microseconds.\n"
] | 2016-09-14T03:56:17 | 2016-09-15T04:44:09 | 2016-09-15T04:44:09 | CONTRIBUTOR | null | When retrieving a value from the database, TimestampField didn't properly scale the microseconds by the resolution. Instead of using the resolution, it would always assume the fractional portion was in microseconds.
This fixes that by scaling the fractional second portion as a function of the resolution.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1061/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/1061/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1061",
"html_url": "https://github.com/coleifer/peewee/pull/1061",
"diff_url": "https://github.com/coleifer/peewee/pull/1061.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1061.patch",
"merged_at": "2016-09-15T04:44:09"
} |
https://api.github.com/repos/coleifer/peewee/issues/1060 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1060/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1060/comments | https://api.github.com/repos/coleifer/peewee/issues/1060/events | https://github.com/coleifer/peewee/issues/1060 | 176,696,945 | MDU6SXNzdWUxNzY2OTY5NDU= | 1,060 | Variable non-persistent instances? | {
"login": "johaven",
"id": 5459596,
"node_id": "MDQ6VXNlcjU0NTk1OTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/5459596?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/johaven",
"html_url": "https://github.com/johaven",
"followers_url": "https://api.github.com/users/johaven/... | [] | closed | false | null | [] | null | [
"peewee is an activerecord ORM. Once you understand that, though, there are no surprises. An instance is a container for row values, but not a representation of the row itself in the sense that multiple instances with the same ID are somehow linked.\n\nDoes that help? And yes it is standard behavior. Django is the... | 2016-09-13T17:07:43 | 2016-09-16T13:34:32 | 2016-09-15T05:13:36 | NONE | null | ``` python
>>> p = db.Paths.select().where(db.Paths.id == 1).get()
>>> p.lastsync
datetime.datetime(2016, 9, 13, 18, 59, 32, 463395)
>>> v = db.Paths.select().where(db.Paths.id == 1).get()
>>> id(p), id(v)
(4545364304, 4545364496)
>>> v.lastsync
datetime.datetime(2016, 9, 13, 19, 0, 41, 913038)
>>> import datetime
>>> ... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1060/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/1060/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1059 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1059/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1059/comments | https://api.github.com/repos/coleifer/peewee/issues/1059/events | https://github.com/coleifer/peewee/issues/1059 | 176,291,443 | MDU6SXNzdWUxNzYyOTE0NDM= | 1,059 | test_database uses production database instead of test database | {
"login": "ajpen",
"id": 4834786,
"node_id": "MDQ6VXNlcjQ4MzQ3ODY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4834786?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ajpen",
"html_url": "https://github.com/ajpen",
"followers_url": "https://api.github.com/users/ajpen/follower... | [] | closed | false | null | [] | null | [
"This is an issue:\n\n(Admin)\n\nA 1-item tuple needs a trailing comma. Try again and let me know.\n",
"Have you been able to try your code with the change I suggested? This is the change:\n\n``` python\n def test_Admin(self):\n # v\n with test_database(test_db, (A... | 2016-09-12T04:15:22 | 2016-09-24T18:50:18 | 2016-09-15T22:45:01 | NONE | null | I've the following code for testing:
```
from db import *
import unittest
from playhouse.test_utils import test_database
test_db = MySQLDatabase('testdb',
user='testuser',
password='testpass')
class DatabaseTestSuite(unittest.TestCase):
def test_Admin(self):
with test_database(test_db, (Adm... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1059/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/1059/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1058 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1058/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1058/comments | https://api.github.com/repos/coleifer/peewee/issues/1058/events | https://github.com/coleifer/peewee/issues/1058 | 175,730,241 | MDU6SXNzdWUxNzU3MzAyNDE= | 1,058 | Peewee 2.8.3 insert_many problem | {
"login": "MarkSeol",
"id": 1631677,
"node_id": "MDQ6VXNlcjE2MzE2Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1631677?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MarkSeol",
"html_url": "https://github.com/MarkSeol",
"followers_url": "https://api.github.com/users/MarkS... | [] | closed | false | null | [] | null | [
"By the way, cursor.lastrowid is exactly the first record's id, it's what we want.\nBy using cursor.fetchone() or cursor.fetchall(), nothing is returned.\n",
"This is intentional. When you're inserting multiple rows with auto-incrementing primary keys, and only the first ID is returned, it seems like maybe it wou... | 2016-09-08T11:31:16 | 2016-09-09T05:59:18 | 2016-09-09T03:20:37 | NONE | null | Hi Charles:
Sorry to trouble you, we are using peewee and mysql, and our model's primary key is auto increase, we found a problem when invoking the insert_many api.
The method doesn't return the first inserted record's id, it just return True, but in the early version(like 2.4.5), it does return the first id.
So, we ch... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1058/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/1058/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1057 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1057/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1057/comments | https://api.github.com/repos/coleifer/peewee/issues/1057/events | https://github.com/coleifer/peewee/issues/1057 | 175,344,200 | MDU6SXNzdWUxNzUzNDQyMDA= | 1,057 | Model create() and save() behavior | {
"login": "changyuheng",
"id": 1842626,
"node_id": "MDQ6VXNlcjE4NDI2MjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/1842626?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/changyuheng",
"html_url": "https://github.com/changyuheng",
"followers_url": "https://api.github.com/us... | [] | closed | false | null | [] | null | [
"Using IntegerField(primary _key=True) is not an auto-incrementing id. It happens to work due to the quirks of SQLite, but the semantics as far as peewee is concerned, are not autoincrement. You should use PrimaryKeyField instead.\n",
"http://docs.peewee-orm.com/en/latest/peewee/models.html#manually-specifying-pr... | 2016-09-06T20:31:26 | 2016-09-07T06:37:29 | 2016-09-07T06:05:27 | NONE | null | Hi guys. I know this has been discussed in #651 but I still have some things want you guys to know.
[After inserting a new record by creating, we'll get an instance from return](http://docs.peewee-orm.com/en/latest/peewee/api.html#Model.create). No offense but I think intuitively this instance should be bound to the j... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1057/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/1057/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1056 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1056/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1056/comments | https://api.github.com/repos/coleifer/peewee/issues/1056/events | https://github.com/coleifer/peewee/issues/1056 | 174,821,368 | MDU6SXNzdWUxNzQ4MjEzNjg= | 1,056 | Set PIPES_AS_CONCAT in MySQL sessions | {
"login": "jakedt",
"id": 2183986,
"node_id": "MDQ6VXNlcjIxODM5ODY=",
"avatar_url": "https://avatars.githubusercontent.com/u/2183986?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jakedt",
"html_url": "https://github.com/jakedt",
"followers_url": "https://api.github.com/users/jakedt/foll... | [] | closed | false | null | [] | null | [
"For MySQL, I suppose that you will just need to use `fn.CONCAT('string 1', 'string 2', etc)` instead of `Model.some_field.concat()`. Is that reasonable, or do you think that the `concat()` function needs to be a bit smarter?\n",
"Due to the design of the `QueryCompiler`, making the parser switch from an expressi... | 2016-09-02T18:30:15 | 2016-09-03T15:36:48 | 2016-09-03T15:36:48 | NONE | null | Default `||` behavior in MySQL is to treat it as logical or. The `.concat` operator in peewee always uses `||`, so for concat to work in MySQL the session must be set to use `PIPES_AS_CONCAT`.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1056/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/1056/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1055 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1055/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1055/comments | https://api.github.com/repos/coleifer/peewee/issues/1055/events | https://github.com/coleifer/peewee/issues/1055 | 174,773,049 | MDU6SXNzdWUxNzQ3NzMwNDk= | 1,055 | Syntax error in query | {
"login": "kennedyshead",
"id": 203370,
"node_id": "MDQ6VXNlcjIwMzM3MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/203370?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kennedyshead",
"html_url": "https://github.com/kennedyshead",
"followers_url": "https://api.github.com/u... | [] | closed | false | null | [] | null | [
"Looks like you're passing a tuple in to user id\n",
"Hi!\n\nIts resolved, switched to get_or_create and then it told me it was a tuple and not an int as you stated.\n\nIt was just a misleading error ;)\n",
"Thank you for your quick reply\n",
"Sure thing, I think peewee could stand to get smarter about checki... | 2016-09-02T14:28:57 | 2016-09-02T15:17:51 | 2016-09-02T15:03:30 | NONE | null | Python2.7
```
peewee[20118] DEBUG ('SELECT "t1"."id", "t1"."user_id", "t1"."unique", "t1"."title", "t1"."message", "t1"."created_date" FROM "event" AS t1 WHERE (((("t1"."message" = ?) AND ("t1"."unique" = ?)) AND ("t1"."user_id" = (?, ?))) AND ("t1"."title" = ?)) LIMIT 1 OFFSET 0', [u'Someone created a new project', u... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1055/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/1055/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1054 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1054/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1054/comments | https://api.github.com/repos/coleifer/peewee/issues/1054/events | https://github.com/coleifer/peewee/issues/1054 | 173,931,003 | MDU6SXNzdWUxNzM5MzEwMDM= | 1,054 | Postgres extension's full text search Match raises KeyError 'T@@' | {
"login": "ephiepark",
"id": 590764,
"node_id": "MDQ6VXNlcjU5MDc2NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/590764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ephiepark",
"html_url": "https://github.com/ephiepark",
"followers_url": "https://api.github.com/users/ephi... | [] | closed | false | null | [] | null | [
"My guess is that you are not using the `PostgresqlExtDatabase` class, which is a subclass of `PostgresqlDatabase` class.\n\nHow are you defining your database?\n",
"Thank you for the quick reply!\n\nYes, I think my application is using PostgresqlDatabase not PostgresqlExtDatabase. I am using FlaskDB class setup ... | 2016-08-30T05:08:47 | 2016-08-30T13:46:30 | 2016-08-30T13:46:30 | NONE | null | Hi, I am using peewee with flask and postgresql db, and I would like to use peewee's postgres extension to do full text search (http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#TSVectorField). But when I use Match function from the link, it raises KeyError 'T@@'.
I followed the stack trace, and the KeyError... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1054/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/1054/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1053 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1053/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1053/comments | https://api.github.com/repos/coleifer/peewee/issues/1053/events | https://github.com/coleifer/peewee/issues/1053 | 173,536,220 | MDU6SXNzdWUxNzM1MzYyMjA= | 1,053 | [improvement] Model Definition via JSON | {
"login": "rognoni",
"id": 8401602,
"node_id": "MDQ6VXNlcjg0MDE2MDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/8401602?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rognoni",
"html_url": "https://github.com/rognoni",
"followers_url": "https://api.github.com/users/rognoni/... | [] | closed | false | null | [] | null | [
"Ummmm, huh? http://thedailywtf.com/articles/the-inner-json-effect\n\nI'm not going to add anything like this to peewee. It can't be more than 50-60 lines of code to do what you're trying to do.\n\nBesides the familiar declarative syntax, Peewee can introspect an existing database, modify the schema on-the-fly, an... | 2016-08-26T20:23:59 | 2016-08-27T07:31:00 | 2016-08-27T07:31:00 | NONE | null | For my project I need the **Model Definition** via JSON, for example:
https://github.com/rognoni/adaptable/blob/master/Backend/resources/schemas/info.json
``` javascript
{
"entities": {
"group": {
"properties": {
"id": {"type": "int", "isPK": true},
"desc": {"type": "str"},
"name"... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1053/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/1053/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1052 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1052/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1052/comments | https://api.github.com/repos/coleifer/peewee/issues/1052/events | https://github.com/coleifer/peewee/issues/1052 | 173,515,772 | MDU6SXNzdWUxNzM1MTU3NzI= | 1,052 | Materialized views? | {
"login": "Resisty",
"id": 5331616,
"node_id": "MDQ6VXNlcjUzMzE2MTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/5331616?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Resisty",
"html_url": "https://github.com/Resisty",
"followers_url": "https://api.github.com/users/Resisty/... | [] | closed | false | null | [] | null | [
"Peewee does not generate the DDL for the creation of views, but you can certainly create a model for your view and query it normally. So, the answer is yes and no. Does that answer your question?\n",
"I think so. The advice I got from a friend (who doesn't speak Python but only sql) was that having a materialize... | 2016-08-26T18:34:24 | 2016-08-27T07:23:46 | 2016-08-26T20:35:08 | NONE | null | Hello,
I was just trying to figure out, definitively, if Peewee supports the notion of [materialized views](https://www.postgresql.org/docs/9.3/static/sql-creatematerializedview.html). If so, any tips would be great, but if not, it's just good to know.
Thanks!
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1052/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/1052/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1051 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1051/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1051/comments | https://api.github.com/repos/coleifer/peewee/issues/1051/events | https://github.com/coleifer/peewee/issues/1051 | 173,229,961 | MDU6SXNzdWUxNzMyMjk5NjE= | 1,051 | Peewee 2.8.2 regression | {
"login": "mrjoes",
"id": 179880,
"node_id": "MDQ6VXNlcjE3OTg4MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/179880?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mrjoes",
"html_url": "https://github.com/mrjoes",
"followers_url": "https://api.github.com/users/mrjoes/follow... | [] | closed | false | null | [] | null | [
"Please ignore - it was already fixed in the master. Thanks!\n",
"Can you point me to the commit that fixed this issue? I want to be sure I understand what happened.\n",
"I don't know - I installed peewee from the master and it worked, all of a sudden.\n\nEdit: More info\n\n`pip install -e git+https://github.co... | 2016-08-25T15:10:27 | 2016-08-25T17:54:05 | 2016-08-25T15:11:26 | NONE | null | Long story short - something in 2.8.2 is causing problem for one of the Flask-Admin tests.
Here's the test: https://github.com/flask-admin/flask-admin/blob/master/flask_admin/tests/peeweemodel/test_basic.py#L918
Here's the traceback:
```
ERROR: flask_admin.tests.peeweemodel.test_basic.test_form_args
----------------... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1051/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/1051/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1050 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1050/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1050/comments | https://api.github.com/repos/coleifer/peewee/issues/1050/events | https://github.com/coleifer/peewee/issues/1050 | 172,940,679 | MDU6SXNzdWUxNzI5NDA2Nzk= | 1,050 | Why is foreign object's key always accessible as *_id? | {
"login": "maaaks",
"id": 3010238,
"node_id": "MDQ6VXNlcjMwMTAyMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3010238?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maaaks",
"html_url": "https://github.com/maaaks",
"followers_url": "https://api.github.com/users/maaaks/foll... | [] | closed | false | null | [] | null | [
"I understand your concerns. When the foreign key's field name is equal to it's db_column, I suppose it would be fine to fall back to just appending \"_id\" -- otherwise the db_column could be used. It's important to have this ID descriptor, as it provides a way to access the foreign key data without forcing resolu... | 2016-08-24T12:39:17 | 2016-08-25T07:48:33 | 2016-08-25T07:48:33 | CONTRIBUTOR | null | In the ForeignKeyField source code, I see this:
``` python
obj_id_name = name + '_id'
...
setattr(model_class, obj_id_name, self._get_id_descriptor())
```
This means that no matter what field is foreign key in, the ID of the object is always accessible as user_id, parent_id, etc. Even if the real column name, the `db... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1050/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/1050/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1049 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1049/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1049/comments | https://api.github.com/repos/coleifer/peewee/issues/1049/events | https://github.com/coleifer/peewee/pull/1049 | 172,773,750 | MDExOlB1bGxSZXF1ZXN0ODI0MTc2ODA= | 1,049 | Update apsw URL | {
"login": "jberkel",
"id": 18891,
"node_id": "MDQ6VXNlcjE4ODkx",
"avatar_url": "https://avatars.githubusercontent.com/u/18891?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jberkel",
"html_url": "https://github.com/jberkel",
"followers_url": "https://api.github.com/users/jberkel/follower... | [] | closed | false | null | [] | null | [] | 2016-08-23T18:36:02 | 2016-08-23T19:32:36 | 2016-08-23T19:32:36 | CONTRIBUTOR | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1049/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/1049/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1049",
"html_url": "https://github.com/coleifer/peewee/pull/1049",
"diff_url": "https://github.com/coleifer/peewee/pull/1049.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1049.patch",
"merged_at": "2016-08-23T19:32:36"
} | |
https://api.github.com/repos/coleifer/peewee/issues/1048 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1048/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1048/comments | https://api.github.com/repos/coleifer/peewee/issues/1048/events | https://github.com/coleifer/peewee/issues/1048 | 172,707,045 | MDU6SXNzdWUxNzI3MDcwNDU= | 1,048 | Default value weird behavior | {
"login": "staier",
"id": 1745233,
"node_id": "MDQ6VXNlcjE3NDUyMzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1745233?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/staier",
"html_url": "https://github.com/staier",
"followers_url": "https://api.github.com/users/staier/foll... | [] | closed | false | null | [] | null | [
"update:\nsetting \n\n```\n class Meta:\n only_save_dirty = False\n```\n\nFixed the issue , however i do not believe this is a good solution.\nOne more thing i noticed , default values functions calculated every time an object gets populated from database regardless of if it was set already... | 2016-08-23T14:00:24 | 2016-08-23T16:03:18 | 2016-08-23T15:37:14 | NONE | null | After last upgrade something went very wrong .
```
class SomeModel(BaseModel):
value=IntegerField()
hash= FixedCharFiled(default=utils.some_hash_func)
object= SomeModel(value=3)
object.save()
object2= SomeModel.get(SomeModel.id==object.id)
```
**object1.hash ==object2.hash** returns **False**
it l... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1048/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/1048/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1047 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1047/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1047/comments | https://api.github.com/repos/coleifer/peewee/issues/1047/events | https://github.com/coleifer/peewee/issues/1047 | 172,552,470 | MDU6SXNzdWUxNzI1NTI0NzA= | 1,047 | Document TimestampField | {
"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 | [] | 2016-08-22T20:55:09 | 2016-08-23T14:33:45 | 2016-08-23T14:33:45 | OWNER | null | eom
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1047/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/1047/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1046 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1046/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1046/comments | https://api.github.com/repos/coleifer/peewee/issues/1046/events | https://github.com/coleifer/peewee/issues/1046 | 172,166,430 | MDU6SXNzdWUxNzIxNjY0MzA= | 1,046 | Subquery referencing outer table query | {
"login": "jberkel",
"id": 18891,
"node_id": "MDQ6VXNlcjE4ODkx",
"avatar_url": "https://avatars.githubusercontent.com/u/18891?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jberkel",
"html_url": "https://github.com/jberkel",
"followers_url": "https://api.github.com/users/jberkel/follower... | [] | closed | false | null | [] | null | [
"What have you tried? Can you share a bit of Python code to give me a better idea what you're trying to do?\n",
"Alright, while retrying the whole thing I actually got it to work as expected, nevermind! \nNot sure what I did differently this time.\n\nThis is the model:\n\n``` python\nclass Foo(Model):\n\nclass Ba... | 2016-08-19T16:10:42 | 2016-08-24T09:09:27 | 2016-08-24T04:07:54 | CONTRIBUTOR | null | Not sure if this is possible with peewee, but how would I construct a query like the following with peewee:
``` sql
SELECT outer_table.id, outer_table.bar, (SELECT .... FROM inner_table
JOIN ... = outer_table.id
) FROM outer_table
```
All the examples I've found use subqueries which are joined to the outer quer... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1046/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/1046/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1045 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1045/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1045/comments | https://api.github.com/repos/coleifer/peewee/issues/1045/events | https://github.com/coleifer/peewee/issues/1045 | 171,995,861 | MDU6SXNzdWUxNzE5OTU4NjE= | 1,045 | column names are stripped their '_id' part | {
"login": "maxdml",
"id": 3437048,
"node_id": "MDQ6VXNlcjM0MzcwNDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3437048?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maxdml",
"html_url": "https://github.com/maxdml",
"followers_url": "https://api.github.com/users/maxdml/foll... | [] | closed | false | null | [] | null | [
"After having a look at the code, I found the responsible function, in reflection.py:\n\n```\n425 def make_column_name(self, column):\n426 column = re.sub('_id$', '', column.lower().strip()) or column.lower() \n427 column = re.sub('[^\\w]+', '_', column)\n428 ... | 2016-08-18T20:41:52 | 2019-04-22T14:29:32 | 2016-08-23T15:39:05 | NONE | null | It seems that when a column is named, say "table_id", the generated models is always "table".
Command used: python -m pwiz -e mysql -u root database >> models.py
edit: I observe the same behavior with names such as "app-id"
e.g.:
sql schema:
DROP TABLE IF EXISTS `Application`;
/_!40101 SET @saved_cs_client = @@... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1045/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/1045/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1044 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1044/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1044/comments | https://api.github.com/repos/coleifer/peewee/issues/1044/events | https://github.com/coleifer/peewee/issues/1044 | 171,994,467 | MDU6SXNzdWUxNzE5OTQ0Njc= | 1,044 | Peewee should not import all DB drivers unconditionally | {
"login": "Necoro",
"id": 68708,
"node_id": "MDQ6VXNlcjY4NzA4",
"avatar_url": "https://avatars.githubusercontent.com/u/68708?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Necoro",
"html_url": "https://github.com/Necoro",
"followers_url": "https://api.github.com/users/Necoro/followers",
... | [] | closed | false | null | [] | null | [
"> When using some driver from the playground you even get one more.\n\nWhat do you mean?\n\nI hear your concerns, but I'm not convinced the fix is necessary.\n",
"For instance, when using apsw or sqlcipher, you have the apsw/sqlcipher driver loaded additonally to the (if you are unlucky) 3 others, even though yo... | 2016-08-18T20:34:55 | 2019-03-25T03:07:45 | 2016-08-23T22:31:43 | CONTRIBUTOR | null | Peewee currently imports (or tries to import) all database drivers unconditionally. As a result, you load and link them even when not needed (if you happen to have them installed for any reason). When using some driver from the playground you even get one more.
I'd suggest to only load them when needed (for instance a... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1044/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/1044/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1043 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1043/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1043/comments | https://api.github.com/repos/coleifer/peewee/issues/1043/events | https://github.com/coleifer/peewee/issues/1043 | 171,584,415 | MDU6SXNzdWUxNzE1ODQ0MTU= | 1,043 | Entity is dirty after loading from DB (peewee==2.8.2) | {
"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 | [
"I checked out 2.8.1 and was seeing that the instance from the db was dirty...nonetheless it looks like a bug.\n",
"Weird, I tried again (in a clean virtualenv) and with peewee==2.8.1 `_dirty` is indeed an empty `set()`. Sounds a bit weird if the result is different in your sandbox.\n\nWell, thanks for the bugfix... | 2016-08-17T06:31:38 | 2016-08-22T19:49:11 | 2016-08-17T20:33:29 | NONE | null | ``` python
from peewee import Model, SqliteDatabase, CharField
db = SqliteDatabase('test.db')
class Foobar(Model):
field = CharField()
class Meta:
database = db
only_save_dirty = True
db.connect()
db.create_tables([Foobar])
obj1 = Foobar.create(field='foobar')
foo = Foobar.get(id=obj1.id)
... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1043/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/1043/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1042 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1042/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1042/comments | https://api.github.com/repos/coleifer/peewee/issues/1042/events | https://github.com/coleifer/peewee/issues/1042 | 171,570,874 | MDU6SXNzdWUxNzE1NzA4NzQ= | 1,042 | GFKField with custom field names? | {
"login": "bcthomas",
"id": 86821,
"node_id": "MDQ6VXNlcjg2ODIx",
"avatar_url": "https://avatars.githubusercontent.com/u/86821?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bcthomas",
"html_url": "https://github.com/bcthomas",
"followers_url": "https://api.github.com/users/bcthomas/foll... | [] | closed | false | null | [] | null | [
"Unfortunately, the GFK field was never intended to interact with Rails. Perhaps you can add extra column(s) to the table to support the Peewee version of the data, or write a custom field that uses the names you need.\n",
"I figured this was the case. Modifying the table is a great idea and probably the least w... | 2016-08-17T04:15:25 | 2016-08-17T15:48:28 | 2016-08-17T04:41:01 | NONE | null | I have a legacy Rails database that I'm writing a peewee wrapper around. The Rails db uses a polymorphic/GFK for a "note". I'm trying to use peewee GFKs, but the SQL it's using to find a note is using the lowercase name of the table for the associated model, but the value in the db is the actual class name.
For exam... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1042/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/1042/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1041 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1041/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1041/comments | https://api.github.com/repos/coleifer/peewee/issues/1041/events | https://github.com/coleifer/peewee/issues/1041 | 171,198,790 | MDU6SXNzdWUxNzExOTg3OTA= | 1,041 | Peewee install is broken on PyPy | {
"login": "scitesy",
"id": 45361,
"node_id": "MDQ6VXNlcjQ1MzYx",
"avatar_url": "https://avatars.githubusercontent.com/u/45361?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scitesy",
"html_url": "https://github.com/scitesy",
"followers_url": "https://api.github.com/users/scitesy/follower... | [] | closed | false | null | [] | null | [
"Interesting. Do you have Cython installed alongside Peewee by chance? If not it's using the C source files bundled with Peewee, which appear not to be compatible.\n",
"I've reverted a particular commit and pushed the changes to `master`... Do you mind trying them out?\n\nShould be:\n\n```\npip install -e git+htt... | 2016-08-15T15:50:43 | 2016-08-25T08:50:32 | 2016-08-16T11:37:57 | NONE | null | Ubuntu 16.04
PyPy pypy2-v5.3.1-linux64
Both pip install peewee and python setup.py install from a virtualenv fail with the following terminal output: https://gist.github.com/scitesy/550fa086870c7d90ae138b8f7e209e1c
I believe it has been broken since sometime around July 14th.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1041/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/1041/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1040 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1040/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1040/comments | https://api.github.com/repos/coleifer/peewee/issues/1040/events | https://github.com/coleifer/peewee/pull/1040 | 171,022,066 | MDExOlB1bGxSZXF1ZXN0ODEyMjMyMTM= | 1,040 | Add pool option to db_url.connect | {
"login": "joeyespo",
"id": 634573,
"node_id": "MDQ6VXNlcjYzNDU3Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/634573?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joeyespo",
"html_url": "https://github.com/joeyespo",
"followers_url": "https://api.github.com/users/joeyesp... | [] | closed | false | null | [] | null | [
"I will pass on this feature. The whole point of `db_url` is to allow you to specify things in the URL, and I don't see this as adding any particular value beyond what's already there.\n",
"Ok.\n\nSeems odd that when URL comes from an external source, you have to manually inject the Peewee-specific '+pool' argume... | 2016-08-13T18:48:31 | 2016-08-14T00:02:44 | 2016-08-13T23:48:36 | CONTRIBUTOR | null | This separates the URL concern from the pooling concern. This is also backwards-compatible, so you can still use 'scheme+pool' if you want to hardcode the decision to use pooling right in your URL.
This lets you write:
``` py
db = db_url.connect(app.config['DATABASE_URL'], pool=True)
```
Now, for example, Heroku's r... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1040/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/1040/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1040",
"html_url": "https://github.com/coleifer/peewee/pull/1040",
"diff_url": "https://github.com/coleifer/peewee/pull/1040.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1040.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1039 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1039/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1039/comments | https://api.github.com/repos/coleifer/peewee/issues/1039/events | https://github.com/coleifer/peewee/issues/1039 | 170,985,032 | MDU6SXNzdWUxNzA5ODUwMzI= | 1,039 | Documentation error | {
"login": "lyssdod",
"id": 2615950,
"node_id": "MDQ6VXNlcjI2MTU5NTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/2615950?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lyssdod",
"html_url": "https://github.com/lyssdod",
"followers_url": "https://api.github.com/users/lyssdod/... | [] | closed | false | null | [] | null | [
"You can specify them as a list or a tuple, so I will update the documentation to that effect.\n\nI'm guessing you ran into the error because you were only specifying one `PRAGMA` and forgot the trailing comma Python requires to differentiate simple parentheses from a tuple declaration.\n",
"Exactly, I was specif... | 2016-08-13T01:01:25 | 2016-08-14T00:29:49 | 2016-08-13T23:52:33 | NONE | null | http://docs.peewee-orm.com/en/latest/peewee/database.html?highlight=sqlite#pragma-statements
Here it says "To run one or more PRAGMA statements against new connections, you can specify them as a list of 2-tuples... " but the code coming afterwards utilizes a tuple instead of list:
```
pragmas=(
('journal_mode', '... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1039/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/1039/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1038 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1038/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1038/comments | https://api.github.com/repos/coleifer/peewee/issues/1038/events | https://github.com/coleifer/peewee/issues/1038 | 170,905,783 | MDU6SXNzdWUxNzA5MDU3ODM= | 1,038 | Use six library | {
"login": "thomdixon",
"id": 461514,
"node_id": "MDQ6VXNlcjQ2MTUxNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/461514?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thomdixon",
"html_url": "https://github.com/thomdixon",
"followers_url": "https://api.github.com/users/thom... | [] | closed | false | null | [] | null | [
"In my opinion, the `six` library is silly and I don't want to add a useless dependency.\n"
] | 2016-08-12T16:09:23 | 2016-08-13T23:53:33 | 2016-08-13T23:53:33 | NONE | null | You should use the wonderful [`six`](https://pythonhosted.org/six/) library, which would make a lot of [this](https://github.com/coleifer/peewee/blob/master/peewee.py#L118) unnecessary (especially the [`exec` for `reraise`](https://github.com/coleifer/peewee/blob/master/peewee.py#L143)).
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1038/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/1038/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1037 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1037/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1037/comments | https://api.github.com/repos/coleifer/peewee/issues/1037/events | https://github.com/coleifer/peewee/issues/1037 | 170,824,661 | MDU6SXNzdWUxNzA4MjQ2NjE= | 1,037 | FlaskDB and Model with signal support | {
"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 | [
"Just subclass `FlaskDB` and override the `get_model` method to use the `Model` subclass from the `signals` extension:\n\n``` python\nfrom playhouse.signals import Model as SignalModel\n\n\nclass SignalsFlaskDB(FlaskDB):\n def get_model_class(self):\n if self.database is None:\n raise RuntimeEr... | 2016-08-12T08:41:28 | 2016-08-13T23:56:09 | 2016-08-13T23:56:09 | NONE | null | Now `BaseModel` [class based on](https://github.com/coleifer/peewee/blob/master/playhouse/flask_utils.py#L153) peewee.Model without signals
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1037/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/1037/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1036 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1036/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1036/comments | https://api.github.com/repos/coleifer/peewee/issues/1036/events | https://github.com/coleifer/peewee/issues/1036 | 170,560,991 | MDU6SXNzdWUxNzA1NjA5OTE= | 1,036 | peewee support multi process mode ? | {
"login": "rfyiamcool",
"id": 3785409,
"node_id": "MDQ6VXNlcjM3ODU0MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3785409?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rfyiamcool",
"html_url": "https://github.com/rfyiamcool",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"Could you please be specific? What do you mean by \"dynamically\"? Honestly, please try to explain things so I can understand exactly what you're talking about, otherwise you are wasting both of our time.\n",
"Database connections are not shared across multiple Python interpreter processes. Peewee, by default, u... | 2016-08-11T02:49:34 | 2016-08-11T07:59:15 | 2016-08-11T07:59:15 | NONE | null | peewee support multi process mode ? How to create a connection dynamically?
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1036/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/1036/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1035 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1035/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1035/comments | https://api.github.com/repos/coleifer/peewee/issues/1035/events | https://github.com/coleifer/peewee/issues/1035 | 170,494,660 | MDU6SXNzdWUxNzA0OTQ2NjA= | 1,035 | Can't create a table called `model` in PostgreSQL | {
"login": "bnaul",
"id": 903655,
"node_id": "MDQ6VXNlcjkwMzY1NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/903655?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bnaul",
"html_url": "https://github.com/bnaul",
"followers_url": "https://api.github.com/users/bnaul/followers"... | [] | closed | false | null | [] | null | [
"In the meantime you can work around by naming your class something else and\nspecifying db_table='model', but I will get this fixed asap.\n\nOn Aug 10, 2016 2:09 PM, \"Brett Naul\" notifications@github.com wrote:\n\n> Was fine on 2.8.1 but has broken since upgrading to 2.8.2. Example:\n> \n> import peewee as pw\n>... | 2016-08-10T19:09:46 | 2016-08-11T17:23:19 | 2016-08-11T07:53:05 | NONE | null | Was fine on `2.8.1` but has broken since upgrading to `2.8.2`. Example:
```
import peewee as pw
db = pw.PostgresqlDatabase(autocommit=True, autorollback=True,
database='postgres', host=None, password=None,
port=5432)
class NotModel(pw.Model):
name = pw.CharFi... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1035/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/1035/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1034 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1034/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1034/comments | https://api.github.com/repos/coleifer/peewee/issues/1034/events | https://github.com/coleifer/peewee/issues/1034 | 170,330,013 | MDU6SXNzdWUxNzAzMzAwMTM= | 1,034 | pwiz not output models.py with Mysql BLOB | {
"login": "rfyiamcool",
"id": 3785409,
"node_id": "MDQ6VXNlcjM3ODU0MDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3785409?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rfyiamcool",
"html_url": "https://github.com/rfyiamcool",
"followers_url": "https://api.github.com/users... | [] | closed | false | null | [] | null | [
"The mapping in the `playhouse.reflection` module explicitly associates MySQL BLOB columns with `TextField`s. I wish I had left a comment as to why it is that way... There seems to be some odd behavior with the way MySQL / Python handle BLOBs compared to the other database engines Peewee supports out-of-the-box (th... | 2016-08-10T05:19:54 | 2016-08-15T19:42:22 | 2016-08-15T19:42:22 | NONE | null | pwiz not output models.py with Mysql BLOB?
parse error, My mysql filed is blob, pwiz output TEXTFIELD .
Thanks U.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1034/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/1034/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1033 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1033/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1033/comments | https://api.github.com/repos/coleifer/peewee/issues/1033/events | https://github.com/coleifer/peewee/issues/1033 | 170,153,658 | MDU6SXNzdWUxNzAxNTM2NTg= | 1,033 | Issue with using percent sign | {
"login": "bitnic028",
"id": 11515516,
"node_id": "MDQ6VXNlcjExNTE1NTE2",
"avatar_url": "https://avatars.githubusercontent.com/u/11515516?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bitnic028",
"html_url": "https://github.com/bitnic028",
"followers_url": "https://api.github.com/users/... | [] | closed | false | null | [] | null | [
"What database are you using?\n",
"Posgtrsql.\n",
"This is a quirk of `psycopg2`, which apparently treats \"%\" as placeholders. This StackOverflow question deals with the exact same issue:\n\nhttp://stackoverflow.com/questions/14054920/psycopg2-indexerror-tuple-index-out-of-range-error-when-using-like-operat\n... | 2016-08-09T12:28:49 | 2016-08-10T14:40:22 | 2016-08-10T14:40:22 | NONE | null | A code like this
```
>>> from application.db.models import db
>>> query = 'SELECT 12 % 5;'
>>> res = db.execute_sql(query)
```
is crashing
```
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/peewee.py", line 3485, in execute_sql
cursor.execu... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1033/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/1033/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1032 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1032/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1032/comments | https://api.github.com/repos/coleifer/peewee/issues/1032/events | https://github.com/coleifer/peewee/issues/1032 | 169,936,345 | MDU6SXNzdWUxNjk5MzYzNDU= | 1,032 | Retrieving data through a ManyToManyField fails with ForeignKeyFields as primary keys | {
"login": "bfontaine",
"id": 1334295,
"node_id": "MDQ6VXNlcjEzMzQyOTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1334295?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bfontaine",
"html_url": "https://github.com/bfontaine",
"followers_url": "https://api.github.com/users/bf... | [] | closed | false | null | [] | null | [
"I reported this issue before the 2.8.2 release but I just tried and I can still reproduce it with the same code example and the latest release (2.8.2).\n",
"The issue has not been fixed, but I'm now looking into it.\n",
"Thanks for the code to repro - you have no idea how much I appreciate it!\n",
"Fixed\n",... | 2016-08-08T14:26:08 | 2016-08-24T07:44:35 | 2016-08-24T05:20:55 | CONTRIBUTOR | null | Here is a simple example:
``` python
from playhouse.sqlite_ext import SqliteExtDatabase
from playhouse.fields import ManyToManyField
from peewee import Model, ForeignKeyField
db = SqliteExtDatabase("yo.db")
class BaseModel(Model):
class Meta:
database = db
class A(BaseModel):
pass
class B(BaseModel... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1032/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/1032/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1031 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1031/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1031/comments | https://api.github.com/repos/coleifer/peewee/issues/1031/events | https://github.com/coleifer/peewee/issues/1031 | 169,885,323 | MDU6SXNzdWUxNjk4ODUzMjM= | 1,031 | Query doesn't work using `&` | {
"login": "Cee",
"id": 5436953,
"node_id": "MDQ6VXNlcjU0MzY5NTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5436953?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Cee",
"html_url": "https://github.com/Cee",
"followers_url": "https://api.github.com/users/Cee/followers",
"f... | [] | closed | false | null | [] | null | [
"If I leave off the call to `.count()`, the SQL is:\n\n``` sql\nSELECT \"t1\".\"id\", \"t1\".\"user_id\", \"t1\".\"message\", \"t1\".\"created_date\", \"t1\".\"is_published\" \nFROM \"tweet\" AS t1 \nWHERE ((\"t1\".\"created_date\" >= ?) AND (\"t1\".\"is_published\" = ?))\n```\n\nThe parameters passed into the quer... | 2016-08-08T09:58:16 | 2016-08-08T15:54:57 | 2016-08-08T15:54:57 | NONE | null | ``` python
tweets_today = (Tweet
.select()
.where(
(Tweet.created_date >= datetime.date.today()) &
(Tweet.is_published == True))
.count())
```
I'm a python beginner and follow the [example](https://github.com/coleifer/peewee/blob/m... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1031/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/1031/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1030 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1030/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1030/comments | https://api.github.com/repos/coleifer/peewee/issues/1030/events | https://github.com/coleifer/peewee/issues/1030 | 169,802,318 | MDU6SXNzdWUxNjk4MDIzMTg= | 1,030 | Is Peewee Greenlet-safe? | {
"login": "joeyespo",
"id": 634573,
"node_id": "MDQ6VXNlcjYzNDU3Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/634573?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joeyespo",
"html_url": "https://github.com/joeyespo",
"followers_url": "https://api.github.com/users/joeyesp... | [] | closed | false | null | [] | null | [
"For questions regarding `werkzeug.LocalProxy`, you'll need to refer to the folks that maintain that project as I am not familiar with that particular class.\n\nI can tell you, however, that peewee works well with gevent (fuck yeah, gevent! asyncio is a heaping pile of turds). If you're using `psycopg2` with `Postg... | 2016-08-07T15:48:15 | 2016-08-07T16:33:09 | 2016-08-07T16:32:02 | CONTRIBUTOR | null | My target setup is to use Flask, Peewee, and `LocalProxy` as fixed in #1025 for the development simplicity and power. (Peewee is awesome!) For production, I plan to use Gunicorn with Gevent workers to handle as many simultaneous connections as this stack will allow. (Then scale with more complicated methods _after_ pro... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1030/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/1030/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1029 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1029/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1029/comments | https://api.github.com/repos/coleifer/peewee/issues/1029/events | https://github.com/coleifer/peewee/pull/1029 | 169,524,175 | MDExOlB1bGxSZXF1ZXN0ODAxODU4MTc= | 1,029 | Add CROSS JOIN. | {
"login": "paulbooth",
"id": 448703,
"node_id": "MDQ6VXNlcjQ0ODcwMw==",
"avatar_url": "https://avatars.githubusercontent.com/u/448703?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/paulbooth",
"html_url": "https://github.com/paulbooth",
"followers_url": "https://api.github.com/users/paul... | [] | closed | false | null | [] | null | [
"merged equivalent patch\n"
] | 2016-08-05T04:01:28 | 2016-10-16T05:38:11 | 2016-10-16T05:37:56 | CONTRIBUTOR | null | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1029/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/1029/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1029",
"html_url": "https://github.com/coleifer/peewee/pull/1029",
"diff_url": "https://github.com/coleifer/peewee/pull/1029.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1029.patch",
"merged_at": null
} | |
https://api.github.com/repos/coleifer/peewee/issues/1028 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1028/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1028/comments | https://api.github.com/repos/coleifer/peewee/issues/1028/events | https://github.com/coleifer/peewee/pull/1028 | 169,515,721 | MDExOlB1bGxSZXF1ZXN0ODAxNzk4NzI= | 1,028 | Pass kwargs from ensure_join to the join call. | {
"login": "paulbooth",
"id": 448703,
"node_id": "MDQ6VXNlcjQ0ODcwMw==",
"avatar_url": "https://avatars.githubusercontent.com/u/448703?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/paulbooth",
"html_url": "https://github.com/paulbooth",
"followers_url": "https://api.github.com/users/paul... | [] | closed | false | null | [] | null | [
"Looks pretty good, just hesitating on pressing \"Merge\" because it slightly changes the API in a backwards-incompatible way. Then I thought \"Oh, well, the method is not documented, so nobody's really using it.\" And _then_ I thought, \"well, this guy's using it.\"\n\nSo, since I'm curious, what are you using thi... | 2016-08-05T02:24:23 | 2016-08-10T14:34:20 | 2016-08-10T14:34:07 | CONTRIBUTOR | null | Allows join_type to be specified in ensure_join.
This will also allow any future arguments to join to automatically be handled through ensure_join.
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1028/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/1028/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1028",
"html_url": "https://github.com/coleifer/peewee/pull/1028",
"diff_url": "https://github.com/coleifer/peewee/pull/1028.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1028.patch",
"merged_at": "2016-08-10T14:34:07"
} |
https://api.github.com/repos/coleifer/peewee/issues/1027 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1027/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1027/comments | https://api.github.com/repos/coleifer/peewee/issues/1027/events | https://github.com/coleifer/peewee/issues/1027 | 169,502,457 | MDU6SXNzdWUxNjk1MDI0NTc= | 1,027 | New release, please. | {
"login": "kdart",
"id": 33999,
"node_id": "MDQ6VXNlcjMzOTk5",
"avatar_url": "https://avatars.githubusercontent.com/u/33999?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kdart",
"html_url": "https://github.com/kdart",
"followers_url": "https://api.github.com/users/kdart/followers",
"f... | [] | closed | false | null | [] | null | [
"Definitely, can you tell me what commit in particular you're referring to?\n",
"The error is this:\n\n```\nTraceback (most recent call last):\n File \"/opt/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py\", line 184, in _run_module_as_main\n \"__main__\", mod_spec)\n F... | 2016-08-05T00:11:23 | 2016-08-09T05:36:10 | 2016-08-09T05:36:09 | NONE | null | Hello. First of all, thanks for the great ORM. I'm using it in my project. My project defines some custom fields. Now if I use the current distribution from pypi I get an exception thrown and my project basically crashes. But I see the fix for it is already in master. If I install from master everything works fine. It... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1027/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/1027/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1026 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1026/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1026/comments | https://api.github.com/repos/coleifer/peewee/issues/1026/events | https://github.com/coleifer/peewee/issues/1026 | 168,888,967 | MDU6SXNzdWUxNjg4ODg5Njc= | 1,026 | Add support for PostgreSQL geometric types | {
"login": "guidoiaquinti",
"id": 4038041,
"node_id": "MDQ6VXNlcjQwMzgwNDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/4038041?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/guidoiaquinti",
"html_url": "https://github.com/guidoiaquinti",
"followers_url": "https://api.github.... | [] | closed | false | null | [] | null | [
"See an example of custom field for that here https://github.com/BaseAdresseNationale/ban/blob/master/ban/db/fields.py#L33\n",
"While I personally have no intentions of implementing fields for those data-types, I would merge a pull-request that added support in the `playhouse.postgres_ext` module. On a personal n... | 2016-08-02T13:46:17 | 2016-08-03T07:36:31 | 2016-08-03T07:36:31 | NONE | null | I'm opening this issue (as suggested in the [docs](http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#postgresql-extensions)) to keep track of PostgreSQL [geometric type](https://www.postgresql.org/docs/current/static/datatype-geometric.html) support
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1026/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/1026/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1025 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1025/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1025/comments | https://api.github.com/repos/coleifer/peewee/issues/1025/events | https://github.com/coleifer/peewee/pull/1025 | 168,571,695 | MDExOlB1bGxSZXF1ZXN0Nzk1MTYzNjk= | 1,025 | Explicitly check database for None in ModelOptions | {
"login": "joeyespo",
"id": 634573,
"node_id": "MDQ6VXNlcjYzNDU3Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/634573?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joeyespo",
"html_url": "https://github.com/joeyespo",
"followers_url": "https://api.github.com/users/joeyesp... | [] | closed | false | null | [] | null | [
"Ahh, surprised this one's managed to stay undiscovered until now. Thanks for the patch!\n"
] | 2016-08-01T05:50:10 | 2016-08-02T07:10:27 | 2016-08-02T07:10:27 | CONTRIBUTOR | null | I was trying to use Werkzeug's [`LocalProxy`](http://werkzeug.pocoo.org/docs/0.11/local/) with the [Context Usage approach described in the Flask docs](http://flask.pocoo.org/docs/0.11/appcontext/#context-usage):
``` python
import peewee
from werkzeug.local import LocalProxy
@LocalProxy
def db():
_db = getattr(g... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1025/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/1025/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1025",
"html_url": "https://github.com/coleifer/peewee/pull/1025",
"diff_url": "https://github.com/coleifer/peewee/pull/1025.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1025.patch",
"merged_at": "2016-08-02T07:10:27"
} |
https://api.github.com/repos/coleifer/peewee/issues/1024 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1024/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1024/comments | https://api.github.com/repos/coleifer/peewee/issues/1024/events | https://github.com/coleifer/peewee/pull/1024 | 168,521,073 | MDExOlB1bGxSZXF1ZXN0Nzk0ODY4MjY= | 1,024 | SqliteMigrator: fix edge case in rename_column | {
"login": "jberkel",
"id": 18891,
"node_id": "MDQ6VXNlcjE4ODkx",
"avatar_url": "https://avatars.githubusercontent.com/u/18891?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jberkel",
"html_url": "https://github.com/jberkel",
"followers_url": "https://api.github.com/users/jberkel/follower... | [] | closed | false | null | [] | null | [
"Actually there are still some cases where this might fail. Maybe there's a better way to recreate the indexes?\n",
"Fixed in 5aa587c\n"
] | 2016-07-31T14:45:15 | 2016-08-06T16:00:17 | 2016-08-06T16:00:08 | CONTRIBUTOR | null | When renaming a column with the same name as the table
the table name will get accidentally replaced in the “CREATE index”
query:
``` sql
CREATE INDEX
"table_name_first_column_second_column" ON
"table_name" ("first_column", "second_column")
```
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1024/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/1024/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1024",
"html_url": "https://github.com/coleifer/peewee/pull/1024",
"diff_url": "https://github.com/coleifer/peewee/pull/1024.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1024.patch",
"merged_at": null
} |
https://api.github.com/repos/coleifer/peewee/issues/1023 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1023/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1023/comments | https://api.github.com/repos/coleifer/peewee/issues/1023/events | https://github.com/coleifer/peewee/issues/1023 | 167,686,809 | MDU6SXNzdWUxNjc2ODY4MDk= | 1,023 | PostgresqlDatabase class does not have `_upsert` statement | {
"login": "cheetah90",
"id": 3032091,
"node_id": "MDQ6VXNlcjMwMzIwOTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3032091?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheetah90",
"html_url": "https://github.com/cheetah90",
"followers_url": "https://api.github.com/users/ch... | [] | closed | false | null | [] | null | [
"Follow-up, Postgresql has implemented `UPSERT` in version > 9.5. [See here](https://wiki.postgresql.org/wiki/UPSERT)\n",
"@cheetah90 -- there are two issues currently open tracking this exact thing:\n- #942 \n- #853\n"
] | 2016-07-26T19:10:11 | 2016-07-26T19:56:01 | 2016-07-26T19:56:01 | NONE | null | Looking at the [PostgresqlDatabase class](https://github.com/coleifer/peewee/blob/b84ca0c8bc724b8cccd0b5bbd557abc04885c478/peewee.py#L3945), it does not specify the statement for `_upsert`, so when [`query._upsert` is called here](https://github.com/coleifer/peewee/blob/b84ca0c8bc724b8cccd0b5bbd557abc04885c478/peewee.p... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1023/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/1023/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1022 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1022/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1022/comments | https://api.github.com/repos/coleifer/peewee/issues/1022/events | https://github.com/coleifer/peewee/issues/1022 | 166,757,384 | MDU6SXNzdWUxNjY3NTczODQ= | 1,022 | pwiz columns invalid names | {
"login": "CosmicAnalogue465",
"id": 499021,
"node_id": "MDQ6VXNlcjQ5OTAyMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/499021?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CosmicAnalogue465",
"html_url": "https://github.com/CosmicAnalogue465",
"followers_url": "https://a... | [] | closed | false | null | [] | null | [
"Hmmm....\n",
"Can you explain this in a bit more detail? What exactly is the nature of this bug?\n",
"This is a example of generated code from pwiz\n\nclass Flag(BaseModel):\n description = TextField(null=True)\n flag id = CharField(null=True)\n name = CharField(null=True)\n\npython will syntax error:... | 2016-07-21T07:47:04 | 2016-07-26T19:53:58 | 2016-07-26T19:53:58 | NONE | null | in mysql fields can be named:
"source id"
"marketing/position"
in this case pwiz creates python model attributes of the same name.
Related issue: https://github.com/coleifer/peewee/issues/184
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1022/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/1022/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1021 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1021/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1021/comments | https://api.github.com/repos/coleifer/peewee/issues/1021/events | https://github.com/coleifer/peewee/issues/1021 | 166,729,409 | MDU6SXNzdWUxNjY3Mjk0MDk= | 1,021 | pwiz not generating foreign key fields for postgres | {
"login": "Mak-NOAA",
"id": 20570382,
"node_id": "MDQ6VXNlcjIwNTcwMzgy",
"avatar_url": "https://avatars.githubusercontent.com/u/20570382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mak-NOAA",
"html_url": "https://github.com/Mak-NOAA",
"followers_url": "https://api.github.com/users/Mak... | [] | closed | false | null | [] | null | [
"Can you please tell me a bit more about your schema? How are your foreign keys defined? \n\nIf you're able to create a connection using peewee, e.g.:\n\n``` python\ndb = PostgresqlDatabase('my_db', user='postgres')\ndb.connect()\n```\n\nThen you can try running the following to see what peewee is able to introspe... | 2016-07-21T03:23:24 | 2019-07-04T16:34:38 | 2016-07-27T14:05:47 | NONE | null | Hi @coleifer
I have the same issue as https://github.com/coleifer/peewee/issues/207
with postgres however
I used the command
python -m pwiz -e postgresql -u USERNAME -P DATABASE -H HOST-p PORT-s SCHEMA> model.py
My model did not contain any "ForeignKeyField"
Any thoughts? Does pwiz create foreign key for postgres... | {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1021/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/1021/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1020 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1020/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1020/comments | https://api.github.com/repos/coleifer/peewee/issues/1020/events | https://github.com/coleifer/peewee/issues/1020 | 166,462,440 | MDU6SXNzdWUxNjY0NjI0NDA= | 1,020 | pwiz returns no such option -1 | {
"login": "yanchao7511461",
"id": 7982646,
"node_id": "MDQ6VXNlcjc5ODI2NDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/7982646?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yanchao7511461",
"html_url": "https://github.com/yanchao7511461",
"followers_url": "https://api.gith... | [] | closed | false | null | [] | null | [
"How strange...couple questions:\n1. Is your VPS running linux?\n2. Are you using the exact same invocation on your VPS, or something different?\n3. How did you install Peewee on your computer?\n4. How did you install Peewee on your VPS?\n5. What version of peewee?\n\nNote: I edited your comment to add code formatt... | 2016-07-19T23:31:01 | 2016-07-26T19:54:19 | 2016-07-26T19:54:19 | NONE | null | ```
C:\Users\mypc>python -m pwiz -e mysql -H localhost -p3306 -uroot -Proot wpdb > wpmodel.py
Usage: pwiz.py [options] database_name
pwiz.py: error: no such option: -1
```
these texts is from my pc.
When I use pwiz on my vps , it returns 'no such option: -c '
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1020/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/1020/timeline | null | completed | null | null |
https://api.github.com/repos/coleifer/peewee/issues/1019 | https://api.github.com/repos/coleifer/peewee | https://api.github.com/repos/coleifer/peewee/issues/1019/labels{/name} | https://api.github.com/repos/coleifer/peewee/issues/1019/comments | https://api.github.com/repos/coleifer/peewee/issues/1019/events | https://github.com/coleifer/peewee/pull/1019 | 166,441,597 | MDExOlB1bGxSZXF1ZXN0NzgwNTM1NTc= | 1,019 | impl new DeferredRelation semantics | {
"login": "c0ldcalamari",
"id": 11208820,
"node_id": "MDQ6VXNlcjExMjA4ODIw",
"avatar_url": "https://avatars.githubusercontent.com/u/11208820?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/c0ldcalamari",
"html_url": "https://github.com/c0ldcalamari",
"followers_url": "https://api.github.c... | [] | closed | false | null | [] | null | [
"Awesome, thanks for the merge! \n"
] | 2016-07-19T21:36:24 | 2016-07-20T17:12:58 | 2016-07-20T15:49:21 | NONE | null | this implements issue #1018
| {
"url": "https://api.github.com/repos/coleifer/peewee/issues/1019/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/1019/timeline | null | null | false | {
"url": "https://api.github.com/repos/coleifer/peewee/pulls/1019",
"html_url": "https://github.com/coleifer/peewee/pull/1019",
"diff_url": "https://github.com/coleifer/peewee/pull/1019.diff",
"patch_url": "https://github.com/coleifer/peewee/pull/1019.patch",
"merged_at": "2016-07-20T15:49:21"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.