Skip to content

Commit 30cc47f

Browse files
committed
Add example to README.
1 parent eca3374 commit 30cc47f

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ Tornado-MySQL
99

1010
This package contains a fork of PyMySQL supporting Tornado.
1111

12-
**THIS PROJECT is WORK IN PROGRESS.** You can't use it for now.
13-
Stay tuned.
12+
Example
13+
-------
14+
15+
.. include:: example.py
16+
:code: python
17+
1418

1519
Requirements
1620
-------------
@@ -27,6 +31,7 @@ Requirements
2731

2832
.. _CPython: http://www.python.org/
2933
.. _PyPy: http://pypy.org/
34+
.. _MySQL: http://www.mysql.com/
3035
.. _MariaDB: https://mariadb.org/
3136

3237

example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ def main():
1010
cur = conn.cursor()
1111
yield cur.execute("SELECT Host,User FROM user")
1212
print(cur.description)
13-
print()
1413
for row in cur:
1514
print(row)
1615
cur.close()
1716
conn.close()
1817

19-
2018
ioloop.IOLoop.current().run_sync(main)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'Programming Language :: Python :: 3.4',
2727
'Programming Language :: Python :: Implementation :: CPython',
2828
'Programming Language :: Python :: Implementation :: PyPy',
29-
'Development Status :: 4 - Beta',
29+
'Development Status :: 3 - Alpha',
3030
'Intended Audience :: Developers',
3131
'License :: OSI Approved :: MIT License',
3232
'Topic :: Database',

0 commit comments

Comments
 (0)