Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco::Data::SQLite on iOS?

A general discussion forum.

Poco::Data::SQLite on iOS?

Postby poksi592 » 29 Jan 2013, 10:10

Hi,

has anybody managed to use Poco to access SQLite database locally in application Bundle? Providing path with NSSearchPathForDirectoriesInDomains, of course?

Please, share your experience if any? :?:

Thanks!
poksi592
 
Posts: 16
Joined: 01 Feb 2012, 12:12

Re: Poco::Data::SQLite on iOS?

Postby poksi592 » 29 Jan 2013, 15:22

Logic is to use same business layer code as for OS X and Android Apps. I like the idea of using Poco for Data as well, still, I would like to hear some opinion or advice on the matter.

Thanks!
poksi592
 
Posts: 16
Joined: 01 Feb 2012, 12:12

Re: Poco::Data::SQLite on iOS?

Postby guenter » 29 Jan 2013, 17:45

There shouldn't be any issues. Just make sure to pass in a valid path to the database as connection string to the Session constructor. You'll get that path to the directory via the usual iOS APIs and you'll have to add a file name, of course.
guenter
 
Posts: 1112
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Poco::Data::SQLite on iOS?

Postby poksi592 » 29 Jan 2013, 22:34

Thanks Guenter! I will post results here!
:)
poksi592
 
Posts: 16
Joined: 01 Feb 2012, 12:12


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest