@designliquido/delegua-entidades 0.0.1 → 0.0.2

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.
Files changed (279) hide show
  1. package/delegua-modulo.d.ts +112 -0
  2. package/delegua-modulo.d.ts.map +1 -0
  3. package/{delegua-modulo.ts → delegua-modulo.js} +133 -130
  4. package/delegua-modulo.js.map +1 -0
  5. package/fontes/analisador-dicas.d.ts +49 -0
  6. package/fontes/analisador-dicas.d.ts.map +1 -0
  7. package/fontes/{analisador-dicas.ts → analisador-dicas.js} +145 -177
  8. package/fontes/analisador-dicas.js.map +1 -0
  9. package/fontes/cache-consultas.d.ts +39 -0
  10. package/fontes/cache-consultas.d.ts.map +1 -0
  11. package/fontes/{cache-consultas.ts → cache-consultas.js} +98 -122
  12. package/fontes/cache-consultas.js.map +1 -0
  13. package/fontes/carregador-lotes.d.ts +64 -0
  14. package/fontes/carregador-lotes.d.ts.map +1 -0
  15. package/fontes/{carregador-lotes.ts → carregador-lotes.js} +148 -178
  16. package/fontes/carregador-lotes.js.map +1 -0
  17. package/fontes/carregador-preguicoso.d.ts +34 -0
  18. package/fontes/carregador-preguicoso.d.ts.map +1 -0
  19. package/fontes/{carregador-preguicoso.ts → carregador-preguicoso.js} +157 -213
  20. package/fontes/carregador-preguicoso.js.map +1 -0
  21. package/fontes/colecao.d.ts +74 -0
  22. package/fontes/colecao.d.ts.map +1 -0
  23. package/fontes/{colecao.ts → colecao.js} +374 -498
  24. package/fontes/colecao.js.map +1 -0
  25. package/fontes/construtor-consulta.d.ts +129 -0
  26. package/fontes/construtor-consulta.d.ts.map +1 -0
  27. package/fontes/{construtor-consulta.ts → construtor-consulta.js} +446 -583
  28. package/fontes/construtor-consulta.js.map +1 -0
  29. package/fontes/contexto-entidades.d.ts +119 -0
  30. package/fontes/contexto-entidades.d.ts.map +1 -0
  31. package/fontes/{contexto-entidades.ts → contexto-entidades.js} +346 -399
  32. package/fontes/contexto-entidades.js.map +1 -0
  33. package/fontes/detector-n-mais-um.d.ts +87 -0
  34. package/fontes/detector-n-mais-um.d.ts.map +1 -0
  35. package/fontes/{detector-n-mais-um.ts → detector-n-mais-um.js} +225 -268
  36. package/fontes/detector-n-mais-um.js.map +1 -0
  37. package/fontes/entidade.d.ts +82 -0
  38. package/fontes/entidade.d.ts.map +1 -0
  39. package/fontes/{entidade.ts → entidade.js} +467 -597
  40. package/fontes/entidade.js.map +1 -0
  41. package/fontes/erros/erro-concorrencia.d.ts +11 -0
  42. package/fontes/erros/erro-concorrencia.d.ts.map +1 -0
  43. package/fontes/erros/erro-concorrencia.js +18 -0
  44. package/fontes/erros/erro-concorrencia.js.map +1 -0
  45. package/fontes/erros/erro-tabela-nao-encontrada.d.ts +4 -0
  46. package/fontes/erros/erro-tabela-nao-encontrada.d.ts.map +1 -0
  47. package/fontes/erros/erro-tabela-nao-encontrada.js +11 -0
  48. package/fontes/erros/erro-tabela-nao-encontrada.js.map +1 -0
  49. package/fontes/erros/erro-validacao.d.ts +9 -0
  50. package/fontes/erros/erro-validacao.d.ts.map +1 -0
  51. package/fontes/erros/erro-validacao.js +13 -0
  52. package/fontes/erros/erro-validacao.js.map +1 -0
  53. package/fontes/erros/{index.ts → index.d.ts} +4 -3
  54. package/fontes/erros/index.d.ts.map +1 -0
  55. package/fontes/erros/index.js +20 -0
  56. package/fontes/erros/index.js.map +1 -0
  57. package/fontes/gerenciador-cache.d.ts +87 -0
  58. package/fontes/gerenciador-cache.d.ts.map +1 -0
  59. package/fontes/{gerenciador-cache.ts → gerenciador-cache.js} +147 -194
  60. package/fontes/gerenciador-cache.js.map +1 -0
  61. package/fontes/ilc/gerador-definicoes.d.ts +13 -0
  62. package/fontes/ilc/gerador-definicoes.d.ts.map +1 -0
  63. package/fontes/ilc/{gerador-definicoes.ts → gerador-definicoes.js} +96 -145
  64. package/fontes/ilc/gerador-definicoes.js.map +1 -0
  65. package/fontes/ilc/gerador-entidades.d.ts +10 -0
  66. package/fontes/ilc/gerador-entidades.d.ts.map +1 -0
  67. package/fontes/ilc/{gerador-entidades.ts → gerador-entidades.js} +249 -314
  68. package/fontes/ilc/gerador-entidades.js.map +1 -0
  69. package/fontes/ilc/leitor-configuracao.d.ts +32 -0
  70. package/fontes/ilc/leitor-configuracao.d.ts.map +1 -0
  71. package/fontes/ilc/{leitor-configuracao.ts → leitor-configuracao.js} +45 -73
  72. package/fontes/ilc/leitor-configuracao.js.map +1 -0
  73. package/fontes/ilc/migracoes.d.ts +3 -0
  74. package/fontes/ilc/migracoes.d.ts.map +1 -0
  75. package/fontes/ilc/{migracoes.ts → migracoes.js} +184 -230
  76. package/fontes/ilc/migracoes.js.map +1 -0
  77. package/fontes/ilc/semeadura.d.ts +2 -0
  78. package/fontes/ilc/semeadura.d.ts.map +1 -0
  79. package/fontes/ilc/{semeadura.ts → semeadura.js} +50 -63
  80. package/fontes/ilc/semeadura.js.map +1 -0
  81. package/fontes/indicadores-performance/executor-analise-performance.d.ts +80 -0
  82. package/fontes/indicadores-performance/executor-analise-performance.d.ts.map +1 -0
  83. package/fontes/indicadores-performance/{executor-analise-performance.ts → executor-analise-performance.js} +212 -299
  84. package/fontes/indicadores-performance/executor-analise-performance.js.map +1 -0
  85. package/fontes/indicadores-performance/index.d.ts +26 -0
  86. package/fontes/indicadores-performance/index.d.ts.map +1 -0
  87. package/fontes/indicadores-performance/index.js +199 -0
  88. package/fontes/indicadores-performance/index.js.map +1 -0
  89. package/fontes/interfaces-tipos/{analise-n1-interface.ts → analise-n1-interface.d.ts} +13 -13
  90. package/fontes/interfaces-tipos/analise-n1-interface.d.ts.map +1 -0
  91. package/fontes/interfaces-tipos/analise-n1-interface.js +3 -0
  92. package/fontes/interfaces-tipos/analise-n1-interface.js.map +1 -0
  93. package/fontes/interfaces-tipos/{atributo-interface.ts → atributo-interface.d.ts} +30 -29
  94. package/fontes/interfaces-tipos/atributo-interface.d.ts.map +1 -0
  95. package/fontes/interfaces-tipos/atributo-interface.js +3 -0
  96. package/fontes/interfaces-tipos/atributo-interface.js.map +1 -0
  97. package/fontes/interfaces-tipos/{coluna-computada-interface.ts → coluna-computada-interface.d.ts} +16 -15
  98. package/fontes/interfaces-tipos/coluna-computada-interface.d.ts.map +1 -0
  99. package/fontes/interfaces-tipos/coluna-computada-interface.js +3 -0
  100. package/fontes/interfaces-tipos/coluna-computada-interface.js.map +1 -0
  101. package/fontes/interfaces-tipos/{configuracao-banco-dados-interface.ts → configuracao-banco-dados-interface.d.ts} +48 -54
  102. package/fontes/interfaces-tipos/configuracao-banco-dados-interface.d.ts.map +1 -0
  103. package/fontes/interfaces-tipos/configuracao-banco-dados-interface.js +3 -0
  104. package/fontes/interfaces-tipos/configuracao-banco-dados-interface.js.map +1 -0
  105. package/fontes/interfaces-tipos/{entidade-interface.ts → entidade-interface.d.ts} +37 -36
  106. package/fontes/interfaces-tipos/entidade-interface.d.ts.map +1 -0
  107. package/fontes/interfaces-tipos/entidade-interface.js +3 -0
  108. package/fontes/interfaces-tipos/entidade-interface.js.map +1 -0
  109. package/fontes/interfaces-tipos/{ganchos.ts → ganchos.d.ts} +12 -17
  110. package/fontes/interfaces-tipos/ganchos.d.ts.map +1 -0
  111. package/fontes/interfaces-tipos/ganchos.js +3 -0
  112. package/fontes/interfaces-tipos/ganchos.js.map +1 -0
  113. package/fontes/interfaces-tipos/{index.ts → index.d.ts} +17 -16
  114. package/fontes/interfaces-tipos/index.d.ts.map +1 -0
  115. package/fontes/interfaces-tipos/index.js +33 -0
  116. package/fontes/interfaces-tipos/index.js.map +1 -0
  117. package/fontes/interfaces-tipos/{indice-interface.ts → indice-interface.d.ts} +16 -15
  118. package/fontes/interfaces-tipos/indice-interface.d.ts.map +1 -0
  119. package/fontes/interfaces-tipos/indice-interface.js +3 -0
  120. package/fontes/interfaces-tipos/indice-interface.js.map +1 -0
  121. package/fontes/interfaces-tipos/{informacao-consulta-interface.ts → informacao-consulta-interface.d.ts} +12 -11
  122. package/fontes/interfaces-tipos/informacao-consulta-interface.d.ts.map +1 -0
  123. package/fontes/interfaces-tipos/informacao-consulta-interface.js +3 -0
  124. package/fontes/interfaces-tipos/informacao-consulta-interface.js.map +1 -0
  125. package/fontes/interfaces-tipos/{muito-para-muitos-interface.ts → muito-para-muitos-interface.d.ts} +33 -38
  126. package/fontes/interfaces-tipos/muito-para-muitos-interface.d.ts.map +1 -0
  127. package/fontes/interfaces-tipos/muito-para-muitos-interface.js +3 -0
  128. package/fontes/interfaces-tipos/muito-para-muitos-interface.js.map +1 -0
  129. package/fontes/interfaces-tipos/{opcoes-serializacao-interface.ts → opcoes-serializacao-interface.d.ts} +14 -13
  130. package/fontes/interfaces-tipos/opcoes-serializacao-interface.d.ts.map +1 -0
  131. package/fontes/interfaces-tipos/opcoes-serializacao-interface.js +3 -0
  132. package/fontes/interfaces-tipos/opcoes-serializacao-interface.js.map +1 -0
  133. package/fontes/interfaces-tipos/{polimorfico-interface.ts → polimorfico-interface.d.ts} +32 -36
  134. package/fontes/interfaces-tipos/polimorfico-interface.d.ts.map +1 -0
  135. package/fontes/interfaces-tipos/polimorfico-interface.js +3 -0
  136. package/fontes/interfaces-tipos/polimorfico-interface.js.map +1 -0
  137. package/fontes/interfaces-tipos/{relacionamento-interface.ts → relacionamento-interface.d.ts} +23 -24
  138. package/fontes/interfaces-tipos/relacionamento-interface.d.ts.map +1 -0
  139. package/fontes/interfaces-tipos/relacionamento-interface.js +3 -0
  140. package/fontes/interfaces-tipos/relacionamento-interface.js.map +1 -0
  141. package/fontes/interfaces-tipos/{restricao-interface.ts → restricao-interface.d.ts} +14 -13
  142. package/fontes/interfaces-tipos/restricao-interface.d.ts.map +1 -0
  143. package/fontes/interfaces-tipos/restricao-interface.js +3 -0
  144. package/fontes/interfaces-tipos/restricao-interface.js.map +1 -0
  145. package/fontes/interfaces-tipos/{semente-interface.ts → semente-interface.d.ts} +7 -7
  146. package/fontes/interfaces-tipos/semente-interface.d.ts.map +1 -0
  147. package/fontes/interfaces-tipos/semente-interface.js +3 -0
  148. package/fontes/interfaces-tipos/semente-interface.js.map +1 -0
  149. package/fontes/interfaces-tipos/{tabela-interface.ts → tabela-interface.d.ts} +12 -12
  150. package/fontes/interfaces-tipos/tabela-interface.d.ts.map +1 -0
  151. package/fontes/interfaces-tipos/tabela-interface.js +3 -0
  152. package/fontes/interfaces-tipos/tabela-interface.js.map +1 -0
  153. package/fontes/interfaces-tipos/{transacao-interface.ts → transacao-interface.d.ts} +35 -40
  154. package/fontes/interfaces-tipos/transacao-interface.d.ts.map +1 -0
  155. package/fontes/interfaces-tipos/transacao-interface.js +3 -0
  156. package/fontes/interfaces-tipos/transacao-interface.js.map +1 -0
  157. package/fontes/migracoes/executor-migracoes.d.ts +14 -0
  158. package/fontes/migracoes/executor-migracoes.d.ts.map +1 -0
  159. package/fontes/migracoes/executor-migracoes.js +177 -0
  160. package/fontes/migracoes/executor-migracoes.js.map +1 -0
  161. package/fontes/migracoes/gerador-migracoes.d.ts +15 -0
  162. package/fontes/migracoes/gerador-migracoes.d.ts.map +1 -0
  163. package/fontes/migracoes/gerador-migracoes.js +108 -0
  164. package/fontes/migracoes/gerador-migracoes.js.map +1 -0
  165. package/fontes/migracoes/migracao.d.ts +35 -0
  166. package/fontes/migracoes/migracao.d.ts.map +1 -0
  167. package/fontes/migracoes/migracao.js +66 -0
  168. package/fontes/migracoes/migracao.js.map +1 -0
  169. package/fontes/migracoes/semeador.d.ts +18 -0
  170. package/fontes/migracoes/semeador.d.ts.map +1 -0
  171. package/fontes/migracoes/semeador.js +109 -0
  172. package/fontes/migracoes/semeador.js.map +1 -0
  173. package/fontes/rastreador-mudancas.d.ts +27 -0
  174. package/fontes/rastreador-mudancas.d.ts.map +1 -0
  175. package/fontes/{rastreador-mudancas.ts → rastreador-mudancas.js} +94 -116
  176. package/fontes/rastreador-mudancas.js.map +1 -0
  177. package/fontes/relacionamento.d.ts +11 -0
  178. package/fontes/relacionamento.d.ts.map +1 -0
  179. package/fontes/relacionamento.js +15 -0
  180. package/fontes/relacionamento.js.map +1 -0
  181. package/fontes/roteador-bancos.d.ts +50 -0
  182. package/fontes/roteador-bancos.d.ts.map +1 -0
  183. package/fontes/{roteador-bancos.ts → roteador-bancos.js} +90 -101
  184. package/fontes/roteador-bancos.js.map +1 -0
  185. package/fontes/serializador.d.ts +46 -0
  186. package/fontes/serializador.d.ts.map +1 -0
  187. package/fontes/{serializador.ts → serializador.js} +79 -109
  188. package/fontes/serializador.js.map +1 -0
  189. package/fontes/taquigrafia.d.ts +41 -0
  190. package/fontes/taquigrafia.d.ts.map +1 -0
  191. package/fontes/{taquigrafia.ts → taquigrafia.js} +96 -112
  192. package/fontes/taquigrafia.js.map +1 -0
  193. package/fontes/{tipos.ts → tipos.d.ts} +3 -3
  194. package/fontes/tipos.d.ts.map +1 -0
  195. package/fontes/tipos.js +3 -0
  196. package/fontes/tipos.js.map +1 -0
  197. package/fontes/transacao.d.ts +81 -0
  198. package/fontes/transacao.d.ts.map +1 -0
  199. package/fontes/{transacao.ts → transacao.js} +243 -287
  200. package/fontes/transacao.js.map +1 -0
  201. package/fontes/validacoes/validador.d.ts +19 -0
  202. package/fontes/validacoes/validador.d.ts.map +1 -0
  203. package/fontes/validacoes/{validador.ts → validador.js} +157 -180
  204. package/fontes/validacoes/validador.js.map +1 -0
  205. package/{index.ts → index.d.ts} +37 -44
  206. package/index.d.ts.map +1 -0
  207. package/index.js +61 -0
  208. package/index.js.map +1 -0
  209. package/package.json +1 -1
  210. package/.editorconfig +0 -14
  211. package/.eslintrc.json +0 -15
  212. package/.vscode/launch.json +0 -21
  213. package/.vscode/settings.json +0 -5
  214. package/.vscode/tasks.json +0 -14
  215. package/LICENSE +0 -21
  216. package/analise-lacunas.md +0 -1153
  217. package/babel.config.js +0 -6
  218. package/dados/usuario.delegua +0 -5
  219. package/definicoes/migracao.delegua +0 -70
  220. package/definicoes/modelo.delegua +0 -45
  221. package/fontes/erros/erro-concorrencia.ts +0 -15
  222. package/fontes/erros/erro-tabela-nao-encontrada.ts +0 -6
  223. package/fontes/erros/erro-validacao.ts +0 -15
  224. package/fontes/ilc/README.md +0 -169
  225. package/fontes/ilc/manifesto-definicoes.json +0 -162
  226. package/fontes/indicadores-performance/index.ts +0 -272
  227. package/fontes/relacionamento.ts +0 -26
  228. package/jest.config.js +0 -9
  229. package/testes/analisador-dicas.test.ts +0 -263
  230. package/testes/atualinsercao.test.ts +0 -78
  231. package/testes/auxiliar/boneco-tecnologia.ts +0 -220
  232. package/testes/cache/cache-consultas.test.ts +0 -140
  233. package/testes/cache/cache.test.ts +0 -377
  234. package/testes/cargas/carregador-lote.test.ts +0 -236
  235. package/testes/cargas/carregamento-antecipado.test.ts +0 -322
  236. package/testes/cargas/carregamento-preguicoso.test.ts +0 -357
  237. package/testes/carimbos-de-tempo.test.ts +0 -144
  238. package/testes/cascata.test.ts +0 -568
  239. package/testes/colecao.test.ts +0 -208
  240. package/testes/colunas-computadas.test.ts +0 -104
  241. package/testes/concorrencia-otimista.test.ts +0 -341
  242. package/testes/construtor-consulta.test.ts +0 -388
  243. package/testes/contexto-entidades.test.ts +0 -140
  244. package/testes/deteccao-n-mais-um.test.ts +0 -269
  245. package/testes/entidade.test.ts +0 -175
  246. package/testes/exclusao-logica.test.ts +0 -581
  247. package/testes/executor-benchmarks.test.ts +0 -343
  248. package/testes/ganchos.test.ts +0 -190
  249. package/testes/indices.test.ts +0 -220
  250. package/testes/migracoes.test.ts +0 -345
  251. package/testes/multiplos-bancos.test.ts +0 -266
  252. package/testes/operacoes-lote.test.ts +0 -405
  253. package/testes/operadores/operador-diferente.test.ts +0 -59
  254. package/testes/operadores/operador-entre.test.ts +0 -70
  255. package/testes/operadores/operador-nao-em.test.ts +0 -59
  256. package/testes/operadores/operadores-combinacoes.test.ts +0 -100
  257. package/testes/operadores/operadores-nulos.test.ts +0 -84
  258. package/testes/operadores/operadores-texto.test.ts +0 -103
  259. package/testes/polimorficos.test.ts +0 -311
  260. package/testes/rastreador-mudancas.test.ts +0 -291
  261. package/testes/relacionamentos/muitos-para-muitos.test.ts +0 -244
  262. package/testes/relacionamentos/relacionamentos.test.ts +0 -282
  263. package/testes/restricoes/chaves-compostas.test.ts +0 -185
  264. package/testes/restricoes/restricoes-checagem.test.ts +0 -296
  265. package/testes/semeador.test.ts +0 -90
  266. package/testes/serializacao.test.ts +0 -606
  267. package/testes/taquigrafia.test.ts +0 -94
  268. package/testes/transacoes/pontos-de-confirmacao.test.ts +0 -398
  269. package/testes/transacoes/transacoes.test.ts +0 -210
  270. package/testes/validacoes/novos-validadores.test.ts +0 -453
  271. package/testes/validacoes/validador-basico.test.ts +0 -228
  272. package/testes/validacoes/validador-customizado.test.ts +0 -121
  273. package/testes/validacoes/validador-erro.test.ts +0 -15
  274. package/testes/validacoes/validador-formato.test.ts +0 -224
  275. package/testes/validacoes/validador-integracao.test.ts +0 -108
  276. package/testes/validacoes/validador-numerico.test.ts +0 -132
  277. package/testes/valores-padrao.test.ts +0 -265
  278. package/tsconfig.json +0 -18
  279. /package/{readme.md → README.md} +0 -0
