omni-postgres
v2.0.0
Published
--- OmniORM PostgreSQL plugin
Downloads
5
Maintainers
Readme
Omni ORM - PostgreSQL
OmniORM PostgreSQL plugin
WARNING: It was meant to be used with Typescript. While it is possible to use with plain JS it is not advised and will be hard to use.
For Typescript, you need to have these two options turned on in tsconfig.json
:
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true
}
}
Depends on omni-orm
, pg
.
WARNING: API is not yet final
Requirements
Technically it should have no requirements.
Installation
For yarn:
yarn add omni-postgres
For npm:
npm i omni-postgres
Docs
Imports:
// ES6 JS/Typescript style
import { PostgresRepository } from 'omni-postgres';
// require
const { PostgresRepository } = require('omni-postgres');