update sqlite version

This commit is contained in:
boneyard93501 2021-09-04 14:34:28 -05:00
parent 0eafaa67ec
commit 04614a856a
6 changed files with 13 additions and 13 deletions

View File

@ -9,12 +9,12 @@ name = "ethqlite"
path = "src/main.rs"
[dependencies]
marine-rs-sdk = { version="0.6.10", features = ["logger"]}
marine-rs-sdk = { version = "0.6.11", features = ["logger"] }
log = "0.4.8"
marine-sqlite-connector = "0.5.0"
serde = {version = "1.0.118", features=["derive"]}
marine-sqlite-connector = "0.5.1"
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.64"
once_cell = "1.4.1"
ed25519-dalek = "1.0.1"
rand = "0.7.3"
uuid = {version = "0.8.2", features = ["serde", "v4"] }
uuid = { version = "0.8.2", features = ["serde", "v4"] }

View File

@ -7,5 +7,5 @@ marine build --release
rm -f artifacts/*.wasm
cp target/wasm32-wasi/release/ethqlite.wasm artifacts/
wget https://github.com/fluencelabs/sqlite/releases/download/v0.14.0_w/sqlite3.wasm
wget https://github.com/fluencelabs/sqlite/releases/download/v0.15.0_w/sqlite3.wasm
mv sqlite3.wasm artifacts/

View File

@ -12,12 +12,12 @@ name = "facade"
path = "src/main.rs"
[dependencies]
serde = {version = "1.0.118", features = ["derive"] }
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.64"
marine-rs-sdk = { version = "=0.6.10", features = ["logger"]}
marine-rs-sdk = { version = "=0.6.11", features = ["logger"] }
log = "0.4.8"
chrono = "0.4.19"
ethereum-types = "0.11.0"
hex = "0.4.3"
tiny-keccak = {version = "2.0.2", features = ["keccak", "sha3"]}
marine-sqlite-connector = "0.5.0"
tiny-keccak = { version = "2.0.2", features = ["keccak", "sha3"] }
marine-sqlite-connector = "0.5.1"

View File

@ -198,7 +198,7 @@ You can build, inspect and test the project as outlined in the [Greeting Example
## SQLite Example
[SQLite](https://www.sqlite.org/index.html) is an ubiquitous persistence solution also available on the Fluence stack. Unlike basic compute modules, creating an SQLite service is a little more intricate. In order to create the service, we need two dependencies: An SQLite Wasm module and an SQLite adapter, where the adapter is a [WASM IT compliant](https://crates.io/crates/marine-sqlite-connector) [sqlite](https://github.com/stainless-steel/sqlite) package implementation. The SQLite Wasm module can be obtain from the repo as a [release](https://github.com/fluencelabs/sqlite/releases/tag/v0.14.0_w) or compiled from [code](https://github.com/fluencelabs/sqlite). For the purpose of this example, we use the release version -- see `build.sh`.
[SQLite](https://www.sqlite.org/index.html) is an ubiquitous persistence solution also available on the Fluence stack. Unlike basic compute modules, creating an SQLite service is a little more intricate. In order to create the service, we need two dependencies: An SQLite Wasm module and an SQLite adapter, where the adapter is a [WASM IT compliant](https://crates.io/crates/marine-sqlite-connector) [sqlite](https://github.com/stainless-steel/sqlite) package implementation. The SQLite Wasm module can be obtain from the repo as a [release](https://github.com/fluencelabs/sqlite/releases/tag/v0.15.0_w) or compiled from [code](https://github.com/fluencelabs/sqlite). For the purpose of this example, we use the release version -- see `build.sh`.
As a result, our service is comprised of two modules: the SQLite Wasm module and our sqlite module. The Rust code, see `src/main.rs` is pretty standard fare but our config file changes signficiantly:

View File

@ -10,8 +10,8 @@ name = "sqlite_test"
path = "src/main.rs"
[dependencies]
marine-rs-sdk = "0.6.10"
marine-sqlite-connector = "0.5.0"
marine-rs-sdk = "0.6.11"
marine-sqlite-connector = "0.5.1"
[dev-dependencies]
marine-rs-sdk-test = "0.2.0"

View File

@ -8,5 +8,5 @@ marine build --release
mkdir -p artifacts
rm -f artifacts/*.wasm
cp target/wasm32-wasi/release/sqlite_test.wasm artifacts/
wget https://github.com/fluencelabs/sqlite/releases/download/v0.14.0_w/sqlite3.wasm
wget https://github.com/fluencelabs/sqlite/releases/download/v0.15.0_w/sqlite3.wasm
mv sqlite3.wasm artifacts/