Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pimbrouwers committed Oct 31, 2024
1 parent a237f25 commit e1567cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ conn

```fsharp
conn
|> Db.newCommand "INSERT INTO author (full_name)"
|> Db.newCommand "INSERT INTO author (full_name) VALUES (@full_name)"
|> Db.setParams [ "full_name", SqlType.String "John Doe" ]
|> Db.exec // unit
// Async
conn
|> Db.newCommand "INSERT INTO author (full_name)"
|> Db.newCommand "INSERT INTO author (full_name) VALUES (@full_name)"
|> Db.setParams [ "full_name", SqlType.String "John Doe" ]
|> Db.Async.exec // Task<unit>
```
Expand All @@ -125,14 +125,14 @@ conn

```fsharp
conn
|> Db.newCommand "INSERT INTO author (full_name)"
|> Db.newCommand "INSERT INTO author (full_name) VALUES (@full_name)"
|> Db.execMany [
"full_name", SqlType.String "John Doe"
"full_name", SqlType.String "Jane Doe" ] // unit
// Async
conn
|> Db.newCommand "INSERT INTO author (full_name)"
|> Db.newCommand "INSERT INTO author (full_name) VALUES (@full_name)"
|> Db.Async.execMany [
"full_name", SqlType.String "John Doe"
"full_name", SqlType.String "Jane Doe" ] //Task<unit>
Expand Down

0 comments on commit e1567cc

Please sign in to comment.