You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sqllib.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ Ensuring the correct database connection details is a challenge. For this a func
15
15
16
16
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.
17
17
18
+
At the end, close with `sql_close(&sql)`.
19
+
18
20
## Queries
19
21
20
22
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