Re: [gnome-db] Sqlite database creation
- From: Daniel Espinosa <esodan gmail com>
- To: Christophe Bastin <bastin chris gmail com>
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] Sqlite database creation
- Date: Fri, 24 Oct 2014 12:13:39 -0500
I've used:
cnn = Gda.Connection.open_from_string ("Sqlite", "DB_NAME=test.db;DB_DIR=.",null, Gda.ConnectionOptions.READ_ONLY);
and it is working for me. Using libgda 5.2 and Vala 0.22 on Ubuntu GNOME 14.04.
Could you give me some code example.
I've used this one:
using Gda;
class Application : Object {
public Gda.Connection cnn { get; set; }
public int run ()
{
cnn = Gda.Connection.open_from_string ("SQLite", "DB_NAME=test;DB_DIR=.",null, Gda.ConnectionOptions.READ_ONLY);
return 0;
}
static int main (string[] args)
{
var app = new Application ();
return app.run ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]