Skip to content

Commit e502fb0

Browse files
committed
more
1 parent b3a463e commit e502fb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sqllib.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Ensuring the correct database connection details is a challenge. For this a func
1515

1616
In addition `sql_cnf_connect(...)` can be used, which just uses a specified configuration file for the connection. This is ideal for ensuring credentials are not included in code.
1717

18+
At the end, close with `sql_close(&sql)`.
19+
1820
## Queries
1921

2022
In addition to just mapping `mysql` to `sql` the library also provides a comprehensive set of functions for managing SQL queries. The reason for this is that SQL queries require memory management (they can be arbitrarily long) and escaping (to avoid Bobby Tables). Constructing safe queries directly in C code can be problematic and error prone.

0 commit comments

Comments
 (0)