Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
aarroyoc committed Aug 20, 2023
1 parent f55c1c1 commit a4f4e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ SQL = "INSERT INTO test_table (name) VALUES ($1)"
QueryDSL = [update(post),set((lang = "es", price = 99)),where(lang = "fr")]
SQL = "UPDATE post SET lang = $1,price = 99 WHERE lang = $2"
```.
```

The Result var contains the result exection of the query. It can be:

Expand All @@ -94,6 +94,7 @@ data(ColumnDescription, Rows) is returned when a query outputs a table (SELECT).

```
query(+Connection, +QueryEscaped, +Data, -Result)
```

Executes a SQL query string over a connection. In contrast to `query/3`, here the query needs to be a template and the vars are passed in the Data list. This is safer than `query/3`. Result is the same as `sql/3`.

Expand Down

0 comments on commit a4f4e9a

Please sign in to comment.