new(basic.gblib): Allow TABLE keyword multiple times per file #383.

This commit is contained in:
Rodrigo Rodriguez 2023-10-10 12:48:52 -03:00
parent 989a45890d
commit 15b6d9ebc0
3 changed files with 4 additions and 2 deletions

View file

@ -2204,10 +2204,12 @@ export class SystemKeywords {
await t.update(obj, { where: { key1: key1Value } });
} else {
const cell = `${this.numberToLetters(j)}${i + 1}`;
const address = `${cell}:${cell}`;
if (value !== found[columnName]) {
await this.set({ pid, handle: null, file, address, value });
merges++;
}

View file

@ -107,7 +107,7 @@ export class GBConfigService {
case 'STORAGE_DIALECT':
value = undefined;
break;
case 'STORAGE_STORAGE':
case 'STORAGE_FILE':
value = './guaribas.sqlite';
break;
case 'GBKB_AUTO_DEPLOY':

View file

@ -128,7 +128,7 @@ export class GBCoreService implements IGBCoreService {
username = GBConfigService.get('STORAGE_USERNAME');
password = GBConfigService.get('STORAGE_PASSWORD');
} else if (this.dialect === 'sqlite') {
storage = GBConfigService.get('STORAGE_STORAGE');
storage = GBConfigService.get('STORAGE_FILE');
} else {
throw new Error(`Unknown dialect: ${this.dialect}.`);
}