#define afgs_command_commit connection   )     afgs_command_execute_non_query_with_con(connection, "COMMIT")

Allows to perform a COMMIT operation on the given connection.

Once several operations are done, that are started with a begin command (use afgs_command_begin), the commit operation is needed to store the current status of the connection to a consistent state into the database.

See also:

  • AfGsConnection, how to get a connection to perform SQL operations using the same connection/context.

  • afgs_command_rollback, undo previous operation and get the database stated, and the connection, at the state where the previous begin operation was issue.

connection The connection where the COMMIT operation will be performed.
TRUE if the COMMIT operation was allowed and successfully finished. Otherwise FALSE is returned.