myorm_pg 1.1.7 → 1.1.8

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 +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -147,7 +147,7 @@ export default class Context extends PGDBContext
147
147
 
148
148
  ```typescript
149
149
 
150
- var context = new Context(PGDBManager.Build("localhost", 5434, "test_db", "supervisor", "sup"));
150
+ var context = new Context(PGDBManager.Build("localhost", 5432, "test_db", "username", "password"));
151
151
 
152
152
  await context.UpdateDatabaseAsync();
153
153
 
@@ -161,11 +161,11 @@ await context.UpdateDatabaseAsync();
161
161
  let person = new Person();
162
162
  person.Name = "Adriano";
163
163
  person.Email = "adriano@test.com";
164
- person.Birth = new Date(1992,4,23);
164
+ person.Birth = new Date(1970,01,01);
165
165
  person.Documents = [123,4,5,678,9];
166
- person.PhoneNumbers = ['+55(12)98206-8255'];
166
+ person.PhoneNumbers = ['+55(55)1234-5678'];
167
167
 
168
- await context.Persons.AddAsync(adriano);
168
+ await context.Persons.AddAsync(person);
169
169
 
170
170
  ```
171
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myorm_pg",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "A ORM writen in typescript for postgres",
5
5
  "main": "Index.js",
6
6
  "types": "./lib/Index.d.ts",