mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-25 08:42:14 +00:00
rename package
This commit is contained in:
parent
394327642e
commit
378ea7c562
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
|
.idea/*
|
||||||
|
|
||||||
*.sqlite3
|
*.sqlite3
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
target
|
target
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sqlite"
|
name = "fce-sqlite-connector"
|
||||||
version = "0.25.3"
|
version = "0.1.0"
|
||||||
license = "Apache-2.0/MIT"
|
license = "Apache-2.0/MIT"
|
||||||
authors = [
|
authors = [
|
||||||
"Daniel Dulaney <ddy@vitronic.com>",
|
"Daniel Dulaney <ddy@vitronic.com>",
|
||||||
@ -23,7 +23,7 @@ categories = ["api-bindings", "database"]
|
|||||||
keywords = ["database"]
|
keywords = ["database"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "sqlite"
|
name = "fce_sqlite_connector"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
12
src/test.rs
12
src/test.rs
@ -1,14 +1,14 @@
|
|||||||
extern crate fluence;
|
extern crate fluence;
|
||||||
extern crate sqlite;
|
extern crate fce_sqlite_connector;
|
||||||
|
|
||||||
use fluence::fce;
|
use fluence::fce;
|
||||||
use sqlite::State;
|
use fce_sqlite_connector::State;
|
||||||
|
|
||||||
pub fn main() {}
|
pub fn main() {}
|
||||||
|
|
||||||
#[fce]
|
#[fce]
|
||||||
pub fn test1() {
|
pub fn test1() {
|
||||||
let connection = sqlite::open(":memory:").unwrap();
|
let connection = fce_sqlite_connector::open(":memory:").unwrap();
|
||||||
|
|
||||||
connection
|
connection
|
||||||
.execute(
|
.execute(
|
||||||
@ -32,7 +32,7 @@ pub fn test1() {
|
|||||||
|
|
||||||
#[fce]
|
#[fce]
|
||||||
pub fn test2() {
|
pub fn test2() {
|
||||||
let connection = sqlite::open(":memory:").unwrap();
|
let connection = fce_sqlite_connector::open(":memory:").unwrap();
|
||||||
|
|
||||||
println!("connection id = {}\n", connection.as_raw());
|
println!("connection id = {}\n", connection.as_raw());
|
||||||
connection
|
connection
|
||||||
@ -58,9 +58,9 @@ pub fn test2() {
|
|||||||
}
|
}
|
||||||
#[fce]
|
#[fce]
|
||||||
pub fn test3() {
|
pub fn test3() {
|
||||||
use sqlite::Value;
|
use fce_sqlite_connector::Value;
|
||||||
|
|
||||||
let connection = sqlite::open(":memory:").unwrap();
|
let connection = fce_sqlite_connector::open(":memory:").unwrap();
|
||||||
|
|
||||||
connection
|
connection
|
||||||
.execute(
|
.execute(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user