@designliquido/lincones-sqlite 0.0.3 → 0.0.4
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/execucao.d.ts +1 -1
- package/execucao.js +52 -52
- package/execucao.js.map +1 -1
- package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +6 -15
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +42 -261
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/avaliador-sintatico/index.d.ts +1 -2
- package/fontes/avaliador-sintatico/index.js +5 -20
- package/fontes/avaliador-sintatico/index.js.map +1 -1
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +36 -0
- package/{comum/fontes/avaliador-sintatico/avaliador-sintatico.js → fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js} +444 -353
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -0
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +7 -0
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico.js +12 -0
- package/fontes/comum/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -0
- package/{comum → fontes/comum}/fontes/avaliador-sintatico/erro-avaliador-sintatico.d.ts +5 -5
- package/{comum → fontes/comum}/fontes/avaliador-sintatico/erro-avaliador-sintatico.js +11 -11
- package/fontes/comum/fontes/avaliador-sintatico/erro-avaliador-sintatico.js.map +1 -0
- package/fontes/comum/fontes/avaliador-sintatico/index.d.ts +3 -0
- package/{comum → fontes/comum}/fontes/avaliador-sintatico/index.js +19 -22
- package/fontes/comum/fontes/avaliador-sintatico/index.js.map +1 -0
- package/fontes/comum/fontes/comandos/alterar.d.ts +8 -0
- package/fontes/comum/fontes/comandos/alterar.js +14 -0
- package/fontes/comum/fontes/comandos/alterar.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/atualizar.d.ts +14 -14
- package/{comum → fontes/comum}/fontes/comandos/atualizar.js +13 -13
- package/fontes/comum/fontes/comandos/atualizar.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/comando.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/comandos/comando.js +13 -13
- package/fontes/comum/fontes/comandos/comando.js.map +1 -0
- package/fontes/comum/fontes/comandos/criar.d.ts +8 -0
- package/{comum → fontes/comum}/fontes/comandos/criar.js +12 -12
- package/fontes/comum/fontes/comandos/criar.js.map +1 -0
- package/fontes/comum/fontes/comandos/excluir-entidade.d.ts +6 -0
- package/fontes/comum/fontes/comandos/excluir-entidade.js +13 -0
- package/fontes/comum/fontes/comandos/excluir-entidade.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/excluir.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/comandos/excluir.js +12 -12
- package/fontes/comum/fontes/comandos/excluir.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/index.d.ts +8 -7
- package/{comum → fontes/comum}/fontes/comandos/index.js +24 -23
- package/fontes/comum/fontes/comandos/index.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/inserir.d.ts +8 -8
- package/{comum → fontes/comum}/fontes/comandos/inserir.js +13 -13
- package/fontes/comum/fontes/comandos/inserir.js.map +1 -0
- package/{comum → fontes/comum}/fontes/comandos/selecionar.d.ts +9 -9
- package/{comum → fontes/comum}/fontes/comandos/selecionar.js +14 -14
- package/fontes/comum/fontes/comandos/selecionar.js.map +1 -0
- package/{comum → fontes/comum}/fontes/construtos/coluna.d.ts +11 -11
- package/{comum → fontes/comum}/fontes/construtos/coluna.js +19 -15
- package/fontes/comum/fontes/construtos/coluna.js.map +1 -0
- package/{comum → fontes/comum}/fontes/construtos/condicao.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/construtos/condicao.js +11 -11
- package/fontes/comum/fontes/construtos/condicao.js.map +1 -0
- package/{comum → fontes/comum}/fontes/construtos/index.d.ts +2 -1
- package/{comum → fontes/comum}/fontes/construtos/index.js +18 -17
- package/fontes/comum/fontes/construtos/index.js.map +1 -0
- package/fontes/comum/fontes/construtos/operacao-alteracao-tabela.d.ts +7 -0
- package/fontes/comum/fontes/construtos/operacao-alteracao-tabela.js +15 -0
- package/fontes/comum/fontes/construtos/operacao-alteracao-tabela.js.map +1 -0
- package/fontes/comum/fontes/construtos/restricao.d.ts +13 -0
- package/fontes/comum/fontes/construtos/restricao.js +19 -0
- package/fontes/comum/fontes/construtos/restricao.js.map +1 -0
- package/{comum → fontes/comum}/fontes/interfaces/avaliador-sintatico-interface.d.ts +14 -14
- package/{comum → fontes/comum}/fontes/interfaces/avaliador-sintatico-interface.js +2 -2
- package/fontes/comum/fontes/interfaces/avaliador-sintatico-interface.js.map +1 -0
- package/fontes/comum/fontes/interfaces/index.d.ts +3 -0
- package/fontes/comum/fontes/interfaces/index.js +20 -0
- package/fontes/comum/fontes/interfaces/index.js.map +1 -0
- package/fontes/comum/fontes/interfaces/lincones-interface.d.ts +3 -0
- package/{comum → fontes/comum}/fontes/interfaces/lincones-interface.js +2 -2
- package/fontes/comum/fontes/interfaces/lincones-interface.js.map +1 -0
- package/{comum → fontes/comum}/fontes/interfaces/retornos/index.d.ts +16 -16
- package/{comum → fontes/comum}/fontes/interfaces/retornos/index.js +2 -2
- package/fontes/comum/fontes/interfaces/retornos/index.js.map +1 -0
- package/{comum → fontes/comum}/fontes/interfaces/simbolo-interface.d.ts +6 -6
- package/{comum → fontes/comum}/fontes/interfaces/simbolo-interface.js +2 -2
- package/fontes/comum/fontes/interfaces/simbolo-interface.js.map +1 -0
- package/fontes/comum/fontes/lexador/index.d.ts +1 -0
- package/{comum/fontes/interfaces → fontes/comum/fontes/lexador}/index.js +17 -17
- package/fontes/comum/fontes/lexador/index.js.map +1 -0
- package/{comum/fontes/lexador/index.d.ts → fontes/comum/fontes/lexador/lexador.d.ts} +26 -26
- package/{comum/fontes/lexador/index.js → fontes/comum/fontes/lexador/lexador.js} +220 -220
- package/fontes/comum/fontes/lexador/lexador.js.map +1 -0
- package/{comum → fontes/comum}/fontes/lexador/simbolo.d.ts +9 -9
- package/{comum → fontes/comum}/fontes/lexador/simbolo.js +15 -15
- package/fontes/comum/fontes/lexador/simbolo.js.map +1 -0
- package/{comum → fontes/comum}/fontes/palavras-reservadas.d.ts +51 -40
- package/{comum → fontes/comum}/fontes/palavras-reservadas.js +56 -45
- package/fontes/comum/fontes/palavras-reservadas.js.map +1 -0
- package/{comum → fontes/comum}/fontes/tipos-de-simbolos.d.ts +57 -52
- package/{comum → fontes/comum}/fontes/tipos-de-simbolos.js +58 -53
- package/fontes/comum/fontes/tipos-de-simbolos.js.map +1 -0
- package/fontes/comum/fontes/tradutor/index.d.ts +32 -0
- package/{comum → fontes/comum}/fontes/tradutor/index.js +238 -183
- package/fontes/comum/fontes/tradutor/index.js.map +1 -0
- package/fontes/comum/index.d.ts +8 -0
- package/fontes/comum/index.js +25 -0
- package/fontes/comum/index.js.map +1 -0
- package/{comum → fontes/comum}/jest.config.d.ts +3 -3
- package/{comum → fontes/comum}/jest.config.js +11 -11
- package/fontes/comum/jest.config.js.map +1 -0
- package/{comum/execucao.d.ts → fontes/comum/testes/avaliador-sintatico.test.d.ts} +1 -1
- package/fontes/comum/testes/avaliador-sintatico.test.js +86 -0
- package/fontes/comum/testes/avaliador-sintatico.test.js.map +1 -0
- package/fontes/comum/testes/lexador.test.d.ts +1 -0
- package/fontes/comum/testes/lexador.test.js +83 -0
- package/fontes/comum/testes/lexador.test.js.map +1 -0
- package/fontes/comum/testes/tradutor.test.d.ts +1 -0
- package/fontes/comum/testes/tradutor.test.js +133 -0
- package/fontes/comum/testes/tradutor.test.js.map +1 -0
- package/fontes/infraestrutura/cliente-sqlite.d.ts +10 -10
- package/fontes/infraestrutura/cliente-sqlite.js +71 -71
- package/fontes/infraestrutura/cliente-sqlite.js.map +1 -1
- package/fontes/infraestrutura/index.d.ts +2 -2
- package/fontes/infraestrutura/index.js +18 -18
- package/fontes/infraestrutura/retorno-comando.d.ts +8 -8
- package/fontes/infraestrutura/retorno-comando.js +28 -28
- package/fontes/infraestrutura/retorno-comando.js.map +1 -1
- package/fontes/lincones-sqlite.d.ts +13 -13
- package/fontes/lincones-sqlite.js +28 -28
- package/fontes/lincones-sqlite.js.map +1 -1
- package/fontes/palavras-reservadas.d.ts +26 -26
- package/fontes/palavras-reservadas.js +31 -31
- package/fontes/palavras-reservadas.js.map +1 -1
- package/fontes/tradutor/index.d.ts +21 -19
- package/fontes/tradutor/index.js +152 -149
- package/fontes/tradutor/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +17 -17
- package/package.json +12 -12
- package/comum/execucao.js +0 -40
- package/comum/execucao.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +0 -15
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js +0 -46
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +0 -16
- package/comum/fontes/avaliador-sintatico/avaliador-sintatico.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/erro-avaliador-sintatico.js.map +0 -1
- package/comum/fontes/avaliador-sintatico/index.d.ts +0 -3
- package/comum/fontes/avaliador-sintatico/index.js.map +0 -1
- package/comum/fontes/comandos/alterar.d.ts +0 -13
- package/comum/fontes/comandos/alterar.js +0 -19
- package/comum/fontes/comandos/alterar.js.map +0 -1
- package/comum/fontes/comandos/atualizar.js.map +0 -1
- package/comum/fontes/comandos/comando.js.map +0 -1
- package/comum/fontes/comandos/criar.d.ts +0 -7
- package/comum/fontes/comandos/criar.js.map +0 -1
- package/comum/fontes/comandos/excluir.js.map +0 -1
- package/comum/fontes/comandos/index.js.map +0 -1
- package/comum/fontes/comandos/inserir.js.map +0 -1
- package/comum/fontes/comandos/selecionar.js.map +0 -1
- package/comum/fontes/construtos/coluna.js.map +0 -1
- package/comum/fontes/construtos/condicao.js.map +0 -1
- package/comum/fontes/construtos/index.js.map +0 -1
- package/comum/fontes/interfaces/avaliador-sintatico-interface.js.map +0 -1
- package/comum/fontes/interfaces/index.d.ts +0 -3
- package/comum/fontes/interfaces/index.js.map +0 -1
- package/comum/fontes/interfaces/lincones-interface.d.ts +0 -3
- package/comum/fontes/interfaces/lincones-interface.js.map +0 -1
- package/comum/fontes/interfaces/retornos/index.js.map +0 -1
- package/comum/fontes/interfaces/simbolo-interface.js.map +0 -1
- package/comum/fontes/lexador/index.js.map +0 -1
- package/comum/fontes/lexador/simbolo.js.map +0 -1
- package/comum/fontes/lincones.d.ts +0 -10
- package/comum/fontes/lincones.js +0 -21
- package/comum/fontes/lincones.js.map +0 -1
- package/comum/fontes/palavras-reservadas.js.map +0 -1
- package/comum/fontes/tipos-de-simbolos.js.map +0 -1
- package/comum/fontes/tradutor/index.d.ts +0 -20
- package/comum/fontes/tradutor/index.js.map +0 -1
- package/comum/index.d.ts +0 -1
- package/comum/index.js +0 -6
- package/comum/index.js.map +0 -1
- package/comum/jest.config.js.map +0 -1
- package/fontes/lexador/index.d.ts +0 -26
- package/fontes/lexador/index.js +0 -220
- package/fontes/lexador/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lincones-sqlite.js","sourceRoot":"","sources":["../../fontes/lincones-sqlite.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"lincones-sqlite.js","sourceRoot":"","sources":["../../fontes/lincones-sqlite.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAC5C,4EAAwE;AACxE,oDAAiD;AACjD,oEAAgE;AAChE,qDAAkD;AAElD,MAAa,cAAc;IAMvB;QACI,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,kBAAkB,GAAG,IAAI,wCAAkB,EAAE,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,yBAAc,EAAE,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,IAAI,8BAAa,EAAE,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,OAAe;QAC1B,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACxD,MAAM,2BAA2B,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;QACvF,MAAM,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAC;QAEvF,IAAI,2BAA2B,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YACnD,OAAO,IAAI,+BAAc,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;QAED,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;QACtF,MAAM,OAAO,GAAG,IAAI,+BAAc,CAAC,iBAAiB,CAAC,CAAC;QAEtD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AA3BD,wCA2BC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
atualizar: string;
|
|
3
|
-
auto: string;
|
|
4
|
-
chave: string;
|
|
5
|
-
criar: string;
|
|
6
|
-
de: string;
|
|
7
|
-
definir: string;
|
|
8
|
-
e: string;
|
|
9
|
-
em: string;
|
|
10
|
-
excluir: string;
|
|
11
|
-
falso: string;
|
|
12
|
-
incremento: string;
|
|
13
|
-
inserir: string;
|
|
14
|
-
inteiro: string;
|
|
15
|
-
logico: string;
|
|
16
|
-
nao: string;
|
|
17
|
-
nulo: string;
|
|
18
|
-
onde: string;
|
|
19
|
-
primaria: string;
|
|
20
|
-
selecionar: string;
|
|
21
|
-
tabela: string;
|
|
22
|
-
texto: string;
|
|
23
|
-
valores: string;
|
|
24
|
-
verdadeiro: string;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
atualizar: string;
|
|
3
|
+
auto: string;
|
|
4
|
+
chave: string;
|
|
5
|
+
criar: string;
|
|
6
|
+
de: string;
|
|
7
|
+
definir: string;
|
|
8
|
+
e: string;
|
|
9
|
+
em: string;
|
|
10
|
+
excluir: string;
|
|
11
|
+
falso: string;
|
|
12
|
+
incremento: string;
|
|
13
|
+
inserir: string;
|
|
14
|
+
inteiro: string;
|
|
15
|
+
logico: string;
|
|
16
|
+
nao: string;
|
|
17
|
+
nulo: string;
|
|
18
|
+
onde: string;
|
|
19
|
+
primaria: string;
|
|
20
|
+
selecionar: string;
|
|
21
|
+
tabela: string;
|
|
22
|
+
texto: string;
|
|
23
|
+
valores: string;
|
|
24
|
+
verdadeiro: string;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const tipos_de_simbolos_1 = __importDefault(require("
|
|
7
|
-
exports.default = {
|
|
8
|
-
atualizar: tipos_de_simbolos_1.default.ATUALIZAR,
|
|
9
|
-
auto: tipos_de_simbolos_1.default.AUTO,
|
|
10
|
-
chave: tipos_de_simbolos_1.default.CHAVE,
|
|
11
|
-
criar: tipos_de_simbolos_1.default.CRIAR,
|
|
12
|
-
de: tipos_de_simbolos_1.default.DE,
|
|
13
|
-
definir: tipos_de_simbolos_1.default.DEFINIR,
|
|
14
|
-
e: tipos_de_simbolos_1.default.E,
|
|
15
|
-
em: tipos_de_simbolos_1.default.EM,
|
|
16
|
-
excluir: tipos_de_simbolos_1.default.EXCLUIR,
|
|
17
|
-
falso: tipos_de_simbolos_1.default.FALSO,
|
|
18
|
-
incremento: tipos_de_simbolos_1.default.INCREMENTO,
|
|
19
|
-
inserir: tipos_de_simbolos_1.default.INSERIR,
|
|
20
|
-
inteiro: tipos_de_simbolos_1.default.INTEIRO,
|
|
21
|
-
logico: tipos_de_simbolos_1.default.LOGICO,
|
|
22
|
-
nao: tipos_de_simbolos_1.default.NAO,
|
|
23
|
-
nulo: tipos_de_simbolos_1.default.NULO,
|
|
24
|
-
onde: tipos_de_simbolos_1.default.ONDE,
|
|
25
|
-
primaria: tipos_de_simbolos_1.default.PRIMARIA,
|
|
26
|
-
selecionar: tipos_de_simbolos_1.default.SELECIONAR,
|
|
27
|
-
tabela: tipos_de_simbolos_1.default.TABELA,
|
|
28
|
-
texto: tipos_de_simbolos_1.default.TEXTO,
|
|
29
|
-
valores: tipos_de_simbolos_1.default.VALORES,
|
|
30
|
-
verdadeiro: tipos_de_simbolos_1.default.VERDADEIRO
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const tipos_de_simbolos_1 = __importDefault(require("./comum/fontes/tipos-de-simbolos"));
|
|
7
|
+
exports.default = {
|
|
8
|
+
atualizar: tipos_de_simbolos_1.default.ATUALIZAR,
|
|
9
|
+
auto: tipos_de_simbolos_1.default.AUTO,
|
|
10
|
+
chave: tipos_de_simbolos_1.default.CHAVE,
|
|
11
|
+
criar: tipos_de_simbolos_1.default.CRIAR,
|
|
12
|
+
de: tipos_de_simbolos_1.default.DE,
|
|
13
|
+
definir: tipos_de_simbolos_1.default.DEFINIR,
|
|
14
|
+
e: tipos_de_simbolos_1.default.E,
|
|
15
|
+
em: tipos_de_simbolos_1.default.EM,
|
|
16
|
+
excluir: tipos_de_simbolos_1.default.EXCLUIR,
|
|
17
|
+
falso: tipos_de_simbolos_1.default.FALSO,
|
|
18
|
+
incremento: tipos_de_simbolos_1.default.INCREMENTO,
|
|
19
|
+
inserir: tipos_de_simbolos_1.default.INSERIR,
|
|
20
|
+
inteiro: tipos_de_simbolos_1.default.INTEIRO,
|
|
21
|
+
logico: tipos_de_simbolos_1.default.LOGICO,
|
|
22
|
+
nao: tipos_de_simbolos_1.default.NAO,
|
|
23
|
+
nulo: tipos_de_simbolos_1.default.NULO,
|
|
24
|
+
onde: tipos_de_simbolos_1.default.ONDE,
|
|
25
|
+
primaria: tipos_de_simbolos_1.default.PRIMARIA,
|
|
26
|
+
selecionar: tipos_de_simbolos_1.default.SELECIONAR,
|
|
27
|
+
tabela: tipos_de_simbolos_1.default.TABELA,
|
|
28
|
+
texto: tipos_de_simbolos_1.default.TEXTO,
|
|
29
|
+
valores: tipos_de_simbolos_1.default.VALORES,
|
|
30
|
+
verdadeiro: tipos_de_simbolos_1.default.VERDADEIRO
|
|
31
|
+
};
|
|
32
32
|
//# sourceMappingURL=palavras-reservadas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palavras-reservadas.js","sourceRoot":"","sources":["../../fontes/palavras-reservadas.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"palavras-reservadas.js","sourceRoot":"","sources":["../../fontes/palavras-reservadas.ts"],"names":[],"mappings":";;;;;AAAA,yFAA+D;AAE/D,kBAAe;IACX,SAAS,EAAE,2BAAe,CAAC,SAAS;IACpC,IAAI,EAAE,2BAAe,CAAC,IAAI;IAC1B,KAAK,EAAE,2BAAe,CAAC,KAAK;IAC5B,KAAK,EAAE,2BAAe,CAAC,KAAK;IAC5B,EAAE,EAAE,2BAAe,CAAC,EAAE;IACtB,OAAO,EAAE,2BAAe,CAAC,OAAO;IAChC,CAAC,EAAE,2BAAe,CAAC,CAAC;IACpB,EAAE,EAAE,2BAAe,CAAC,EAAE;IACtB,OAAO,EAAE,2BAAe,CAAC,OAAO;IAChC,KAAK,EAAE,2BAAe,CAAC,KAAK;IAC5B,UAAU,EAAE,2BAAe,CAAC,UAAU;IACtC,OAAO,EAAE,2BAAe,CAAC,OAAO;IAChC,OAAO,EAAE,2BAAe,CAAC,OAAO;IAChC,MAAM,EAAE,2BAAe,CAAC,MAAM;IAC9B,GAAG,EAAE,2BAAe,CAAC,GAAG;IACxB,IAAI,EAAE,2BAAe,CAAC,IAAI;IAC1B,IAAI,EAAE,2BAAe,CAAC,IAAI;IAC1B,QAAQ,EAAE,2BAAe,CAAC,QAAQ;IAClC,UAAU,EAAE,2BAAe,CAAC,UAAU;IACtC,MAAM,EAAE,2BAAe,CAAC,MAAM;IAC9B,KAAK,EAAE,2BAAe,CAAC,KAAK;IAC5B,OAAO,EAAE,2BAAe,CAAC,OAAO;IAChC,UAAU,EAAE,2BAAe,CAAC,UAAU;CACzC,CAAC"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { Coluna } from
|
|
2
|
-
import { Atualizar, Comando, Criar, Excluir, Inserir, Selecionar } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
1
|
+
import { Coluna } from '../comum/fontes/construtos';
|
|
2
|
+
import { Atualizar, Comando, Criar, Excluir, Inserir, Selecionar } from '../comum/fontes/comandos';
|
|
3
|
+
import { TradutorSqlAnsi } from '../comum';
|
|
4
|
+
export declare class TradutorSqLite extends TradutorSqlAnsi {
|
|
5
|
+
traduzirOperador(operador: string): boolean | "=";
|
|
6
|
+
traduzirComandoAtualizar(comandoAtualizar: Atualizar): string;
|
|
7
|
+
traduzirColuna(coluna: Coluna): string;
|
|
8
|
+
traduzirComandoCriar(comandoCriar: Criar): string;
|
|
9
|
+
traduzirComandoExcluir(comandoExcluir: Excluir): string;
|
|
10
|
+
traduzirComandoInserir(comandoInserir: Inserir): string;
|
|
11
|
+
traduzirComandoSelecionar(comandoSelecionar: Selecionar): string;
|
|
12
|
+
dicionarioComandos: {
|
|
13
|
+
Alterar: any;
|
|
14
|
+
Atualizar: any;
|
|
15
|
+
Criar: any;
|
|
16
|
+
Excluir: any;
|
|
17
|
+
Inserir: any;
|
|
18
|
+
Selecionar: any;
|
|
19
|
+
};
|
|
20
|
+
traduzir(comandos: Comando[]): string;
|
|
21
|
+
}
|
package/fontes/tradutor/index.js
CHANGED
|
@@ -1,150 +1,153 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const tipos_de_simbolos_1 = __importDefault(require("
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
traduzir +=
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TradutorSqLite = void 0;
|
|
7
|
+
const tipos_de_simbolos_1 = __importDefault(require("../comum/fontes/tipos-de-simbolos"));
|
|
8
|
+
const comum_1 = require("../comum");
|
|
9
|
+
class TradutorSqLite extends comum_1.TradutorSqlAnsi {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.dicionarioComandos = {
|
|
13
|
+
Alterar: this.traduzirComandoAlterar.bind(this),
|
|
14
|
+
Atualizar: this.traduzirComandoAtualizar.bind(this),
|
|
15
|
+
Criar: this.traduzirComandoCriar.bind(this),
|
|
16
|
+
Excluir: this.traduzirComandoExcluir.bind(this),
|
|
17
|
+
Inserir: this.traduzirComandoInserir.bind(this),
|
|
18
|
+
Selecionar: this.traduzirComandoSelecionar.bind(this)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
traduzirOperador(operador) {
|
|
22
|
+
switch (operador) {
|
|
23
|
+
case tipos_de_simbolos_1.default.IGUAL:
|
|
24
|
+
return '=';
|
|
25
|
+
case tipos_de_simbolos_1.default.VERDADEIRO:
|
|
26
|
+
return true;
|
|
27
|
+
case tipos_de_simbolos_1.default.FALSO:
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
traduzirComandoAtualizar(comandoAtualizar) {
|
|
32
|
+
let resultado = 'UPDATE ';
|
|
33
|
+
resultado += `${comandoAtualizar.tabela}\nSET `;
|
|
34
|
+
for (const valorAtualizacao of comandoAtualizar.colunasEValores) {
|
|
35
|
+
if (valorAtualizacao.direita.tipo === tipos_de_simbolos_1.default.TEXTO) {
|
|
36
|
+
resultado += `${valorAtualizacao.esquerda.lexema} = '${valorAtualizacao.direita.lexema}', `;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ([tipos_de_simbolos_1.default.VERDADEIRO, tipos_de_simbolos_1.default.FALSO].includes(valorAtualizacao.direita.tipo)) {
|
|
40
|
+
resultado += `${valorAtualizacao.esquerda.lexema} = ${this.traduzirOperador(valorAtualizacao.direita.tipo)}, `;
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
resultado += `${valorAtualizacao.esquerda.lexema} = ${valorAtualizacao.direita.lexema}, `;
|
|
44
|
+
}
|
|
45
|
+
resultado = resultado.slice(0, -2);
|
|
46
|
+
if (comandoAtualizar.condicoes.length > 0) {
|
|
47
|
+
resultado += `\nWHERE `;
|
|
48
|
+
for (const condicao of comandoAtualizar.condicoes) {
|
|
49
|
+
resultado += `${condicao.esquerda.lexema} ${this.traduzirOperador(condicao.operador)} ${condicao.direita} AND `;
|
|
50
|
+
}
|
|
51
|
+
resultado = resultado.slice(0, -5);
|
|
52
|
+
}
|
|
53
|
+
return resultado;
|
|
54
|
+
}
|
|
55
|
+
traduzirColuna(coluna) {
|
|
56
|
+
let traduzir = '';
|
|
57
|
+
if (coluna.chavePrimaria)
|
|
58
|
+
traduzir += 'PRIMARY KEY ';
|
|
59
|
+
if (tipos_de_simbolos_1.default.INTEIRO === coluna.tipo) {
|
|
60
|
+
traduzir += `INTEGER `;
|
|
61
|
+
}
|
|
62
|
+
else if (tipos_de_simbolos_1.default.TEXTO === coluna.tipo) {
|
|
63
|
+
const simbolo = coluna.tamanho;
|
|
64
|
+
traduzir += `VARCHAR(${simbolo.literal}) `;
|
|
65
|
+
}
|
|
66
|
+
else if (tipos_de_simbolos_1.default.LOGICO === coluna.tipo)
|
|
67
|
+
traduzir += 'BOOLEAN ';
|
|
68
|
+
if (coluna.nulo)
|
|
69
|
+
traduzir += 'NULL';
|
|
70
|
+
else
|
|
71
|
+
traduzir += 'NOT NULL';
|
|
72
|
+
return traduzir;
|
|
73
|
+
}
|
|
74
|
+
traduzirComandoCriar(comandoCriar) {
|
|
75
|
+
let resultado = `CREATE TABLE ${comandoCriar.nomeEntidade} (`;
|
|
76
|
+
for (const coluna of comandoCriar.colunas) {
|
|
77
|
+
resultado += `${coluna.nomeColuna} ${this.traduzirColuna(coluna)}, `;
|
|
78
|
+
}
|
|
79
|
+
resultado = resultado.slice(0, -2);
|
|
80
|
+
resultado += ')';
|
|
81
|
+
return resultado;
|
|
82
|
+
}
|
|
83
|
+
traduzirComandoExcluir(comandoExcluir) {
|
|
84
|
+
let resultado = 'DELETE FROM ';
|
|
85
|
+
resultado += `${comandoExcluir.tabela} `;
|
|
86
|
+
resultado = resultado.slice(0, -1);
|
|
87
|
+
if (comandoExcluir.condicoes.length > 0) {
|
|
88
|
+
resultado += `\nWHERE `;
|
|
89
|
+
for (const condicao of comandoExcluir.condicoes) {
|
|
90
|
+
resultado += `${condicao.esquerda.lexema} ${this.traduzirOperador(condicao.operador)} ${condicao.direita} AND `;
|
|
91
|
+
}
|
|
92
|
+
resultado = resultado.slice(0, -5);
|
|
93
|
+
}
|
|
94
|
+
return resultado;
|
|
95
|
+
}
|
|
96
|
+
traduzirComandoInserir(comandoInserir) {
|
|
97
|
+
let resultado = 'INSERT INTO ';
|
|
98
|
+
resultado += `${comandoInserir.tabela} (`;
|
|
99
|
+
for (const coluna of comandoInserir.colunas) {
|
|
100
|
+
resultado += `${coluna}, `;
|
|
101
|
+
}
|
|
102
|
+
resultado = resultado.slice(0, -2);
|
|
103
|
+
resultado += `)\nVALUES (`;
|
|
104
|
+
for (const valor of comandoInserir.valores) {
|
|
105
|
+
if (typeof valor.literal === 'string') {
|
|
106
|
+
resultado += `"${valor.literal}", `;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
else if ([tipos_de_simbolos_1.default.VERDADEIRO, tipos_de_simbolos_1.default.FALSO].includes(valor.tipo)) {
|
|
110
|
+
resultado += `${this.traduzirOperador(valor.tipo)}, `;
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
resultado += `${valor.literal}, `;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
resultado = resultado.slice(0, -2);
|
|
118
|
+
resultado += `)`;
|
|
119
|
+
return resultado;
|
|
120
|
+
}
|
|
121
|
+
traduzirComandoSelecionar(comandoSelecionar) {
|
|
122
|
+
let resultado = 'SELECT ';
|
|
123
|
+
// Colunas
|
|
124
|
+
if (comandoSelecionar.tudo) {
|
|
125
|
+
resultado += '*';
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
for (const coluna of comandoSelecionar.colunas) {
|
|
129
|
+
resultado += coluna + ', ';
|
|
130
|
+
}
|
|
131
|
+
resultado = resultado.slice(0, -2);
|
|
132
|
+
}
|
|
133
|
+
resultado += `\nFROM ${comandoSelecionar.tabela}`;
|
|
134
|
+
// Condições
|
|
135
|
+
if (comandoSelecionar.condicoes.length > 0) {
|
|
136
|
+
resultado += '\n WHERE ';
|
|
137
|
+
for (const condicao of comandoSelecionar.condicoes) {
|
|
138
|
+
resultado += `${condicao.esquerda.lexema} ${this.traduzirOperador(condicao.operador)} ${condicao.direita} AND `;
|
|
139
|
+
}
|
|
140
|
+
resultado = resultado.slice(0, -5);
|
|
141
|
+
}
|
|
142
|
+
return resultado;
|
|
143
|
+
}
|
|
144
|
+
traduzir(comandos) {
|
|
145
|
+
let resultado = '';
|
|
146
|
+
for (const comando of comandos.filter((c) => c)) {
|
|
147
|
+
resultado += `${this.dicionarioComandos[comando.constructor.name](comando)} \n`;
|
|
148
|
+
}
|
|
149
|
+
return resultado;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.TradutorSqLite = TradutorSqLite;
|
|
150
153
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../fontes/tradutor/index.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../fontes/tradutor/index.ts"],"names":[],"mappings":";;;;;;AAWA,0FAAgE;AAChE,oCAA2C;AAE3C,MAAa,cAAe,SAAQ,uBAAe;IAAnD;;QA4KI,uBAAkB,GAAG;YACjB,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,IAAI,CAA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,IAAI,CAAC;YAC/B,CAAC;YAED,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;QAED,SAAS,IAAI,UAAU,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAElD,YAAY;QACZ,IAAI,iBAAiB,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzC,SAAS,IAAI,WAAW,CAAC;YACzB,KAAK,MAAM,QAAQ,IAAI,iBAAiB,CAAC,SAAS,EAAE,CAAC;gBACjD,SAAS,IAAI,GACT,QAAQ,CAAC,QAAQ,CAAC,MACtB,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,IACxC,QAAQ,CAAC,OACb,OAAO,CAAC;YACZ,CAAC;YACD,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IAWD,QAAQ,CAAC,QAAmB;QACxB,IAAI,SAAS,GAAG,EAAE,CAAC;QAEnB,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9C,SAAS,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAC7D,OAAO,CACV,KAAK,CAAC;QACX,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAhMD,wCAgMC"}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./fontes/lincones-sqlite";
|
|
1
|
+
export * from "./fontes/lincones-sqlite";
|
package/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./fontes/lincones-sqlite"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./fontes/lincones-sqlite"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designliquido/lincones-sqlite",
|
|
3
3
|
"description": "Implementação de LinConEs para SQLite.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Leonel Sanches da Silva",
|
|
7
7
|
"contributors": [
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"registry": "https://registry.npmjs.org/"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/jest": "^29.
|
|
50
|
-
"@types/node": "^
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
52
|
-
"@typescript-eslint/parser": "^
|
|
49
|
+
"@types/jest": "^29.5.13",
|
|
50
|
+
"@types/node": "^22.7.4",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
|
52
|
+
"@typescript-eslint/parser": "^8.8.0",
|
|
53
53
|
"copyfiles": "^2.4.1",
|
|
54
|
-
"eslint": "^
|
|
55
|
-
"jest": "^29.
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"ts-
|
|
59
|
-
"
|
|
54
|
+
"eslint": "^9.12.0",
|
|
55
|
+
"jest": "^29.7.0",
|
|
56
|
+
"prettier": "^3.3.3",
|
|
57
|
+
"rimraf": "^6.0.1",
|
|
58
|
+
"ts-jest": "^29.2.5",
|
|
59
|
+
"ts-node": "^10.9.2",
|
|
60
|
+
"typescript": "^5.6.2"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"@types/sqlite3": "^3.1.11",
|
|
63
|
-
"prettier": "^2.8.0",
|
|
64
64
|
"sqlite": "^5.1.1",
|
|
65
65
|
"sqlite3": "^5.1.7"
|
|
66
66
|
}
|