> I found out that in the H2
> INFORMATION_SCHEMA there are missing several tables.
>
> The tables I need are:
> tables, columns, key_column_usage, table_constraints,
> referential_constraints, check_constraints, constraint_column_usage,
> view_column_usage, views.
Did you try the H2 Console tool? You will get the list of tables if
you execute this query:
SELECT TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
Both MySQL and PostgreSQL support KEY_COLUMN_USAGE, but the following
tables are only supported in PostgreSQL: table_constraints,
referential_constraints, check_constraints, constraint_column_usage,
view_column_usage.
I suggest to use the DatabaseMetaData, those methods are standardized.
Regards,
Thomas
> * Is there an overview over the INFORMATION_SCHEMA in H2 to be found
> somewhere?
Yes, execute the command:
HELP INFORMATION_SCHEMA;
> * Is there any estimate if/when the mentioned tables will be added to
> the information schema?
Because those tables are non-standard, I did not plan so far to add
them at all. Could you explain why you like to have them?
Thanks,
Thomas
Thanks a lot for the link! I was not aware the PostgreSQL tables are
part of the standard. None of the databases I have tested supports
those. I have added a feature request: Support standard
INFORMATION_SCHEMA tables. I'm not sure however when I can implement
that.
Regards,
Thomas