@sqb/connect
Advanced tools
Comparing version 4.0.1-beta.39 to 4.0.1-beta.40
@@ -6,3 +6,3 @@ import { AsyncEventEmitter } from 'strict-typed-events'; | ||
import { QueryRequest, TransactionFunction } from '../client/types'; | ||
import { Maybe, InstanceValues, Type } from '../types'; | ||
import { Maybe, InstanceValues, Type, DeepPartial } from '../types'; | ||
import { FieldInfoMap } from '../client/FieldInfoMap'; | ||
@@ -77,13 +77,13 @@ export declare namespace Repository { | ||
get type(): Type<T>; | ||
create(values: InstanceValues<T>, options?: Repository.CreateOptions): Promise<T>; | ||
create(values: InstanceValues<T>, options?: Repository.CreateOptions): Promise<DeepPartial<T>>; | ||
createOnly(values: InstanceValues<T>, options?: Repository.CreateOptions): Promise<void>; | ||
exists(keyValue: any, options?: Repository.ExistsOptions): Promise<boolean>; | ||
count(options?: Repository.CountOptions): Promise<number>; | ||
findAll(options?: Repository.FindAllOptions): Promise<T[]>; | ||
findOne(options?: Repository.FindOneOptions): Promise<Maybe<T>>; | ||
findAll(options?: Repository.FindAllOptions): Promise<DeepPartial<T>[]>; | ||
findOne(options?: Repository.FindOneOptions): Promise<DeepPartial<T> | undefined>; | ||
findByPk(keyValue: any, options?: Repository.GetOptions): Promise<Maybe<T>>; | ||
destroy(keyValue: any, options?: Repository.DestroyOptions): Promise<boolean>; | ||
destroyAll(options?: Repository.DestroyOptions): Promise<number>; | ||
update(keyValue: any, values: InstanceValues<T>, options?: Repository.UpdateOptions): Promise<T | undefined>; | ||
updateOnly(keyValue: any, values: InstanceValues<T>, options?: Repository.UpdateOptions): Promise<any>; | ||
update(keyValue: any, values: InstanceValues<T>, options?: Repository.UpdateOptions): Promise<DeepPartial<T> | undefined>; | ||
updateOnly(keyValue: any, values: InstanceValues<T>, options?: Repository.UpdateOptions): Promise<DeepPartial<T>>; | ||
updateAll(values: InstanceValues<T>, options?: Repository.UpdateAllOptions): Promise<number>; | ||
@@ -93,3 +93,3 @@ protected _execute(fn: TransactionFunction, opts?: Repository.CommandOptions): Promise<any>; | ||
connection: SqbConnection; | ||
}): Promise<T>; | ||
}): Promise<DeepPartial<T>>; | ||
protected _createOnly(values: InstanceValues<T>, options: Repository.CreateOptions & { | ||
@@ -106,9 +106,9 @@ connection: SqbConnection; | ||
connection: SqbConnection; | ||
}): Promise<T[]>; | ||
}): Promise<DeepPartial<T>[]>; | ||
protected _findOne(options: Repository.FindOneOptions & { | ||
connection: SqbConnection; | ||
}): Promise<Maybe<T>>; | ||
}): Promise<DeepPartial<T> | undefined>; | ||
protected _findByPk(keyValue: any, options: Repository.GetOptions & { | ||
connection: SqbConnection; | ||
}): Promise<Maybe<T>>; | ||
}): Promise<DeepPartial<T> | undefined>; | ||
protected _destroy(keyValue: any, options: Repository.DestroyOptions & { | ||
@@ -122,3 +122,3 @@ connection: SqbConnection; | ||
connection: SqbConnection; | ||
}): Promise<any>; | ||
}): Promise<Record<string, any> | undefined>; | ||
protected _updateAll(values: InstanceValues<T>, options: Repository.UpdateAllOptions & { | ||
@@ -125,0 +125,0 @@ connection: SqbConnection; |
{ | ||
"name": "@sqb/connect", | ||
"description": "Multi-dialect database connection framework written with TypeScript", | ||
"version": "4.0.1-beta.39", | ||
"version": "4.0.1-beta.40", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183927