Skip to main content
The supported client-side SQLite types are:
  1. null
  2. integer: a 64-bit signed integer
  3. real: a 64-bit floating point number
  4. text: A UTF-8 text string
  5. blob: Binary data

Postgres Type Mapping

Postgres types are mapped to SQLite types as follows:
Binary data can be accessed in the Sync Streams / Sync Rules, but cannot be used as parameters. To sync binary columns/fields to clients, those columns need to be converted to hex or base64 representation using the relevant functions.

MongoDB Type Mapping

MongoDB types are mapped to SQLite types as follows:
  • Data is converted to a flat list of columns, one column per top-level field in the MongoDB document.
  • Special BSON types are converted to plain SQLite alternatives. For example, ObjectId, Date, UUID are all converted to a plain TEXT column.
  • Nested objects and arrays are converted to JSON, and JSON functions and operators can be used to query them (in the Sync Streams / Sync Rules and/or on the client-side SQLite statements).
  • Binary data nested in objects or arrays is not supported.
Binary data can be accessed in the Sync Streams / Sync Rules, but cannot be used as parameters. To sync binary columns/fields to clients, those columns need to be converted to hex or base64 representation using the relevant functions.

MySQL Type Mapping

MySQL support is currently in a Beta release.
MySQL types are mapped to SQLite types as follows:
Binary data can be accessed in the Sync Streams / Sync Rules, but cannot be used as parameters. To sync binary columns/fields to clients, those columns need to be converted to hex or base64 representation using the relevant functions.

SQL Server Type Mapping

SQL Server support is currently in a Beta release.
SQL Server types are mapped to SQLite types as follows:
Binary data can be accessed in the Sync Streams / Sync Rules, but cannot be used as parameters. To sync binary columns/fields to clients, those columns need to be converted to hex or base64 representation using the relevant functions.