Giter Club home page Giter Club logo

Comments (8)

brodybits avatar brodybits commented on August 10, 2024

Unfortunately I really cannot make any explanation from the screencast and am very busy to prepare for travel tomorrow morning. It would be best if you can try the following:

Make a fresh, clean project with this plugin and nothing else, without Ionic/Angular/ngCordova and do a simple test to load a pre-populated database and test a simple query.

Then make another fresh project with Ionic/Angular and this plugin but nothing else and do the simple test again.

Then you can start adding one thing at a time until you see when it goes wrong.

Thanks!

from cordova-sqlite-ext.

jdnichollsc avatar jdnichollsc commented on August 10, 2024

I have an error installing cordova-sqlite-ext after create the Windows "Universal" (8.1) project using litehelpers / cordova-windows-nufix

See please: http://screencast.com/t/GrgfeI320

from cordova-sqlite-ext.

jdnichollsc avatar jdnichollsc commented on August 10, 2024

More tests, see please: http://screencast.com/t/n3tzK8wtE

See the statement => http://screencast.com/t/9HRayH2P

Thanks in advance

from cordova-sqlite-ext.

jocheng avatar jocheng commented on August 10, 2024

Hi Nicholls,

it seems that you are using pre-populated database in windows Universal.
Perhaps I've found something...
In \plugins\cordova-sqlite-ext\src\windows\SQLiteProxy.js Line 61 there
is a hardcoded databasename "pre.db". As stated in the readme.md:
"The pre-populated database file name must match exactly the file name given in openDatabase"
I think that here has to be placed the given database name.
So the line has to be:
var sourceUri = new Windows.Foundation.Uri("ms-appx:///www/" + dbname);
So you can test in two ways. Rename your database in the www folder and in openDatabase to "pre.db" or change the line 61.

Hope this helps.

from cordova-sqlite-ext.

jdnichollsc avatar jdnichollsc commented on August 10, 2024

@jocheng Excellent my friend!! Thanks for your help! 👯

from cordova-sqlite-ext.

brodybits avatar brodybits commented on August 10, 2024

In \plugins\cordova-sqlite-ext\src\windows\SQLiteProxy.js Line 61 there
is a hardcoded databasename "pre.db".

Thanks @jocheng, you are absolutely correct and this should be really easy to fix. Unfortunately I cannot test a solution until I return from vacation in early January. If someone can test and raise a fix, I would be happy to merge it. (Please raise the fix from I new branch since I would probably git cherry-pick it.)

from cordova-sqlite-ext.

brodybits avatar brodybits commented on August 10, 2024

In \plugins\cordova-sqlite-ext\src\windows\SQLiteProxy.js Line 61 there
is a hardcoded databasename "pre.db".

The fix is applied, closing.

from cordova-sqlite-ext.

jdnichollsc avatar jdnichollsc commented on August 10, 2024

Cool! 👯

from cordova-sqlite-ext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.