myorm_pg 1.0.5 → 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.
- package/README.md +3 -6
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -12,10 +12,7 @@ npm install myorm_pg
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
|
-
|
|
16
|
-
After that we need create a class "Context" that will extends the abstract class __PGDBContext__.
|
|
17
|
-
After that, we need to create all PGDBSets<T> that will need to work with ours mapped types.
|
|
18
|
-
Finally, in the application start, we need call the method __PGDBContext.UpdateDatabaseAsync()__.
|
|
15
|
+
This ORM is based on https://www.nuget.org/packages/Adr.MyORMForPostgreSQL for .NET. The usage is similar.
|
|
19
16
|
|
|
20
17
|
### ./entities/Person.ts
|
|
21
18
|
|
|
@@ -127,8 +124,8 @@ export class Message
|
|
|
127
124
|
|
|
128
125
|
```typescript
|
|
129
126
|
import { PGDBManager, PGDBContext, PGDBSet} from 'myorm_pg';
|
|
130
|
-
import { Message } from './Message';
|
|
131
|
-
import { Person } from './Person';
|
|
127
|
+
import { Message } from './entities/Message';
|
|
128
|
+
import { Person } from './entities/Person';
|
|
132
129
|
|
|
133
130
|
|
|
134
131
|
export default class Context extends PGDBContext
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myorm_pg",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A ORM writen in typescript for postgres",
|
|
5
5
|
"main": "Index.js",
|
|
6
6
|
"types": "./lib/Index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"./lib"
|
|
8
|
+
"./lib",
|
|
9
|
+
"README.md"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"test": "jest"
|