Skip to content

Commit 5a538e8

Browse files
committed
add simple example
1 parent 1215382 commit 5a538e8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

examples/simple/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "simple"
3+
version = "0.1.0"
4+
authors = ["technetos <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
postgres-resource = { path = "../../" }

examples/simple/src/main.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use postgres_resource::*;
2+
3+
#[resource]
4+
#[table = "worlds"]
5+
struct World {
6+
uuid: Uuid,
7+
name: String,
8+
}
9+
10+
fn main() {
11+
}

0 commit comments

Comments
 (0)