> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MariaDB relation source

> Observe a MariaDB InnoDB table from your app.

Mount `@bijectionhq/app-sql` once per observed table. Use
`mariadbRelation("inventory.example:3306", login)` as the
`provider` receiver in the [SQL mount example](https://docs.bijection.com/integrations/native-sql.md#mount-and-bind).
Seal the [connection JSON](https://docs.bijection.com/integrations/native-mysql.md), grant the account
`SELECT` on the chosen table, and use a `mysql_native_password` login. The
receiver requires TLS with a server certificate trusted by the deployment.

The receiver uses MariaDB's `JSON_OBJECT` for the named projection.
It has the same full typed key tuple, InnoDB, and page limits as
the [MySQL relation source](https://docs.bijection.com/integrations/native-mysql.md). Its observed server
identity uses the MariaDB server ID and hostname. Change the configured
incarnation after replacing or restoring the server, then authorize the reset
at the health revision and gap instant. Each page observes a read-only
repeatable-read transaction. Later scans refresh observed keys, and the app
keeps previously published keys that disappear at the source.

## Write a declared relation

Follow the [parameterized SQL write guide](https://docs.bijection.com/integrations/native-sql.md#parameterized-sql-writes)
for the writer binding, composite and text keys, declared projection and
provider affected-row evidence.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.