Skip to content

Commit 4d18089

Browse files
Chris Brodylovasoa
Chris Brody
authored andcommitted
cleanup: remove trailing whitespace from README.md (#322)
1 parent 3d91e1f commit 4d18089

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The test files provide up to date example of the use of the api.
8686
<script src='/dist/sql-wasm.js'></script>
8787
<script>
8888
config = {
89-
locateFile: filename => `/dist/${filename}`
89+
locateFile: filename => `/dist/${filename}`
9090
}
9191
// The `initSqlJs` function is globally provided by all of the main dist files if loaded in the browser.
9292
// We must specify this locateFile function if we are loading a wasm file from anywhere other than the current html page's folder.
@@ -97,11 +97,11 @@ The test files provide up to date example of the use of the api.
9797
db.run("CREATE TABLE test (col1, col2);");
9898
// Insert two rows: (1,111) and (2,222)
9999
db.run("INSERT INTO test VALUES (?,?), (?,?)", [1,111,2,222]);
100-
100+
101101
// Prepare a statement
102102
var stmt = db.prepare("SELECT * FROM test WHERE col1 BETWEEN $start AND $end");
103103
stmt.getAsObject({$start:1, $end:1}); // {col1:1, col2:111}
104-
104+
105105
// Bind new values
106106
stmt.bind({$start:1, $end:2});
107107
while(stmt.step()) { //
@@ -161,7 +161,7 @@ Alternatively, you can simply download `sql-wasm.js` and `sql-wasm.wasm`, from t
161161
var fs = require('fs');
162162
var initSqlJs = require('sql-wasm.js');
163163
var filebuffer = fs.readFileSync('test.sqlite');
164-
164+
165165
initSqlJs().then(function(SQL){
166166
// Load the db
167167
var db = new SQL.Database(filebuffer);
@@ -196,7 +196,7 @@ Example:
196196
worker.onmessage = event => {
197197
console.log(event.data); // The result of the query
198198
};
199-
199+
200200
worker.postMessage({
201201
id: 2,
202202
action: 'exec',
@@ -221,7 +221,7 @@ This library includes both WebAssembly and asm.js versions of Sqlite. (WebAssemb
221221

222222
## Upgrading from 0.x to 1.x
223223

224-
Version 1.0 of sql.js must be loaded asynchronously, whereas asm.js was able to be loaded synchronously.
224+
Version 1.0 of sql.js must be loaded asynchronously, whereas asm.js was able to be loaded synchronously.
225225

226226
So in the past, you would:
227227
```html
@@ -260,7 +260,7 @@ initSqlJs().then(function(SQL){
260260
`NOTHING` is now a reserved word in SQLite, whereas previously it was not. This could cause errors like `Error: near "nothing": syntax error`
261261

262262
### Downloading/Using: ###
263-
Although asm.js files were distributed as a single Javascript file, WebAssembly libraries are most efficiently distributed as a pair of files, the `.js` loader and the `.wasm` file, like [dist/sql-wasm.js]([dist/sql-wasm.js]) and [dist/sql-wasm.wasm]([dist/sql-wasm.wasm]). The `.js` file is responsible for wrapping/loading the `.wasm` file.
263+
Although asm.js files were distributed as a single Javascript file, WebAssembly libraries are most efficiently distributed as a pair of files, the `.js` loader and the `.wasm` file, like [dist/sql-wasm.js]([dist/sql-wasm.js]) and [dist/sql-wasm.wasm]([dist/sql-wasm.wasm]). The `.js` file is responsible for wrapping/loading the `.wasm` file.
264264

265265

266266

0 commit comments

Comments
 (0)