new(basic.gblib): Allow TABLE keyword multiple times per file #383.
This commit is contained in:
parent
989a45890d
commit
15b6d9ebc0
3 changed files with 4 additions and 2 deletions
|
@ -2204,10 +2204,12 @@ export class SystemKeywords {
|
||||||
await t.update(obj, { where: { key1: key1Value } });
|
await t.update(obj, { where: { key1: key1Value } });
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
const cell = `${this.numberToLetters(j)}${i + 1}`;
|
const cell = `${this.numberToLetters(j)}${i + 1}`;
|
||||||
const address = `${cell}:${cell}`;
|
const address = `${cell}:${cell}`;
|
||||||
|
|
||||||
if (value !== found[columnName]) {
|
if (value !== found[columnName]) {
|
||||||
|
|
||||||
await this.set({ pid, handle: null, file, address, value });
|
await this.set({ pid, handle: null, file, address, value });
|
||||||
merges++;
|
merges++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ export class GBConfigService {
|
||||||
case 'STORAGE_DIALECT':
|
case 'STORAGE_DIALECT':
|
||||||
value = undefined;
|
value = undefined;
|
||||||
break;
|
break;
|
||||||
case 'STORAGE_STORAGE':
|
case 'STORAGE_FILE':
|
||||||
value = './guaribas.sqlite';
|
value = './guaribas.sqlite';
|
||||||
break;
|
break;
|
||||||
case 'GBKB_AUTO_DEPLOY':
|
case 'GBKB_AUTO_DEPLOY':
|
||||||
|
|
|
@ -128,7 +128,7 @@ export class GBCoreService implements IGBCoreService {
|
||||||
username = GBConfigService.get('STORAGE_USERNAME');
|
username = GBConfigService.get('STORAGE_USERNAME');
|
||||||
password = GBConfigService.get('STORAGE_PASSWORD');
|
password = GBConfigService.get('STORAGE_PASSWORD');
|
||||||
} else if (this.dialect === 'sqlite') {
|
} else if (this.dialect === 'sqlite') {
|
||||||
storage = GBConfigService.get('STORAGE_STORAGE');
|
storage = GBConfigService.get('STORAGE_FILE');
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Unknown dialect: ${this.dialect}.`);
|
throw new Error(`Unknown dialect: ${this.dialect}.`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue