vona-module-a-orm 5.0.73 → 5.0.75
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/dist/.metadata/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ declare module 'vona-module-a-orm' {
|
|
|
13
13
|
interface AopMethodTransaction {
|
|
14
14
|
get $beanFullName(): 'a-orm.aopMethod.transaction';
|
|
15
15
|
get $onionName(): 'a-orm:transaction';
|
|
16
|
+
get $onionOptions(): IAopMethodOptionsTransaction;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
/** aopMethod: end */
|
|
@@ -98,6 +99,7 @@ declare module 'vona-module-a-orm' {
|
|
|
98
99
|
interface BroadcastColumnsClear {
|
|
99
100
|
get $beanFullName(): 'a-orm.broadcast.columnsClear';
|
|
100
101
|
get $onionName(): 'a-orm:columnsClear';
|
|
102
|
+
get $onionOptions(): IDecoratorBroadcastOptions;
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
/** broadcast: end */
|
|
@@ -161,6 +163,7 @@ declare module 'vona-module-a-orm' {
|
|
|
161
163
|
interface QueueDoubleDelete {
|
|
162
164
|
get $beanFullName(): 'a-orm.queue.doubleDelete';
|
|
163
165
|
get $onionName(): 'a-orm:doubleDelete';
|
|
166
|
+
get $onionOptions(): IDecoratorQueueOptions;
|
|
164
167
|
}
|
|
165
168
|
}
|
|
166
169
|
/** queue: end */
|
|
@@ -184,6 +187,7 @@ declare module 'vona-module-a-orm' {
|
|
|
184
187
|
interface ScheduleSoftDeletionPrune {
|
|
185
188
|
get $beanFullName(): 'a-orm.schedule.softDeletionPrune';
|
|
186
189
|
get $onionName(): 'a-orm:softDeletionPrune';
|
|
190
|
+
get $onionOptions(): IDecoratorScheduleOptions;
|
|
187
191
|
}
|
|
188
192
|
}
|
|
189
193
|
/** schedule: end */
|
package/dist/index.js
CHANGED
|
@@ -3773,7 +3773,7 @@ function ExtendSchemaBuilder(app) {
|
|
|
3773
3773
|
['fetchDatabases', 'createDatabase', 'dropDatabase', 'fetchIndexes'].forEach(method => {
|
|
3774
3774
|
knex.SchemaBuilder.extend(method, async function (...args) {
|
|
3775
3775
|
const client = cast(cast(this).client).config.client;
|
|
3776
|
-
const dialect = app.
|
|
3776
|
+
const dialect = app.scope('a-orm').service.database.getDialect(client);
|
|
3777
3777
|
return await dialect[method](this, ...args);
|
|
3778
3778
|
});
|
|
3779
3779
|
});
|
|
@@ -3782,7 +3782,7 @@ function ExtendSchemaBuilder(app) {
|
|
|
3782
3782
|
const __ThisModule__ = 'a-orm';
|
|
3783
3783
|
|
|
3784
3784
|
function ExtendTableBuilder(app) {
|
|
3785
|
-
const scope = app.
|
|
3785
|
+
const scope = app.scope(__ThisModule__);
|
|
3786
3786
|
function _basicFields(options, identityType) {
|
|
3787
3787
|
options = options || {};
|
|
3788
3788
|
if (options.id !== false) {
|