> For the complete documentation index, see [llms.txt](https://dev.teaproject.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.teaproject.org/z_glossary/gluesql.md).

# GlueSQL

[GlueSQL](https://github.com/gluesql/gluesql) is a SQL database library written in Rust.

TEA Project uses GlueSQL as an embedded SQL database **inside** of a [state machine replica's](https://github.com/tearust/t-rust/blob/master/docs/_gitbook-dev-docs/z_glossary/state_machine_replica.md) enclave. All data is stored in RAM only. The [state machine](https://github.com/tearust/t-rust/blob/master/docs/_gitbook-dev-docs/z_glossary/state_machine.md) keeps all SQL states consistent across all replicas.
