You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the impatients, try the demo here: http://kripken.github.io/sql.js/examples/GUI
6
+
For the impatients, try the demo here: https://sql-js.github.io/sql.js/examples/GUI/
7
7
8
-
*sql.js* is a port of [SQLite](http://sqlite.org/about.html) to Webassembly, by compiling the SQLite C code with [Emscripten](http://kripken.github.io/emscripten-site/docs/introducing_emscripten/about_emscripten.html), with [contributed math and string extension functions](https://www.sqlite.org/contrib?orderby=date) included. It uses a [virtual database file stored in memory](https://kripken.github.io/emscripten-site/docs/porting/files/file_systems_overview.html), and thus **doesn't persist the changes** made to the database. However, it allows you to **import** any existing sqlite file, and to **export** the created database as a [JavaScript typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays).
8
+
*sql.js* is a port of [SQLite](http://sqlite.org/about.html) to Webassembly, by compiling the SQLite C code with [Emscripten](https://emscripten.org/docs/introducing_emscripten/about_emscripten.html), with [contributed math and string extension functions](https://www.sqlite.org/contrib?orderby=date) included. It uses a [virtual database file stored in memory](https://emscripten.org/docs/porting/files/file_systems_overview.html), and thus **doesn't persist the changes** made to the database. However, it allows you to **import** any existing sqlite file, and to **export** the created database as a [JavaScript typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays).
9
9
10
10
There are no C bindings or node-gyp compilation here, sql.js is a simple JavaScript file, that can be used like any traditional JavaScript library. If you are building a native application in JavaScript (using Electron for instance), or are working in node.js, you will likely prefer to use [a native binding of SQLite to JavaScript](https://www.npmjs.com/package/sqlite3).
11
11
@@ -15,7 +15,7 @@ Sql.js predates WebAssembly, and thus started as an [asm.js](https://en.wikipedi
15
15
16
16
17
17
## Documentation
18
-
A [full documentation](http://kripken.github.io/sql.js/documentation/#http://kripken.github.io/sql.js/documentation/class/Database.html) generated from comments inside the source code, is available.
18
+
A [full documentation](https://sql-js.github.io/sql.js/documentation/class/Database.html) generated from comments inside the source code, is available.
19
19
20
20
## Usage
21
21
@@ -79,7 +79,7 @@ var binaryArray = db.export();
79
79
```
80
80
81
81
## Demo
82
-
There are a few examples [available here](https://kripken.github.io/sql.js/index.html). The most full-featured is the [Sqlite Interpreter](https://kripken.github.io/sql.js/examples/GUI/index.html).
82
+
There are a few examples [available here](https://sql-js.github.io/sql.js/index.html). The most full-featured is the [Sqlite Interpreter](https://sql-js.github.io/sql.js/examples/GUI/index.html).
83
83
84
84
## Examples
85
85
The test files provide up to date example of the use of the api.
@@ -184,7 +184,7 @@ var buffer = new Buffer(data);
184
184
fs.writeFileSync("filename.sqlite", buffer);
185
185
```
186
186
187
-
See : https://github.com/kripken/sql.js/blob/master/test/test_node_file.js
187
+
See : https://github.com/sql-js/sql.js/blob/master/test/test_node_file.js
188
188
189
189
### Use as web worker
190
190
If you don't want to run CPU-intensive SQL queries in your main application thread,
@@ -270,8 +270,8 @@ Although asm.js files were distributed as a single Javascript file, WebAssembly
270
270
271
271
272
272
273
-
## Versions of sql.js included in the [distributed artifacts](https://github.com/kripken/sql.js/releases/latest)
274
-
For each [relase](https://github.com/kripken/sql.js/releases/), you will find a file called `sqljs.zip` in the *release assets*. It will contain:
273
+
## Versions of sql.js included in the [distributed artifacts](https://github.com/sql-js/sql.js/releases/latest)
274
+
For each [relase](https://github.com/sql-js/sql.js/releases/), you will find a file called `sqljs.zip` in the *release assets*. It will contain:
275
275
-`sql-wasm.js` : The Web Assembly version of Sql.js. Minified and suitable for production. Use this. If you use this, you will need to include/ship `sql-wasm.wasm` as well.
276
276
-`sql-wasm-debug.js` : The Web Assembly, Debug version of Sql.js. Larger, with assertions turned on. Useful for local development. You will need to include/ship `sql-wasm-debug.wasm` if you use this.
277
277
-`sql-asm.js` : The older asm.js version of Sql.js. Slower and larger. Provided for compatibility reasons.
@@ -281,6 +281,6 @@ For each [relase](https://github.com/kripken/sql.js/releases/), you will find a
281
281
282
282
## Compiling
283
283
284
-
- Install the EMSDK, [as described here](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html)
284
+
- Install the EMSDK, [as described here](https://emscripten.org/docs/getting_started/downloads.html)
0 commit comments