@@ -0,0 +1,112 @@
1
+ import { ContextoEntidades } from './fontes/contexto-entidades';
2
+ import { Colecao } from './fontes/colecao';
3
+ export declare const DeleguaModuloEntidades: {
4
+ Contexto: {
5
+ implementacao: typeof ContextoEntidades;
6
+ propriedades: {};
7
+ metodos: {
8
+ colecao: {
9
+ tipoRetorno: string;
10
+ argumentos: {
11
+ nome: string;
12
+ tipo: string;
13
+ }[];
14
+ };
15
+ iniciar: {
16
+ tipoRetorno: string;
17
+ argumentos: {
18
+ nome: string;
19
+ tipo: string;
20
+ }[];
21
+ };
22
+ fechar: {
23
+ tipoRetorno: string;
24
+ argumentos: any[];
25
+ };
26
+ registrarColecao: {
27
+ tipoRetorno: string;
28
+ argumentos: {
29
+ nome: string;
30
+ tipo: string;
31
+ }[];
32
+ };
33
+ salvarMudancas: {
34
+ tipoRetorno: string;
35
+ argumentos: any[];
36
+ };
37
+ iniciarTransacao: {
38
+ tipoRetorno: string;
39
+ argumentos: any[];
40
+ };
41
+ confirmarTransacao: {
42
+ tipoRetorno: string;
43
+ argumentos: any[];
44
+ };
45
+ reverterTransacao: {
46
+ tipoRetorno: string;
47
+ argumentos: any[];
48
+ };
49
+ };
50
+ };
51
+ Colecao: {
52
+ implementacao: typeof Colecao;
53
+ propriedades: {};
54
+ metodos: {
55
+ todos: {
56
+ tipoRetorno: string;
57
+ argumentos: any[];
58
+ };
59
+ buscarTodos: {
60
+ tipoRetorno: string;
61
+ argumentos: any[];
62
+ };
63
+ buscarPorId: {
64
+ tipoRetorno: string;
65
+ argumentos: {
66
+ nome: string;
67
+ tipo: string;
68
+ }[];
69
+ };
70
+ salvar: {
71
+ tipoRetorno: string;
72
+ argumentos: {
73
+ nome: string;
74
+ tipo: string;
75
+ }[];
76
+ };
77
+ modificar: {
78
+ tipoRetorno: string;
79
+ argumentos: {
80
+ nome: string;
81
+ tipo: string;
82
+ }[];
83
+ };
84
+ remover: {
85
+ tipoRetorno: string;
86
+ argumentos: {
87
+ nome: string;
88
+ tipo: string;
89
+ }[];
90
+ };
91
+ inserir: {
92
+ tipoRetorno: string;
93
+ argumentos: {
94
+ nome: string;
95
+ tipo: string;
96
+ }[];
97
+ };
98
+ inserirVarios: {
99
+ tipoRetorno: string;
100
+ argumentos: {
101
+ nome: string;
102
+ tipo: string;
103
+ }[];
104
+ };
105
+ consulta: {
106
+ tipoRetorno: string;
107
+ argumentos: any[];
108
+ };
109
+ };
110
+ };
111
+ };
112
+ //# sourceMappingURL=delegua-modulo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegua-modulo.d.ts","sourceRoot":"","sources":["../delegua-modulo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HlC,CAAC"}
@@ -1,130 +1,133 @@
1
- import { ContextoEntidades } from './fontes/contexto-entidades';
2
- import { Colecao } from './fontes/colecao';
3
-
4
- export const DeleguaModuloEntidades = {
5
- Contexto: {
6
- implementacao: ContextoEntidades,
7
- propriedades: {},
8
- metodos: {
9
- colecao: {
10
- tipoRetorno: 'Colecao',
11
- argumentos: [
12
- {
13
- nome: 'tipoModelo',
14
- tipo: 'qualquer'
15
- }
16
- ]
17
- },
18
- iniciar: {
19
- tipoRetorno: 'vazio',
20
- argumentos: [
21
- {
22
- nome: 'caminho',
23
- tipo: 'texto'
24
- }
25
- ]
26
- },
27
- fechar: {
28
- tipoRetorno: 'vazio',
29
- argumentos: []
30
- },
31
- registrarColecao: {
32
- tipoRetorno: 'qualquer',
33
- argumentos: [
34
- {
35
- nome: 'entidade',
36
- tipo: 'qualquer'
37
- }
38
- ]
39
- },
40
- salvarMudancas: {
41
- tipoRetorno: 'vazio',
42
- argumentos: []
43
- },
44
- iniciarTransacao: {
45
- tipoRetorno: 'qualquer',
46
- argumentos: []
47
- },
48
- confirmarTransacao: {
49
- tipoRetorno: 'vazio',
50
- argumentos: []
51
- },
52
- reverterTransacao: {
53
- tipoRetorno: 'vazio',
54
- argumentos: []
55
- }
56
- }
57
- },
58
- Colecao: {
59
- implementacao: Colecao,
60
- propriedades: {},
61
- metodos: {
62
- todos: {
63
- tipoRetorno: 'qualquer',
64
- argumentos: []
65
- },
66
- buscarTodos: {
67
- tipoRetorno: 'qualquer',
68
- argumentos: []
69
- },
70
- buscarPorId: {
71
- tipoRetorno: 'qualquer',
72
- argumentos: [
73
- {
74
- nome: 'valorId',
75
- tipo: 'qualquer'
76
- }
77
- ]
78
- },
79
- salvar: {
80
- tipoRetorno: 'qualquer',
81
- argumentos: [
82
- {
83
- nome: 'registro',
84
- tipo: 'qualquer'
85
- }
86
- ]
87
- },
88
- modificar: {
89
- tipoRetorno: 'qualquer',
90
- argumentos: [
91
- {
92
- nome: 'registro',
93
- tipo: 'qualquer'
94
- }
95
- ]
96
- },
97
- remover: {
98
- tipoRetorno: 'qualquer',
99
- argumentos: [
100
- {
101
- nome: 'registro',
102
- tipo: 'qualquer'
103
- }
104
- ]
105
- },
106
- inserir: {
107
- tipoRetorno: 'qualquer',
108
- argumentos: [
109
- {
110
- nome: 'registro',
111
- tipo: 'qualquer'
112
- }
113
- ]
114
- },
115
- inserirVarios: {
116
- tipoRetorno: 'qualquer',
117
- argumentos: [
118
- {
119
- nome: 'registros',
120
- tipo: 'qualquer'
121
- }
122
- ]
123
- },
124
- consulta: {
125
- tipoRetorno: 'qualquer',
126
- argumentos: []
127
- }
128
- }
129
- }
130
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleguaModuloEntidades = void 0;
4
+ const contexto_entidades_1 = require("./fontes/contexto-entidades");
5
+ const colecao_1 = require("./fontes/colecao");
6
+ exports.DeleguaModuloEntidades = {
7
+ Contexto: {
8
+ implementacao: contexto_entidades_1.ContextoEntidades,
9
+ propriedades: {},
10
+ metodos: {
11
+ colecao: {
12
+ tipoRetorno: 'Colecao',
13
+ argumentos: [
14
+ {
15
+ nome: 'tipoModelo',
16
+ tipo: 'qualquer'
17
+ }
18
+ ]
19
+ },
20
+ iniciar: {
21
+ tipoRetorno: 'vazio',
22
+ argumentos: [
23
+ {
24
+ nome: 'caminho',
25
+ tipo: 'texto'
26
+ }
27
+ ]
28
+ },
29
+ fechar: {
30
+ tipoRetorno: 'vazio',
31
+ argumentos: []
32
+ },
33
+ registrarColecao: {
34
+ tipoRetorno: 'qualquer',
35
+ argumentos: [
36
+ {
37
+ nome: 'entidade',
38
+ tipo: 'qualquer'
39
+ }
40
+ ]
41
+ },
42
+ salvarMudancas: {
43
+ tipoRetorno: 'vazio',
44
+ argumentos: []
45
+ },
46
+ iniciarTransacao: {
47
+ tipoRetorno: 'qualquer',
48
+ argumentos: []
49
+ },
50
+ confirmarTransacao: {
51
+ tipoRetorno: 'vazio',
52
+ argumentos: []
53
+ },
54
+ reverterTransacao: {
55
+ tipoRetorno: 'vazio',
56
+ argumentos: []
57
+ }
58
+ }
59
+ },
60
+ Colecao: {
61
+ implementacao: colecao_1.Colecao,
62
+ propriedades: {},
63
+ metodos: {
64
+ todos: {
65
+ tipoRetorno: 'qualquer',
66
+ argumentos: []
67
+ },
68
+ buscarTodos: {
69
+ tipoRetorno: 'qualquer',
70
+ argumentos: []
71
+ },
72
+ buscarPorId: {
73
+ tipoRetorno: 'qualquer',
74
+ argumentos: [
75
+ {
76
+ nome: 'valorId',
77
+ tipo: 'qualquer'
78
+ }
79
+ ]
80
+ },
81
+ salvar: {
82
+ tipoRetorno: 'qualquer',
83
+ argumentos: [
84
+ {
85
+ nome: 'registro',
86
+ tipo: 'qualquer'
87
+ }
88
+ ]
89
+ },
90
+ modificar: {
91
+ tipoRetorno: 'qualquer',
92
+ argumentos: [
93
+ {
94
+ nome: 'registro',
95
+ tipo: 'qualquer'
96
+ }
97
+ ]
98
+ },
99
+ remover: {
100
+ tipoRetorno: 'qualquer',
101
+ argumentos: [
102
+ {
103
+ nome: 'registro',
104
+ tipo: 'qualquer'
105
+ }
106
+ ]
107
+ },
108
+ inserir: {
109
+ tipoRetorno: 'qualquer',
110
+ argumentos: [
111
+ {
112
+ nome: 'registro',
113
+ tipo: 'qualquer'
114
+ }
115
+ ]
116
+ },
117
+ inserirVarios: {
118
+ tipoRetorno: 'qualquer',
119
+ argumentos: [
120
+ {
121
+ nome: 'registros',
122
+ tipo: 'qualquer'
123
+ }
124
+ ]
125
+ },
126
+ consulta: {
127
+ tipoRetorno: 'qualquer',
128
+ argumentos: []
129
+ }
130
+ }
131
+ }
132
+ };
133
+ //# sourceMappingURL=delegua-modulo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegua-modulo.js","sourceRoot":"","sources":["../delegua-modulo.ts"],"names":[],"mappings":";;;AAAA,oEAAgE;AAChE,8CAA2C;AAE9B,QAAA,sBAAsB,GAAG;IAClC,QAAQ,EAAE;QACN,aAAa,EAAE,sCAAiB;QAChC,YAAY,EAAE,EAAE;QAChB,OAAO,EAAE;YACL,OAAO,EAAE;gBACL,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,OAAO,EAAE;gBACL,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,OAAO;qBAChB;iBACJ;aACJ;YACD,MAAM,EAAE;gBACJ,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE,EAAE;aACjB;YACD,gBAAgB,EAAE;gBACd,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,cAAc,EAAE;gBACZ,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE,EAAE;aACjB;YACD,gBAAgB,EAAE;gBACd,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE,EAAE;aACjB;YACD,kBAAkB,EAAE;gBAChB,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE,EAAE;aACjB;YACD,iBAAiB,EAAE;gBACf,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE,EAAE;aACjB;SACJ;KACJ;IACD,OAAO,EAAE;QACL,aAAa,EAAE,iBAAO;QACtB,YAAY,EAAE,EAAE;QAChB,OAAO,EAAE;YACL,KAAK,EAAE;gBACH,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE,EAAE;aACjB;YACD,WAAW,EAAE;gBACT,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE,EAAE;aACjB;YACD,WAAW,EAAE;gBACT,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,MAAM,EAAE;gBACJ,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,SAAS,EAAE;gBACP,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,OAAO,EAAE;gBACL,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,OAAO,EAAE;gBACL,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,aAAa,EAAE;gBACX,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,UAAU;qBACnB;iBACJ;aACJ;YACD,QAAQ,EAAE;gBACN,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE,EAAE;aACjB;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Sistema de Dicas de Otimização
3
+ *
4
+ * Fornece recomendações para otimizar consultas baseado em padrões detectados.
5
+ */
6
+ export declare enum TipoDica {
7
+ INDICE_AUSENTE = "INDICE_AUSENTE",
8
+ N_MAIS_1 = "N_MAIS_1",
9
+ SELECAO_DESNECESSARIA = "SELECAO_DESNECESSARIA",
10
+ JUNCAO_REDUNDANTE = "JUNCAO_REDUNDANTE",
11
+ PAGINACAO_FALTANTE = "PAGINACAO_FALTANTE",
12
+ ORDEM_INEFICIENTE = "ORDEM_INEFICIENTE",
13
+ USAR_CARGA_ANTECIPADA = "USAR_CARGA_ANTECIPADA",
14
+ USAR_CARGA_EM_LOTE = "USAR_CARGA_EM_LOTE",
15
+ CACHE_RECOMENDADA = "CACHE_RECOMENDADA"
16
+ }
17
+ export declare enum NivelSeveridade {
18
+ CRITICO = "CRITICO",
19
+ ALTO = "ALTO",
20
+ MEDIO = "MEDIO",
21
+ BAIXO = "BAIXO",
22
+ INFO = "INFO"
23
+ }
24
+ export interface Dica {
25
+ tipo: TipoDica;
26
+ severidade: NivelSeveridade;
27
+ mensagem: string;
28
+ sugestao: string;
29
+ metrica?: {
30
+ nome: string;
31
+ valor: number;
32
+ unidade: string;
33
+ };
34
+ }
35
+ export declare class AnalisadorDicas {
36
+ /**
37
+ * Analisa consulta e retorna dicas de otimização
38
+ */
39
+ static analisar(sql: string, metricasExecucao?: {
40
+ tempoMs: number;
41
+ linhas: number;
42
+ contagemJuncoes: number;
43
+ }): Dica[];
44
+ /**
45
+ * Formata dicas para exibição
46
+ */
47
+ static formatarDicas(dicas: Dica[]): string;
48
+ }
49
+ //# sourceMappingURL=analisador-dicas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analisador-dicas.d.ts","sourceRoot":"","sources":["../../fontes/analisador-dicas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oBAAY,QAAQ;IAChB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,qBAAqB,0BAA0B;IAC/C,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,qBAAqB,0BAA0B;IAC/C,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;CAC1C;AAED,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;AAED,qBAAa,eAAe;IACxB;;OAEG;IACH,MAAM,CAAC,QAAQ,CACX,GAAG,EAAE,MAAM,EACX,gBAAgB,CAAC,EAAE;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,MAAM,CAAC;KAC3B,GACF,IAAI,EAAE;IAoET;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM;CAwD9C"}