Skip to content

Commit 1e4fb92

Browse files
Saul Pwansoncpcloud
Saul Pwanson
authored andcommitted
feat(mysql): register BLOB types
1 parent f45c345 commit 1e4fb92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ibis/backends/base/sql/alchemy/datatypes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ def sa_mysql_numeric(_, satype, nullable=True):
177177
)
178178

179179

180+
@dt.dtype.register(MySQLDialect, mysql.TINYBLOB)
181+
@dt.dtype.register(MySQLDialect, mysql.MEDIUMBLOB)
182+
@dt.dtype.register(MySQLDialect, mysql.BLOB)
183+
@dt.dtype.register(MySQLDialect, mysql.LONGBLOB)
184+
def sa_mysql_blob(_, satype, nullable=True):
185+
return dt.Binary(nullable=nullable)
186+
187+
180188
@dt.dtype.register(Dialect, sa.types.Numeric)
181189
@dt.dtype.register(SQLiteDialect, sqlite.NUMERIC)
182190
def sa_numeric(_, satype, nullable=True):

0 commit comments

Comments
 (0)