Re: [gnome-db] Create SQLite db

Hi Pavlo,
In elementary's music application, we are using gda_connection_new_from_string
You also have a few examples in the source tree

Corentin Noël, elementary developer

2017-09-11 21:04 GMT+02:00 Pavlo Solntsev <pavlo solntsev gmail com>:
I am trying to create SQLIte DB. I used gda_server_operation_prepare_create_database
                               (const gchar *provider,
                                const gchar *db_name,
                                GError **error); 
to obtain a GdaServerOperation object. provider = "SQLite"

 The returned pointer was checked for NULL.

Then, I used gda_server_operation_perform_create_database to create DB. This function returns TRUE but I don't DB file. I was thinking, maybe format of db_name may somehow affect this? For now, I used the full path in UNIX notation with .db suffix, just a DB name with .db suffix. In all  cases function returns TRUE but I don't see any DB file. Could you please clarify what would be correct use of GdaServerOperation functions to create DB? Thanks.

-Pavlo Solntsev
Please avoid sending me Word or PowerPoint attachments.

gnome-db-list mailing list
gnome-db-list gnome org

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