Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 148
Registered: ‎04-08-2013
My Device: Blackberry 10
My Carrier: Blackberry
Accepted Solution

Sqlite DB in bb 10

Iam developing an app with SQlite as db.Is this possible in bb 10 cascades.I didnt find any usefull link where i can start with Sqlite db creation.(Create tables to db,how to get data from db,how to set data to db).Can any one plz help me 

Developer
Posts: 15
Registered: ‎05-09-2013
My Device: Bold 9650
My Carrier: Viettel

Re: Sqlite DB in bb 10

Take a look at this

https://github.com/blackberry/Cascades-Samples/tree/master/quotes

 



Feel free to press the like button if I helped you in solving your problems.
Developer
Posts: 148
Registered: ‎04-08-2013
My Device: Blackberry 10
My Carrier: Blackberry

Re: Sqlite DB in bb 10

is SQLite is used in this sample.Will it help me to create tables in db
Developer
Posts: 15
Registered: ‎05-09-2013
My Device: Bold 9650
My Carrier: Viettel

Re: Sqlite DB in bb 10

Yes, SQLite is used in that sample. That sample create db before and copy to the data folder.
If you want to create table at runtime, you can use this

https://developer.blackberry.com/cascades/reference/bb__data__sqlconnection.html

When your application start call this

https://developer.blackberry.com/cascades/reference/bb__data__sqlconnection.html#function-execute-qu...

It seems that QtSql may help you, too

https://developer.blackberry.com/cascades/reference/qtsql.html



Feel free to press the like button if I helped you in solving your problems.