How Create a SQLite DataBase Connection on iOS

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kaiserilich
Posts: 23
Joined: Tue 23 Mar 2010 08:36
Location: spain
Contact:

How Create a SQLite DataBase Connection on iOS

Post by kaiserilich » Wed 29 Aug 2012 19:16

hi,

i want to know how create a DB Connection on iOS app?

i stay Creating a App and need use a SQLite database, but i don'tm know how create the connection to create the database and tables..

i use: UniDAC, DelphiXe2 Up 4

please somebody can help me

thanks and sorry for my bad english

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: How Create a SQLite DataBase Connection on iOS

Post by ZEuS » Wed 05 Sep 2012 12:47

When using UniDAC with the SQLite provider, you can create a new database in one of the following ways:
- in UniDAC version 4.2.7 and lower you just have to set the UniConnection.Database property to a new database name and then set the UniConnection.Connected property to True. In this case, a new database will be created automatically when establishing a connection;
- to do this in UniDAC version since 4.3.8, you also have to set the ForceCreateDatabase option in UniConnection.SpecificOptions to True.
Then you can create new tables in the database using the UniConnection.ExecSQL method.
You can learn more about the properties and methods listed above in the UniDAC documentation.

kaiserilich
Posts: 23
Joined: Tue 23 Mar 2010 08:36
Location: spain
Contact:

Re: How Create a SQLite DataBase Connection on iOS

Post by kaiserilich » Fri 21 Mar 2014 12:32

Thanks so much.

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: How Create a SQLite DataBase Connection on iOS

Post by ZEuS » Wed 26 Mar 2014 11:39

We are glad that we could help you with this question.
If you have any other questions, please do not hesitate to contact us.

Post Reply