From 712c612d0de5c63acad732b8f43cb38fa5af28d3 Mon Sep 17 00:00:00 2001 From: Shubham Jain Date: Thu, 3 Oct 2024 00:52:51 +0100 Subject: [PATCH] Update core.py to add float --- fastsql/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastsql/core.py b/fastsql/core.py index 8efa70f..e60f183 100644 --- a/fastsql/core.py +++ b/fastsql/core.py @@ -50,7 +50,7 @@ def xtra(self, **kwargs): self.xtra_id = kwargs # %% ../00_core.ipynb 9 -_type_map = {int: sa.Integer, str: sa.String, bool: sa.Boolean} +_type_map = {int: sa.Integer, str: sa.String, bool: sa.Boolean, float: sa.Float} def _column(name, typ, primary=False): return sa.Column(name, _type_map[typ], primary_key=primary) # %% ../00_core.ipynb 10