# Disconnect from the database
api.sqlany_disconnect( conn )
# Free the connection resources
api.sqlany_free_connection( conn )
# Free resources the api object uses
api.sqlany_fini()
# Close the interface
SQLAnywhere::API.sqlany_finalize_interface( api )