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 726e2c5 commit f7219c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ At that time, the api will be stable, and backward compatible will be promised.
## INSTALL
```toml
luna-orm = { version = "0.3.1" }
luna-orm-trait = { version = "0.3.1" }
luna-orm-macro = { version = "0.3.1" }

```

Expand All @@ -29,6 +31,7 @@ Everything should just works as you want.
### Create a database instance.
```rust
use luna_orm::prelude::*;
use luna_orm::LunaOrmResult;

#[tokio::main]
pub async fn main() -> LunaOrmResult<()> {
Expand Down Expand Up @@ -72,7 +75,7 @@ let entity = HelloEntity {
age: Some(23)
};
// 3. insert it, this is so intuitive, you don't need to warry about anything, it jsut works.
let result = db.insert(entity).await?;
let result = db.insert(&entity).await?;
```

## Saving Lives
Expand Down

0 comments on commit f7219c1

Please sign in to comment.