import { SQLServerAdapter } from './index.js';
export function registerSqlServerAdapter(registry) {
    registry.register('sqlserver', (config) => SQLServerAdapter.create(config));
}
const globalWithRegistry = globalThis;
const globalRegistry = globalWithRegistry.__zintrust_db_adapter_registry__ ??
    (globalWithRegistry.__zintrust_db_adapter_registry__ = new Map());
registerSqlServerAdapter({
    register: (driver, factory) => {
        globalRegistry.set(driver, factory);
    },
});
try {
    const core = (await import('../../../src/index.js'));
    if (core.DatabaseAdapterRegistry !== undefined) {
        registerSqlServerAdapter(core.DatabaseAdapterRegistry);
    }
}
catch {
    // no-op
}
