cleanup, docs
This commit is contained in:
@@ -16,4 +16,6 @@ Establishes a connection to a MySQL server and returns a pointer to the connecti
|
||||
This connection handle is then used with helpers such as `mysql_query()`, `mysql_error()`, and `mysql_disconnect()`.
|
||||
|
||||
:example
|
||||
print("mysql_connect is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
MySQL* db = mysql_connect();
|
||||
print(db != 0 ? "connected to MySQL" : "no MySQL server reachable with these credentials", "\n");
|
||||
if(db != 0) mysql_disconnect(db);
|
||||
|
||||
Reference in New Issue
Block a user