ReadonlyColocatedWhich SQL platform this host speaks — selects the colocated provider's SQL/placeholder syntax.
Reuses the canonical DatabasePlatform from @memberjunction/sql-dialect.
ReadonlyColocatedDefault schema where MJ entity tables/views live (e.g. "__mj").
Execute a parameterized statement against the host connection and return result rows.
Placeholders use the host dialect's native convention: $1..$n (PostgreSQL) or
@p0..@pN (SQL Server). Params are positional; index i maps to $${i+1} / @p${i}.
Optionalparams: readonly unknown[]
Contract a relational data provider implements so a colocated vector provider can borrow its connection — running vector DDL/DML in the SAME database (and, when a transaction is open, the same transaction) as the application's entity data.
Implemented by
SQLServerDataProvider/PostgreSQLDataProvider. When a host is wired in, the vector provider never opens its own pool.