Giter VIP home page Giter VIP logo

Comments (4)

pradeepa-m avatar pradeepa-m commented on July 3, 2024 1

Thank you

from node-websql.

brettz9 avatar brettz9 commented on July 3, 2024

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.

pradeepa-m avatar pradeepa-m commented on July 3, 2024

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.

brettz9 avatar brettz9 commented on July 3, 2024

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)

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.