myorm_pg 1.1.6 → 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.
- package/README.md +4 -4
- package/package.json +3 -3
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",
|
|
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(
|
|
164
|
+
person.Birth = new Date(1970,01,01);
|
|
165
165
|
person.Documents = [123,4,5,678,9];
|
|
166
|
-
person.PhoneNumbers = ['+55(
|
|
166
|
+
person.PhoneNumbers = ['+55(55)1234-5678'];
|
|
167
167
|
|
|
168
|
-
await context.Persons.AddAsync(
|
|
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.
|
|
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",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"database"
|
|
19
19
|
],
|
|
20
20
|
"author": "adrinao.marino1992@gmail.com",
|
|
21
|
-
"repository": "https://github.com/adrianomarino1992/
|
|
22
|
-
"homepage": "https://github.com/adrianomarino1992/
|
|
21
|
+
"repository": "https://github.com/adrianomarino1992/myorm_pg.git",
|
|
22
|
+
"homepage": "https://github.com/adrianomarino1992/myorm_pg#readme",
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"pg": "^8.10.0",
|