[gnome-db] System.Data.OleDb (via libgda) is able to read data


I just committed code to mono cvs that allows to read data via libgda in
System.Data.OleDb Mono implementation.

To test it, you just need to install libgda (with postgres support
compiled in), create a data source for libgda (see the attached file,
which should be saved as ~/.libgda/config), and compile and run the
TestOleDb program in System.Data.OleDb/TestOleDb.cs.

It is still rudimentary, but supports reading data models (recordsets)
returned by libgda functions.

The config file is to connect to a local postgres database. libgda
supports other DBMS, so if you want to connect to another database
supported by libgda, you'll just have to tweak the config file.

Rodrigo Moya <rodrigo ximian com>
<?xml version="1.0"?>
  <section path="/apps/libgda/Datasources/PostgreSQL">
    <entry name="Provider" type="string" value="PostgreSQL"/>
    <entry name="DSN" type="string" value="DATABASE=template1;HOST=localhost"/>
    <entry name="Description" type="string" value="System database in PostgreSQL"/>
    <entry name="Username" type="string" value="rodrigo"/>
    <entry name="Password" type="string" value=""/>

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