Docs available at unicoderns.com
This is a typescript light layer package that allows you to manage and do queries to the DB in an easier way, even without SQL knowledge.
-
Install the library:
npm install -s @unicoderns/orm
-
Create a model.
-
Create a connection as the following example:
import * as users from './dummy/usersModel';
import { Engines, Drivers } from '@unicoderns/orm';
let usersTable: users.Users;
usersTable = new users.Users({
debug: false,
engine: Engines.MySQL,
driver: Drivers.Native,
});
- Use the available queries.
Do you have a bug or a feature request? Please first check if the issue you found hasn´t been solved yet here. If you want to open a bug or request a new feature, please refer to our contributing guidelines and open your request here.
If you want to be part of this amazing project, please read through our contributing guidelines to know the process you should follow. The community will be glad to receive your contribution.
Stay in touch with all members of the community and get updates about ORM's development. Follow us on twitter.
Code and documentation Copyright 2018–2020 to Contributors and Unicoderns S.A. Code released under the MIT License.