zormz 1.0.1 → 1.1.0

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 (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # ZORMZ
2
2
 
3
3
  Un ORM ligero escrito en TypeScript para MySQL y PostgreSQL, diseñado para ser simple, rápido y extensible.
4
+ por ahora solo es posible conectarse a una base de datos.
4
5
 
5
6
  ---
6
7
 
@@ -92,6 +93,24 @@ getConexion("pg",conexionPg);
92
93
  ```
93
94
  ---
94
95
 
96
+ ## Definir tablas para uso dev
97
+ * Puede exportarse como una constante para programarlo y guiarnos facilmente
98
+ ### defineTable
99
+ * `export const productosPrueba = defineTable("productosPrueba",{`
100
+ * `id:"id",`
101
+ * `nombre:"nombre",`
102
+ * `descripcion:"descripcion"`
103
+ * `});`
104
+ ---
105
+
106
+ ## Ejemplo: definicion de tabla
107
+
108
+ ```ts
109
+ const response = await DB.Insert(productosPrueba(),
110
+ [productosPrueba.nombre,productosPrueba.descripcion]).Values(['yunno','magic wind']).execute();
111
+ ```
112
+ ---
113
+
95
114
  ## Métodos disponibles
96
115
 
97
116
  ### **Select**
@@ -169,6 +188,10 @@ pruebaData().catch((e) => {
169
188
 
170
189
  ---
171
190
 
191
+
192
+
172
193
  ## 📄 Licencia
173
194
 
174
195
  ISC © Yukio-kayaba
196
+
197
+ [![GitHub](https://img.shields.io/badge/GitHub-Follow%20me-black?logo=github)](https://github.com/yukio-kayaba/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zormz",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC",