Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration with sqlite with electron? #792

Open
aprilmintacpineda opened this issue Jun 27, 2017 · 0 comments
Open

integration with sqlite with electron? #792

aprilmintacpineda opened this issue Jun 27, 2017 · 0 comments

Comments

@aprilmintacpineda
Copy link

Hi, I'm trying to create a desktop app using electron, I need a database for it and I need it to be sqlite, I'm having trouble connecting to my sqlite database on dir database/db.sqlite, I can't find any examples about sqlite transactions, also when I install orm and do import orm from 'orm'; I get these:

    WARNING in ./~/orm/lib/ORM.js
    195:18-62 Critical dependency: the request of a dependency is an expression

    WARNING in ./~/orm/lib/ORM.js
    284:10-49 Critical dependency: the request of a dependency is an expression

    WARNING in ./~/orm/lib/Model.js
    516:13-20 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

    ERROR in ./~/orm/lib/Drivers/DML/mongodb.js
    Module not found: Error: Can't resolve 'mongodb' in 'C:\Users\aprilpineda\Documents\projects\desktop\experiments\1-lis\node_modules\orm\lib\Drivers\DML'
     @ ./~/orm/lib/Drivers/DML/mongodb.js 2:16-34
     @ ./~/orm/lib/Drivers/DML ^\.\/.*$
     @ ./~/orm/lib/Adapters.js
     @ ./~/orm/lib/ORM.js
     @ ./resources/assets/scripts/helpers/User.js
     @ ./resources/assets/scripts/pages/Landing.js
     @ ./resources/assets/scripts/entry.js

    ERROR in ./~/orm/lib/Drivers/DML/mysql.js
    Module not found: Error: Can't resolve 'mysql' in 'C:\Users\aprilpineda\Documents\projects\desktop\experiments\1-lis\node_modules\orm\lib\Drivers\DML'
     @ ./~/orm/lib/Drivers/DML/mysql.js 2:14-30
     @ ./~/orm/lib/Drivers/DML ^\.\/.*$
     @ ./~/orm/lib/Adapters.js
     @ ./~/orm/lib/ORM.js
     @ ./resources/assets/scripts/helpers/User.js
     @ ./resources/assets/scripts/pages/Landing.js
     @ ./resources/assets/scripts/entry.js

    ERROR in ./~/orm/lib/Drivers/DML/postgres.js
    Module not found: Error: Can't resolve 'pg' in 'C:\Users\aprilpineda\Documents\projects\desktop\experiments\1-lis\node_modules\orm\lib\Drivers\DML'
     @ ./~/orm/lib/Drivers/DML/postgres.js 2:14-27
     @ ./~/orm/lib/Drivers/DML ^\.\/.*$
     @ ./~/orm/lib/Adapters.js
     @ ./~/orm/lib/ORM.js
     @ ./resources/assets/scripts/helpers/User.js
     @ ./resources/assets/scripts/pages/Landing.js
     @ ./resources/assets/scripts/entry.js

    ERROR in ./~/orm/lib/Drivers/DML/sqlite.js
    Module not found: Error: Can't resolve 'sqlite3' in 'C:\Users\aprilpineda\Documents\projects\desktop\experiments\1-lis\node_modules\orm\lib\Drivers\DML'
     @ ./~/orm/lib/Drivers/DML/sqlite.js 3:14-32
     @ ./~/orm/lib/Drivers/DML ^\.\/.*$
     @ ./~/orm/lib/Adapters.js
     @ ./~/orm/lib/ORM.js
     @ ./resources/assets/scripts/helpers/User.js
     @ ./resources/assets/scripts/pages/Landing.js
     @ ./resources/assets/scripts/entry.js

I am also bundling my js files using webpack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant