[gnome-db] Create SQLite db
Pavlo Solntsev <[email protected]> Mon, 11 Sep 2017 14:04:44 -0500
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <CADsq9ipuVPv1RH0A7LHEoYGXMZ6xcE3DA0aD47xTk4dcF+ppuA@mail.gmail.com> |
--===============7636263514377782950==
Content-Type: multipart/alternative; boundary="f403045c14c488d4d00558ee9920"
--f403045c14c488d4d00558ee9920
Content-Type: text/plain; charset="UTF-8"
Hi,
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.See
http://www.gnu.org/philosophy/no-word-attachments.html
<http://www.gnu.org/philosophy/no-word-attachments.html>*
--f403045c14c488d4d00558ee9920
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi,</div><div>I am trying to create SQLIte=C2=A0DB. I=
used=C2=A0gda_server_operation_prepare_create_database</div><div>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(const gchar *provider,</div><div>=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 const gchar *db_name,</div><div>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 GError **error);=C2=A0</div><div>to obtain a=C2=A0=
GdaServerOperation object. provider =3D "SQLite"</div><div><br></=
div><div>=C2=A0The returned pointer was checked for NULL.</div><div><br></d=
iv><div>Then, I used=C2=A0gda_server_operation_perform_create_database to c=
reate DB. This function returns TRUE but I don't DB file. I was thinkin=
g, maybe format of db_name may somehow affect this? For now, I used the ful=
l path in UNIX notation with .db=C2=A0suffix, just a DB name with .db suffi=
x. In all =C2=A0cases 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.</div><div><br></div><div><br></div><br clea=
r=3D"all"><div><div class=3D"gmail_signature"><div dir=3D"ltr"><div><div di=
r=3D"ltr"><div><div dir=3D"ltr">-Pavlo Solntsev</div><div dir=3D"ltr">-----=
---------------------------------------------------------------------------=
-------------</div></div><div dir=3D"ltr"><em style=3D"color:rgb(0,0,0);fon=
t-family:"Times New Roman";font-size:16px">Please avoid sending m=
e Word or PowerPoint attachments.<br>See <a href=3D"http://www.gnu.org/phil=
osophy/no-word-attachments.html" target=3D"_blank">http://www.gnu.org/philo=
sophy/no-word-attachments.html</a></em><br></div></div></div></div></div></=
div>
</div>
--f403045c14c488d4d00558ee9920--
--===============7636263514377782950==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gnome-db-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-db-list
--===============7636263514377782950==--