Skip to content

Commit fc530dd

Browse files
Procedimento de início com a abertura do adaptador do banco de dados.
1 parent 9becaed commit fc530dd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

fontes/comum

fontes/infraestrutura/cliente-sqlite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ClienteSQLite {
3030
driver: sqlite3.Database
3131
});
3232
this.instanciaBancoDeDados = database;
33-
console.log('Conectado ao banco de dados SQLite.');
33+
console.info('Conectado ao banco de dados SQLite.');
3434
}
3535

3636
async executarComando(comando: string, parametros: any[] = []): Promise<any> {

fontes/lincones-sqlite.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export class LinconesSQLite implements TecnologiaLinconesInterface {
1717
this.tradutor = new TradutorSqLite();
1818
}
1919

20-
iniciar(caminho: string): void {
20+
async iniciar(caminho: string): Promise<void> {
2121
this.clienteSQLite = new ClienteSQLite(caminho);
22+
await this.clienteSQLite.abrir();
2223
}
2324

2425
async executarComando(comando: Comando) {

0 commit comments

Comments
 (0)