Sign In

@mikro-orm/sql

Package Overview
Dependencies
Maintainers
1
Versions
795
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/sql - npm Package Compare versions

Comparing version
7.2.0-dev.5
to
7.2.0-dev.6
+7
-0
AbstractSqlConnection.d.ts

@@ -39,2 +39,9 @@ import { type ControlledTransaction, type Dialect, Kysely } from 'kysely';

initClient(): Promise<void>;
/**
* Guards `getNativeClient()` overrides — drivers only capture their client while building their
* own dialect, which `driverOptions` carrying a ready-made Kysely instance or dialect skips.
*
* @internal
*/
protected requireNativeClient<T>(client: T | undefined | null): T;
/** Executes a callback within a transaction, committing on success and rolling back on error. */

@@ -41,0 +48,0 @@ transactional<T>(cb: (trx: Transaction<ControlledTransaction<any, any>>) => Promise<T>, options?: {

@@ -104,2 +104,14 @@ import { CompiledQuery, Kysely } from 'kysely';

}
/**
* Guards `getNativeClient()` overrides — drivers only capture their client while building their
* own dialect, which `driverOptions` carrying a ready-made Kysely instance or dialect skips.
*
* @internal
*/
requireNativeClient(client) {
if (client == null) {
throw new Error('The native client is not available, as it is owned by the Kysely instance or dialect passed via `driverOptions`. Access it through the object you provided there instead.');
}
return client;
}
/** Executes a callback within a transaction, committing on success and rolling back on error. */

@@ -106,0 +118,0 @@ async transactional(cb, options = {}) {

+2
-2
{
"name": "@mikro-orm/sql",
"version": "7.2.0-dev.5",
"version": "7.2.0-dev.6",
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",

@@ -56,3 +56,3 @@ "keywords": [

"peerDependencies": {
"@mikro-orm/core": "7.2.0-dev.5"
"@mikro-orm/core": "7.2.0-dev.6"
},

@@ -59,0 +59,0 @@ "engines": {