Comparing version 31.3.0 to 32.0.0
@@ -69,2 +69,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
...defaultPropDescriptor, | ||
writable: true, | ||
value: (ctx) => { | ||
@@ -71,0 +72,0 @@ return this.extRefTableFnProperty(refName, caseConvert, ctx); |
{ | ||
"name": "kmore", | ||
"author": "waiting", | ||
"version": "31.3.0", | ||
"version": "32.0.0", | ||
"description": "A SQL query builder based on knex with powerful TypeScript type support", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"cross-env": "7", | ||
"kmore-types": "^31.0.0", | ||
"kmore-types": "^32.0.0", | ||
"knex": "^2.1.0", | ||
@@ -79,3 +79,3 @@ "pg": "^8.7.3", | ||
}, | ||
"gitHead": "b91502bb3b7a76f47a7c7ee467318a6b34b19be6" | ||
"gitHead": "8130edf1880674d78738818b9c4c3dde06d736ae" | ||
} |
@@ -218,5 +218,5 @@ # [kmore](https://waitingsong.github.io/kmore/) | ||
export class UserRepo { | ||
@Inject() readonly ctx: Context | ||
@Inject() dbManager: DbSourceManager<'master' | 'slave', Db> | ||
@Inject() dbManager: DbManager<'master' | 'slave', Db> | ||
async getUser(uid: number): Promise<UserDTO[]> { | ||
@@ -227,3 +227,3 @@ const db = this.dbManager.getDataSource('master') | ||
const { ref_tb_user } = db.camelTables | ||
const user = await ref_tb_user(this.ctx) | ||
const user = await ref_tb_user() | ||
.select('*') | ||
@@ -230,0 +230,0 @@ .where({ uid }) |
@@ -217,5 +217,5 @@ # [kmore](https://waitingsong.github.io/kmore/) | ||
export class UserRepo { | ||
@Inject() readonly ctx: Context | ||
@Inject() dbManager: DbSourceManager<'master' | 'slave', Db> | ||
@Inject() dbManager: DbManager<'master' | 'slave', Db> | ||
async getUser(uid: number): Promise<UserDTO[]> { | ||
@@ -226,3 +226,3 @@ const db = this.dbManager.getDataSource('master') | ||
const { ref_tb_user } = db.camelTables | ||
const user = await ref_tb_user(this.ctx) | ||
const user = await ref_tb_user() | ||
.select('*') | ||
@@ -229,0 +229,0 @@ .where({ uid }) |
@@ -108,2 +108,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
...defaultPropDescriptor, | ||
writable: true, | ||
value: (ctx?: Context) => { | ||
@@ -110,0 +111,0 @@ return this.extRefTableFnProperty(refName, caseConvert, ctx) |
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
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
117410
1865