Re: PostgreSQL data types mapped Java classes for JDBC - Mailing list pgsql-novice

From Thangalin
Subject Re: PostgreSQL data types mapped Java classes for JDBC
Date
Msg-id AANLkTikr6zoVZ6jJK1TtmgpvECn5itwXW5__pR=ifo0h@mail.gmail.com
Whole thread Raw
In response to Re: PostgreSQL data types mapped Java classes for JDBC  (Josh Kupershmidt <schmiddy@gmail.com>)
List pgsql-novice
Hi, Josh.

Thanks for the tip.

Also, I disagree that the individual adapters should be stored external to PostgreSQL. It would be trivial to set up a relation that:
  1. Maintains a current list of PostgreSQL data types.
  2. Maintains a list of adapters (perhaps with effective dating).
  3. Maps adapters to Java types.
This would centralize the knowledge and facilitate dynamic implementations that, for whatever reason, need to know the correct data type mapping in an adapter-agnostic fashion. (Ideally adapters would map the PostgreSQL data types to Java classes the same way; centralizing the list would reveal to everyone the differences in the adapters without having to scour the web.)

This doesn't have to be packaged with PostgreSQL distributions: it could be offered as a separate script that people can run to update the information schema.

Dave

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unicode escape codes
Next
From: Helgi Örn Helgason
Date:
Subject: MySQL --> PostgreSQL with PHP