Skip to content

Commit 7c458ab

Browse files
committed
remove unused code
1 parent b989a41 commit 7c458ab

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

src/gino/dialects/aiomysql.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
import aiomysql
99
from sqlalchemy import util, exc, sql
1010
from sqlalchemy.dialects.mysql import (JSON, ENUM)
11-
# from sqlalchemy.dialects.postgresql import ( # noqa: F401
12-
# ARRAY,
13-
# CreateEnumType,
14-
# DropEnumType,
15-
# JSON,
16-
# JSONB,
17-
# json,
18-
# )
1911
from sqlalchemy.dialects.mysql.base import (
2012
MySQLCompiler,
2113
MySQLDialect,
@@ -50,22 +42,6 @@
5042

5143
class AiomysqlDBAPI(base.BaseDBAPI):
5244
paramstyle = "format"
53-
# Error = asyncpg.PostgresError, asyncpg.InterfaceError
54-
55-
56-
# class AiomysqlCompiler(PGCompiler):
57-
# @property
58-
# def bindtemplate(self):
59-
# return self._bindtemplate
60-
#
61-
# @bindtemplate.setter
62-
# def bindtemplate(self, val):
63-
# # noinspection PyAttributeOutsideInit
64-
# self._bindtemplate = val.replace(":", "$")
65-
#
66-
# def _apply_numbered_params(self):
67-
# if hasattr(self, "string"):
68-
# return super()._apply_numbered_params()
6945

7046

7147
# noinspection PyAbstractClass
@@ -353,6 +329,7 @@ async def rollback(self):
353329
await self._conn.rollback()
354330

355331

332+
# MySQL doesn't need to create ENUM types like PostgreSQL, do nothing here
356333
class AsyncEnum(ENUM):
357334
async def create_async(self, bind=None, checkfirst=True):
358335
pass

0 commit comments

Comments
 (0)