Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere for Ruby » SQL Anywhere Ruby API

 

sqlany_disconnect

Disconnects a SQL Anywhere connection. All uncommited transactions are rolled back.

Syntax
sqlany_disconnect ( $conn )
Parameters
  • $conn   A connection object with a connection established using sqlany_connect.

Returns

Returns a scalar value that is 1 on success or 0 on failure.

See also
Example
# Disconnect from the database
status = api.sqlany_disconnect( conn )
print "Disconnect status = #{status}\n"