Closed ppKrauss closed 7 years ago
@ppKrauss
Thanks for the idea. But this mapping is tightly tied to sqlalchemy
Python library. It also use some Postgres special case
types later in the code etc. So it's not even a static mapping. I think there are almost no chances to re-use it across different platforms. Also it's very small and changing very rarely.
So my recommendation is just to translate it as a starting point to a PHP database library. It will be much more flexible for both sides.
Hi, I am looking for a PHP implementation, so we perhaps use tableshema-py as reference algorithm for tableschema-php issue 35... The core seems the
mapping
and can be expressed as JSON to reuse into other contexts.The suggestion: express in a external file, or generate code from a CSV with all datatype map descriptions... As "RosettaStone-tabular-datatypes" ;-)
PS: for more general translation of primitive data types, a CSV at Data Packaged Core Datasets with all datatypes, perhaps we can reuse from a