Skip to content

Commit

Permalink
Fix some example
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonaka committed Jul 10, 2023
1 parent 7e634bd commit 120f4e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.md
Expand Up @@ -9,7 +9,7 @@ async fn test_postgresql() {
let url = "postgre://user:password@docker:15432/test";
let mut postgresql = PostgreSQL::connect(url).await.unwrap();
let check = postgresql.check_connection().await;
println!("{}", check);
assert_eq!(check, true);
let rets = postgresql.execute("SELECT * FROM info").await.unwrap();
println!("{}", rets);
postgresql.close().await;
Expand All @@ -18,11 +18,10 @@ async fn test_postgresql() {

**Output**
```bash
true
+----+-------+------------+
| id | name | date |
+----+-------+------------+
| 1 | test2 | 2023-06-11 |
| 2 | test1 | 2023-06-11 |
| 1 | test1 | 2023-06-11 |
| 2 | test2 | 2023-06-11 |
+----+-------+------------+
```

0 comments on commit 120f4e1

Please sign in to comment.