Given some SQL, it finds the CREATE TABLE
instruction for the given tableName.
(this is so it can find one entry from
a file with several SQL commands. But it
may break on a complex file, so try to only
feed it simple sql files.)
From that, it pulls out the members to create a
simple struct based on it.
It's not terribly smart, so it will probably
break on complex tables.
Given some SQL, it finds the CREATE TABLE instruction for the given tableName. (this is so it can find one entry from a file with several SQL commands. But it may break on a complex file, so try to only feed it simple sql files.)
From that, it pulls out the members to create a simple struct based on it.
It's not terribly smart, so it will probably break on complex tables.
Data types handled:
It also reads DEFAULT values to pass to D, except for NULL. It ignores any length restrictions.