Is it possible to use jaydata to read a sqlite database directly in a html 5 css js page? This whitout the use of a php or asp.net engine?
EDIT: http://jaydata.org/
-
1What is JayData and what facilities does it provide for reading from databases regardless of the context?Jon Cram– Jon Cram2012年05月29日 15:51:34 +00:00Commented May 29, 2012 at 15:51
-
It provides a provider agnostic data access layer with JavaScript Language Query and JavaScript CRUD capabilities. You can issue the same statements to query or store data regardless of its origin: a local webSql or a remote YQL table.Peter Aron Zentai– Peter Aron Zentai2012年05月31日 12:14:15 +00:00Commented May 31, 2012 at 12:14
3 Answers 3
Since it claims to support webSQL (right at the top of the homepage)...
JayData is the unified data access library for JavaScript developers to query and update data from different sources like webSQL, indexedDB, OData, Facebook or YQL.
... — yes (since all known implementations of webSQL use SQLite under the hood ... which is why work on the W3C recommendation for it stopped).
(Although it should be noted that webSQL runs in the browser and is not a shared database that lives on the server. Exposing database servers directly to the WWW is generally a Very Bad Idea™, and SQLite is a plain file database, not one with a server, so it would require giving direct access to the server's filesystem to the WWW, which goes beyond insane).
4 Comments
An HTML page in a browser can not access local databases, simply because it can not access the local file system. If you wanna do such a thing like opening an sqLite database file from an HTML page, you have to embed your HTML5 application into a native shell like phonegap. With that you can handle sqLite databases with JayData from within a HTML page just by using JavaScript.
5 Comments
You can use PhoneGap with SQLLite at the following URL is a working example.
https://groups.google.com/group/phonegap/browse_thread/thread/07cf9f48e3cd0663?pli=1
regards....