We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inspired by #8
The text was updated successfully, but these errors were encountered:
Rough sketch:
+try: + import numpy +except ImportError: + numpy = None + Column = namedtuple( "Column", ("cid", "name", "type", "notnull", "default_value", "is_pk") ) @@ -70,6 +79,22 @@ class Database: datetime.time: "TEXT", None.__class__: "TEXT", } + # If numpy is available, add more types + if numpy: + col_type_mapping.update({ + numpy.int8: "INTEGER", + numpy.int16: "INTEGER", + numpy.int32: "INTEGER", + numpy.int64: "INTEGER", + numpy.uint8: "INTEGER", + numpy.uint16: "INTEGER", + numpy.uint32: "INTEGER", + numpy.uint64: "INTEGER", + numpy.float16: "FLOAT", + numpy.float32: "FLOAT", + numpy.float64: "FLOAT", + numpy.float128: "FLOAT", + })
Sorry, something went wrong.
Need to test this both with and without numpy installed.
numpy
Support for numpy types, closes #11
bfec253
e615d22
No branches or pull requests
Inspired by #8
The text was updated successfully, but these errors were encountered: