Fork me on GitHub
Drew Verlee20:02:39

does anyone understand the difference between "data_types" and "type_name" when it comes to jdbc meta data? i thought that this idea has some merit: But i immediatly hit an issue with my database having a uuid. Which is a dataype that isn't known.


Ah, you just joined ... I was going to offer this link and see if it helped?


Specific database engines will have extensions to these, which makes it more complex. And then there are several Java types that you can choose to represent in SQL in multiple ways (UUID is a good example -- it can be BINARY(16) or CHAR(36) or perhaps several other representations).

Drew Verlee20:02:04

@seancorfield Thanks, that makes sense. I was thinking of modifying that library to A) use just the type_names, as they seem to be more of them and so possible cover more ground. B) use both C) leave a place for some customization on the users end.

Drew Verlee20:02:49

But I need to hunt down the docs on the type_names. Which should just be a matter of looking at the java method that returns it...

Drew Verlee21:02:10

Of course, in order for these sepcs to help. Ppl have to have picked resonable column types...


char and varchar and their cousins are going to be pretty open-ended -- and any binary types are going to need to have gone through some sort of transformation -- so I'm not sure where derived specs would help on any of those?


(as you might guess, I'm not a fan of database-as-a-model -- I'm more in the database-as-storage camp)