sqlany_new_connection(void) method

Creates a connection object.

Syntax

public a_sqlany_connection * sqlany_new_connection (void )

Returns

A connection object

Usage

You must create an API connection object before establishing a database connection. Errors can be retrieved from the connection object. Only one request can be processed on a connection at a time. In addition, not more than one thread is allowed to access a connection object at a time. Undefined behavior or a failure occurs when multiple threads attempt to access a connection object simultaneously.