Re: [gnome-db] Gda Column question.



In V4 you have GdaMetaStore to get columns and others db objects information. In order to get that information you have to do:

- Get a GdaMetaStore from a GdaConnnection using gda_connection_get_meta_store
- Update meta information gda_connection_update_meta_store
- Get columns information using gda_meta_store_extract and use GdaDataModel API to access to the required information

The required SQL to do it could be:

SELECT *  FROM _columns WHERE table_schema = ##schema::string AND table_catalog = ##catalog::string AND table_name = ##table::string

For gda_column_get_scale you can use numeric_scale column; sorry but don't know about defined_size.


2008/10/1 Bas Driessen <bas driessen xobas com>
Hello,

Version 3 had the following 2 functions:

gda_column_get_defined_size
gda_column_get_scale

This to determine the length and precision of certain numeric data types.

They are no longer in V4. What is the equivalent function/command in V4? 

Thanks,
Bas.


_______________________________________________
gnome-db-list mailing list
gnome-db-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-db-list




--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates: LIBRE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]