Skip to content

Commit 74445c8

Browse files
authored
Removed lower priority example code from README
More attention to the best example (don't have a worse suggestion as a first code example as it might be simply copy-pasted and spread a worse pattern.
1 parent b3a724b commit 74445c8

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

README.rst

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -129,35 +129,6 @@ are just row data containers, you are still dealing with SQL which is
129129
represented by Models and SQLAlchemy core grammars. Besides if you don't like
130130
ORM at all, you can use GINO without ORM:
131131

132-
.. code-block:: python
133-
134-
import sqlalchemy as sa
135-
136-
metadata = sa.MetaData()
137-
138-
user = sa.Table(
139-
'users', metadata,
140-
sa.Column('id', sa.BigInteger(), primary_key=True),
141-
sa.Column('nickname', sa.Unicode()),
142-
)
143-
144-
145-
import gino
146-
147-
async def main():
148-
e = await gino.create_engine('postgresql://localhost/gino')
149-
users = await e.all(sa.select([user]))
150-
print(users)
151-
# prints something like this:
152-
# [(1, 'fantix'), (2, 'fantix'), (3, 'fantix'), (5, 'fantix')]
153-
154-
155-
import asyncio
156-
157-
asyncio.get_event_loop().run_until_complete(main())
158-
159-
or a bit more GINO-ish:
160-
161132
.. code-block:: python
162133
163134
from gino import Gino

0 commit comments

Comments
 (0)