@contember/database
Advanced tools
Comparing version 1.2.0-alpha.8 to 1.2.0-alpha.9
@@ -17,3 +17,3 @@ import { Returning } from './internal/Returning'; | ||
using(tableName: string, alias?: string): DeleteBuilder<Result>; | ||
returning<R = Returning.Result>(...columns: Returning.ReturningColumn[]): DeleteBuilder<R[]>; | ||
returning<R extends Returning.Result = Returning.Result>(...columns: Returning.ReturningColumn[]): DeleteBuilder<R[]>; | ||
createQuery(context: Compiler.Context): Literal; | ||
@@ -20,0 +20,0 @@ execute(db: Client): Promise<Result>; |
@@ -20,3 +20,3 @@ import { Returning } from './internal/Returning'; | ||
onConflict(action: ConflictActionType.doNothing, target?: InsertBuilder.ConflictTarget): InsertBuilder<Result>; | ||
returning<R = Returning.Result>(...columns: Returning.ReturningColumn[]): InsertBuilder<R[]>; | ||
returning<R extends Returning.Result = Returning.Result>(...columns: Returning.ReturningColumn[]): InsertBuilder<R[]>; | ||
from(from: SelectBuilder.Callback): InsertBuilder<Result>; | ||
@@ -23,0 +23,0 @@ createQuery(context: Compiler.Context): Literal; |
@@ -17,3 +17,3 @@ import { Returning } from './internal/Returning'; | ||
values(columns: QueryBuilder.Values): UpdateBuilder<Result>; | ||
returning<R = Returning.Result>(...columns: Returning.ReturningColumn[]): UpdateBuilder<R[]>; | ||
returning<R extends Returning.Result = Returning.Result>(...columns: Returning.ReturningColumn[]): UpdateBuilder<R[]>; | ||
from(from: SelectBuilder.Callback): UpdateBuilder<Result>; | ||
@@ -20,0 +20,0 @@ where(where: Where.Expression): UpdateBuilder<Result>; |
{ | ||
"name": "@contember/database", | ||
"version": "v1.2.0-alpha.8", | ||
"version": "1.2.0-alpha.9", | ||
"license": "Apache-2.0", | ||
@@ -11,7 +11,7 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@contember/queryable": "^v1.2.0-alpha.8" | ||
"@contember/queryable": "^1.2.0-alpha.9" | ||
}, | ||
"devDependencies": { | ||
"@contember/database-tester": "^v1.2.0-alpha.8", | ||
"@types/node": "^16", | ||
"@contember/database-tester": "^1.2.0-alpha.9", | ||
"@types/node": "^18", | ||
"pg": "^8.5.0" | ||
@@ -18,0 +18,0 @@ }, |
@@ -40,3 +40,3 @@ import { Returning } from './internal/Returning' | ||
public returning<R = Returning.Result>(...columns: Returning.ReturningColumn[]): DeleteBuilder<R[]> { | ||
public returning<R extends Returning.Result = Returning.Result>(...columns: Returning.ReturningColumn[]): DeleteBuilder<R[]> { | ||
return this.withOption('returning', new Returning(columns)) as DeleteBuilder<any> | ||
@@ -43,0 +43,0 @@ } |
@@ -92,3 +92,3 @@ import { Returning } from './internal/Returning' | ||
public returning<R = Returning.Result>(...columns: Returning.ReturningColumn[]): InsertBuilder<R[]> { | ||
public returning<R extends Returning.Result = Returning.Result>(...columns: Returning.ReturningColumn[]): InsertBuilder<R[]> { | ||
return this.withOption('returning', new Returning(columns)) as InsertBuilder<any> | ||
@@ -95,0 +95,0 @@ } |
@@ -38,3 +38,3 @@ import { Returning } from './internal/Returning' | ||
public returning<R = Returning.Result>(...columns: Returning.ReturningColumn[]): UpdateBuilder<R[]> { | ||
public returning<R extends Returning.Result = Returning.Result>(...columns: Returning.ReturningColumn[]): UpdateBuilder<R[]> { | ||
return this.withOption('returning', new Returning(columns)) as UpdateBuilder<any> | ||
@@ -41,0 +41,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
605519
0