Skip to content

Commit

Permalink
fix: add varint type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause authored Oct 21, 2024
1 parent 9462233 commit 220c18f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions duckdb_engine/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class UInteger(Integer):
pass


class VarInt(Integer):
pass


def compile_uint(element: Integer, compiler: PGTypeCompiler, **kw: Any) -> str:
return getattr(element, "name", type(element).__name__)

Expand Down Expand Up @@ -199,6 +203,7 @@ def __init__(self, fields: Dict[str, TV]):
"enum": sqltypes.Enum,
"bool": sqltypes.BOOLEAN,
"varchar": String,
"varint": VarInt,
}


Expand Down

0 comments on commit 220c18f

Please sign in to comment.