Comments (4)
Thank you
from node-websql.
This package is specific to Node. If you are looking to continue using SQL in the browser, see https://github.com/agershun/alasql . This will let you write SQL queries in the browser.
(Or if you instead wish to switch to using web standard IndexedDB APIs in older browsers that support WebSQL but not IndexedDB--or to use IndexedDB on Node--you can see https://github.com/indexeddbshim/indexeddbshim. )
from node-websql.
Thank you for the reply. The intention behind trying the above approach was that I will write the entire logic in my node module and it can used in both back-end(nodejs) and front-end(on browser using the web pack bundled js file). Can I achieve this using alasql or indexeddbshim?
from node-websql.
IndexedDBShim will work isomorphically as you describe (but again it is using IndexedDB syntax not SQL).
alasql advertises support for browser and Node, so I would think so. You need to do the research and look into its docs to find out for sure.
Of course, in either case, this doesn't provide synchronization between client and server--it just lets the same code be usable in either environment--assuming you are requiring the proper file first in Node or the browser.
As this is now a support question and unrelated to this repo, I think you should ask any further questions on StackOverflow (and close the issue).
from node-websql.
Related Issues (20)
- Implement versions/migrations HOT 1
- Usage with sql.js HOT 2
- Add a fix for browsers not able to readTransaction on first transaction with virtual tables HOT 1
- Configuration HOT 2
- Read transactions in parallel HOT 4
- Illegal Invocation on initializing new sqlite db with node-websql HOT 2
- Mention, if not workaround, surfaced node-sqlite3 database restrictions HOT 1
- Run readTransactions more efficiently HOT 2
- Support the WebSQL synchronous API HOT 1
- Update to sqlite3 4.0.0 (for security if nothing else)
- SQL.js HOT 1
- Consider better-sqlite3 as an alternative to node-sqlite3 HOT 2
- Prepare statements under the hood HOT 3
- Can't module resolve 'websql' in typescript HOT 1
- update sqlite3 to ^5.0.2
- Errors thrown from async statement success callbacks are not treated as per spec
- Transactions auto-close when queuing microtasks between executeSql() calls HOT 13
- ⚠️ Web SQL is deprecated HOT 1
- Feature request flash polyfill HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-websql.