Posts

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Technical Issue Help : How to reuse Mozilla Sqlite database

Hello I want to connect mozilla Sqlite database and I want to list out all data of bookmark (places.sqlite table). the following is the function in java script that I wrote for this purpose but not ... [More] working, please help me where is the mistake ////ListOutBookmarkData()/////// function ListOutBookmarkData() { var file = Components.classes[@mozilla.org/file/directory_service;1] .getService(Components.interfaces.nsIProperties) .get(ProfD, Components.interfaces.nsIFile); file.append(places.sqlite); var storageService = Components.classes[@mozilla.org/storage/service;1] .getService(Components.interfaces.mozIStorageService); var mDBConn = storageService.openDatabase(file); alert (mDBConn: +mDBConn); var statement = mDBConn.createStatement(SELECT * FROM moz_bookmarks ); alert(statement +statement); statement.execute(); statement.reset(); } ////////////////////////// [Less]

Views
Author
Posted
661
about 15 years ago