Created
January 2, 2020 11:20
-
-
Save vskrachkov/8585bdc2301931fab95db9391e88e125 to your computer and use it in GitHub Desktop.
peewee python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from peewee import * | |
User = Table('users', ('id', 'username')) | |
s = Select().columns('id', 'username').from_(User) | |
sub = Select().columns(s.c.id, s.c.username).from_(s) | |
print(s.c) | |
print(s._returning) | |
print(sub._returning) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment