I want to store data in a SQLite database directly from a javascript script. I found this SQL.js library that is a port for javascript. However, apparently it's only available for coffeescript. Does anyone know how to use it in javascript? Other ideas about how to store data in SQLite DB are welcomed too.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
I am the author of this port of the latest version of sqlite to javascript: https://github.com/lovasoa/sql.js It is based on the one you mentioned (https://github.com/kripken/sql.js), but includes many improvements, including a full documentation: http://lovasoa.github.io/sql.js/documentation/ Here is an example of how to use this version of
|
|||||
|
I'm using SQL.js from pure JavaScript without any problems. Simply include the following file: |
||||
|
<script src="sql.js" type="text/javascript"></script>
?? Because it gives me the errorModule not defined
– synack Mar 15 '13 at 11:28