---
name: "yada.trx"
section: "3"
platform: "linux"
package: "libyada-dev"
version: "1.0.2-2"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/yada.trx"
---

# yada.trx(3)

## NAME

yada transaction functions

## SYNOPSIS

```
#include <yada.h>

int yada.trx(yada_t *yada_rc, int flags);
void yada.commit(yada_t *yada);
void yada.rollback(yada_t *yada, int flags);"

```

## DESCRIPTION

Yada is a database abstraction library aimed at allowing transparent use of multiple databases.  To accomplish this, it uses a compatability layer of functions to bind input and output variables, prepare statements, and retreive data.

These are the transaction handling functions for yada.

**trx()** begins a transaction, flags (currently unused) will allow you to start different types of transactions.

**commit()** commits a transaction causing any changes made to be saved.

**rollback()** rolls back the transaction undoing any transactional changes.

## SEE ALSO

[**yada**(3)](/yada/3.md)
