hysteria-orm 10.3.1 → 10.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.cts +3 -3
- package/lib/index.d.ts +3 -3
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { Collection as Collection$1 } from 'mongodb';
|
|
|
6
6
|
import * as sqlite3 from 'sqlite3';
|
|
7
7
|
import { RunResult } from 'sqlite3';
|
|
8
8
|
import * as pg from 'pg';
|
|
9
|
-
import {
|
|
9
|
+
import { PoolConfig, PoolClient, QueryResult as QueryResult$1 } from 'pg';
|
|
10
10
|
import * as mysql2_promise from 'mysql2/promise';
|
|
11
11
|
import { PoolOptions, PoolConnection, QueryResult } from 'mysql2/promise';
|
|
12
12
|
import { RedisOptions, Redis } from 'ioredis';
|
|
@@ -131,12 +131,12 @@ type MongoClientImport = typeof mongodb;
|
|
|
131
131
|
type MssqlImport = typeof mssql;
|
|
132
132
|
type OracleDBCreateConnectionOptions = PoolAttributes;
|
|
133
133
|
type MysqlCreateConnectionOptions = PoolOptions;
|
|
134
|
-
type
|
|
134
|
+
type PgPoolOptions = PoolConfig;
|
|
135
135
|
type MssqlConnectionOptions = Omit<config, "options"> & {
|
|
136
136
|
options?: Omit<NonNullable<config["options"]>, "abortTransactionOnError" | "enableImplicitTransactions">;
|
|
137
137
|
};
|
|
138
138
|
type MongoConnectionOptions = NonNullable<ConstructorParameters<MongoClientImport["MongoClient"]>[1]>;
|
|
139
|
-
type DriverSpecificOptions<T extends DataSourceType> = T extends "mongo" ? MongoConnectionOptions : T extends "cockroachdb" | "postgres" ?
|
|
139
|
+
type DriverSpecificOptions<T extends DataSourceType> = T extends "mongo" ? MongoConnectionOptions : T extends "cockroachdb" | "postgres" ? PgPoolOptions : T extends "redis" ? RedisOptions : T extends "mysql" | "mariadb" ? MysqlCreateConnectionOptions : T extends "mssql" ? MssqlConnectionOptions : T extends "oracledb" ? OracleDBCreateConnectionOptions : never;
|
|
140
140
|
|
|
141
141
|
type MongoCollectionKey<T> = T extends Collection ? T : never;
|
|
142
142
|
type BaseModelMethodOptions$1 = {
|
package/lib/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Collection as Collection$1 } from 'mongodb';
|
|
|
6
6
|
import * as sqlite3 from 'sqlite3';
|
|
7
7
|
import { RunResult } from 'sqlite3';
|
|
8
8
|
import * as pg from 'pg';
|
|
9
|
-
import {
|
|
9
|
+
import { PoolConfig, PoolClient, QueryResult as QueryResult$1 } from 'pg';
|
|
10
10
|
import * as mysql2_promise from 'mysql2/promise';
|
|
11
11
|
import { PoolOptions, PoolConnection, QueryResult } from 'mysql2/promise';
|
|
12
12
|
import { RedisOptions, Redis } from 'ioredis';
|
|
@@ -131,12 +131,12 @@ type MongoClientImport = typeof mongodb;
|
|
|
131
131
|
type MssqlImport = typeof mssql;
|
|
132
132
|
type OracleDBCreateConnectionOptions = PoolAttributes;
|
|
133
133
|
type MysqlCreateConnectionOptions = PoolOptions;
|
|
134
|
-
type
|
|
134
|
+
type PgPoolOptions = PoolConfig;
|
|
135
135
|
type MssqlConnectionOptions = Omit<config, "options"> & {
|
|
136
136
|
options?: Omit<NonNullable<config["options"]>, "abortTransactionOnError" | "enableImplicitTransactions">;
|
|
137
137
|
};
|
|
138
138
|
type MongoConnectionOptions = NonNullable<ConstructorParameters<MongoClientImport["MongoClient"]>[1]>;
|
|
139
|
-
type DriverSpecificOptions<T extends DataSourceType> = T extends "mongo" ? MongoConnectionOptions : T extends "cockroachdb" | "postgres" ?
|
|
139
|
+
type DriverSpecificOptions<T extends DataSourceType> = T extends "mongo" ? MongoConnectionOptions : T extends "cockroachdb" | "postgres" ? PgPoolOptions : T extends "redis" ? RedisOptions : T extends "mysql" | "mariadb" ? MysqlCreateConnectionOptions : T extends "mssql" ? MssqlConnectionOptions : T extends "oracledb" ? OracleDBCreateConnectionOptions : never;
|
|
140
140
|
|
|
141
141
|
type MongoCollectionKey<T> = T extends Collection ? T : never;
|
|
142
142
|
type BaseModelMethodOptions$1 = {
|