SQL referenceΒΆ
Note
The SQL interface of the FoundationDB Record Layer is under active development and, along with this reference, is expected to change frequently as the SQL engine develops.
The FoundationDB Record Layer includes a Relational Layer, which provides a SQL interface for interacting with record stores. It includes a full query engine with sophisticated query planning. We generally recommend using this interface over the direct-access API whenever possible, as the query planner is more capable and automatically handles decisions such as selecting appropriate indexes.
The query language closely follows standard SQL, although the Relational Layer makes some deliberate changes to accommodate the nature of its data model. Most notably, database schemas are instantiated based on schema templates and, in practice, make heavy use of indexes as well as arrays and user-defined struct data types.