relops / sqlc

Other
101 stars 8 forks source link

CAST types passed as strings #4

Open 0x6e6562 opened 10 years ago

0x6e6562 commented 10 years ago

Currently, to cast a field to a given type, you need to supply the string representation of the underlying SQL type. This is neither type safe nor portable. We should introduce a strongly typed representation that can be adjusted for target dialects.

lukaseder commented 10 years ago

I'm having a déjà vu. I can feel with you :-)

0x6e6562 commented 10 years ago

As my grandmother used to say, 9 times out of 10, you should just use JOOQ and be done with it. On the 10th time you might think about porting it to another platform, but you then you still use JOOQ.

lukaseder commented 10 years ago

What a wise grandmother! :)