๐ Dialect Support Details
Data Forge abstraction layers handle the nuances between different SQL engines.
๐ข Microsoft SQL Server (MSSQL)
- Quoting: Uses
[]for identifiers. - Pagination: Uses
OFFSET n ROWS FETCH NEXT m ROWS ONLY. Requires anORDER BYclause. - Top N: Automatically strips
TOPwhen applying custom pagination. - Affected Rows: Handled via
result.rowsAffected(Array of numbers).
๐ต MySQL & MariaDB
- Quoting: Uses
``for identifiers. - Pagination: Uses
LIMIT offset, limit. - Database Scope: Tables are referenced as
database.tableto handle cross-database queries in the same connection. - Affected Rows: Handled via
result.affectedRows.
๐ PostgreSQL
- Quoting: Uses
""for identifiers. - Pagination: Uses
LIMIT n OFFSET m. - Schema Control: Defaults to
publicschema unless specified. Filters out internal catalogs (information_schema,pg_catalog). - Affected Rows: Handled via
result.rowCount.
๐งช Consistency Mapping
We use INFORMATION_SCHEMA wherever possible to ensure maximum compatibility across different versions of these databases.