Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
soulww committed Dec 26, 2023
1 parent 485cee0 commit 9bdcd79
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ sqlx = {version = "0.7.3", features = ["runtime-tokio", "mysql", "sqlite", "mac
members = [
".",
"luna-orm-trait",
"luna-orm-macro"
"luna-orm-macro",
"examples/sqlite"
]

[workspace.package]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Everything should just works as you want.

### Create a database instance.
```rust
use luna_orm::preclude::*;
use luna_orm::prelude::*;

#[tokio::main]
pub async fn main() -> LunaOrmResult<()> {
Expand Down
10 changes: 10 additions & 0 deletions examples/sqlite/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "sqlite"
edition = "2021"
version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
luna-orm = "0.3.1"
tokio = { version = "1.35.1", features = ["full"] }
8 changes: 8 additions & 0 deletions examples/sqlite/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use luna_orm::error::LunaOrmError;
use luna_orm::preclude::*;

#[tokio::main]
async fn main() -> Result<(), LunaOrmError> {
println!("Hello, world!");
Ok(())
}

0 comments on commit 9bdcd79

Please sign in to comment.