Skip to content

Commit 8ac729c

Browse files
committed
Deploying to gh-pages from @ 1220b7b πŸš€
1 parent 329e712 commit 8ac729c

File tree

14 files changed

+126
-106
lines changed

14 files changed

+126
-106
lines changed

β€Ž.emsdk-cache/emsdk-master/bazel/WORKSPACEβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ http_archive(
88

99
load("@build_bazel_rules_nodejs//:index.bzl", "npm_install")
1010

11-
# emscripten 2.0.10
11+
# emscripten 2.0.12
1212
http_archive(
1313
name = "emscripten",
14-
sha256 = "5bb30bb70e97080c24dcb47cbd891f0d8c2fb393c17af35aaad5e18c0e60b175",
14+
sha256 = "bfff9fb0326363c12e19b542f27a5f12cedbfc310f30621dc497c9af51d2d2e3",
1515
strip_prefix = "install",
16-
url = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/37fc7647c754ac9a28ad588c143b82286de0ef71/wasm-binaries.tbz2",
16+
url = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/dcf819a7821f8db0c8f15ac336fea8960ec204f5/wasm-binaries.tbz2",
1717
build_file = "//emscripten_toolchain:emscripten.BUILD",
1818
type = "tar.bz2",
1919
)
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import os
2+
import platform
23

34
ROOT_DIR = os.environ["ROOT_DIR"]
45
EMSCRIPTEN_ROOT = os.environ["EMSCRIPTEN"]
56

67
LLVM_ROOT = ROOT_DIR + "/external/emscripten/bin"
78
EMSCRIPTEN_NATIVE_OPTIMIZER = LLVM_ROOT + "/optimizer"
8-
NODE_JS = ROOT_DIR + "/external/nodejs_linux_amd64/bin/node"
9-
BINARYEN_ROOT = ROOT_DIR + "/external/emscripten"
9+
10+
system = platform.system()
11+
nodejs_binary = "node.exe" if(system =="Windows") else "bin/node"
12+
NODE_JS = ROOT_DIR + "/external/nodejs_{}_amd64/{}".format(system.lower(), nodejs_binary)
13+
BINARYEN_ROOT = ROOT_DIR + "/external/emscripten"

β€Ž.emsdk-cache/emsdk-master/bazel/emscripten_toolchain/wasm_binary.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def main(argv):
4646
stem = basename.split('.')[0]
4747

4848
# Check the type of the input file
49-
mimetype_bytes = subprocess.check_output(['file', '-Lib', FLAGS.archive])
49+
mimetype_bytes = subprocess.check_output(['file', '-Lb', '--mime-type', '--mime-encoding', FLAGS.archive])
5050
mimetype = mimetype_bytes.decode(sys.stdout.encoding)
5151

5252
# If we have a tar, extract all files. If we have just a single file, copy it.

β€Ž.emsdk-cache/emsdk-master/docker/Dockerfileβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ RUN echo "## Update and install packages" \
101101
zip \
102102
unzip \
103103
git \
104+
git-lfs \
104105
ssh-client \
105106
build-essential \
106107
make \

β€Ž.emsdk-cache/emsdk-master/emscripten-releases-tags.txtβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"latest": "2.0.10",
2+
"latest": "2.0.12",
33
"releases": {
4+
"2.0.12": "dcf819a7821f8db0c8f15ac336fea8960ec204f5",
5+
"2.0.11": "4764c5c323a474f7ba28ae991b0c9024fccca43c",
46
"2.0.10": "37fc7647c754ac9a28ad588c143b82286de0ef71",
57
"2.0.9": "d8e430f9a9b6e87502f826c39e7684852f59624f",
68
"2.0.8": "e4ed6c79f4db8b175d9bbe55869b697aba9bcf2a",

β€Ž.emsdk-cache/emsdk-master/emsdk.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def build_env(generator):
917917

918918
def get_generator_for_sln_file(sln_file):
919919
contents = open(sln_file, 'r').read()
920-
if '# Visual Studio 16' in contents: # VS2019
920+
if '# Visual Studio 16' in contents or '# Visual Studio Version 16' in contents: # VS2019
921921
return 'Visual Studio 16'
922922
if '# Visual Studio 15' in contents: # VS2017
923923
return 'Visual Studio 15'

β€Ž.emsdk-cache/emsdk-master/emsdk_manifest.jsonβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "master",
66
"bitness": 32,
77
"install_path": "llvm/git",
8-
"git_branch": "master",
8+
"git_branch": "main",
99
"url": "https://github.com/llvm/llvm-project.git",
1010
"custom_install_script": "build_llvm",
1111
"only_supports_wasm": true,
@@ -19,7 +19,7 @@
1919
"version": "master",
2020
"bitness": 64,
2121
"install_path": "llvm/git",
22-
"git_branch": "master",
22+
"git_branch": "main",
2323
"url": "https://github.com/llvm/llvm-project.git",
2424
"custom_install_script": "build_llvm",
2525
"only_supports_wasm": true,
@@ -420,7 +420,7 @@
420420
"bitness": 32,
421421
"append_bitness": false,
422422
"url": "https://github.com/WebAssembly/binaryen.git",
423-
"git_branch": "master",
423+
"git_branch": "main",
424424
"activated_cfg": "BINARYEN_ROOT='%installation_dir%%generator_prefix%_32bit_binaryen'",
425425
"activated_path": "%installation_dir%%generator_prefix%_32bit_binaryen/bin",
426426
"activated_env": "BINARYEN_ROOT=%installation_dir%%generator_prefix%_32bit_binaryen",
@@ -435,7 +435,7 @@
435435
"bitness": 64,
436436
"append_bitness": false,
437437
"url": "https://github.com/WebAssembly/binaryen.git",
438-
"git_branch": "master",
438+
"git_branch": "main",
439439
"activated_cfg": "BINARYEN_ROOT='%installation_dir%%generator_prefix%_64bit_binaryen'",
440440
"activated_path": "%installation_dir%%generator_prefix%_64bit_binaryen/bin",
441441
"activated_env": "BINARYEN_ROOT=%installation_dir%%generator_prefix%_64bit_binaryen",

β€ŽREADME.mdβ€Ž

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ See : https://sql-js.github.io/sql.js/examples/GUI/gui.js
139139

140140
#### Loading a database from a server
141141

142+
##### using fetch
143+
144+
```javascript
145+
const sqlPromise = initSqlJs({
146+
locateFile: file => `https://path/to/your/dist/folder/dist/${file}`
147+
});
148+
const dataPromise = fetch("/path/to/databse.sqlite").then(res => res.arrayBuffer());
149+
const [SQL, buf] = await Promise.all([sqlPromise, dataPromise])
150+
const db = new SQL.Database(new Uint8Array(buf));
151+
```
152+
153+
##### using XMLHttpRequest
154+
142155
```javascript
143156
var xhr = new XMLHttpRequest();
144157
// For example: https://github.com/lerocha/chinook-database/raw/master/ChinookDatabase/DataSources/Chinook_Sqlite.sqlite

β€Ždist/sql-asm-memory-growth.jsβ€Ž

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždist/sql-asm.jsβ€Ž

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)