Skip to content

Commit

Permalink
Disable speedups for MySql
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyryk committed Dec 1, 2016
1 parent 917daf7 commit 9ba1e55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion peewee_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
except ImportError:
aiomysql = None

__version__ = '0.5.6'
__version__ = '0.5.7'

__all__ = [
### High level API ###
Expand Down Expand Up @@ -1304,6 +1304,14 @@ def last_insert_id_async(self, cursor, model):
if model._meta.auto_increment:
return cursor.lastrowid

@property
def use_speedups(self):
return False

@use_speedups.setter
def use_speedups(self, value):
pass


class PooledMySQLDatabase(MySQLDatabase):
"""MySQL database driver providing **single drop-in sync**
Expand Down

0 comments on commit 9ba1e55

Please sign in to comment.