2.4.0 • Published 9 months ago
siimpleorm v2.4.0
An simple object relational mapper project.
Install
yarn add siimpleorm
or
npm install siimpleorm
or
pnpm install siimpleorm
.env
SIMPLE_CLIENT="mysql"
SIMPLE_HOST="localhost"
SIMPLE_USER="root"
SIMPLE_PASSWORD=123456
SIMPLE_DATABASE="example"
Example Entity
@Table('users')
export default class User extends Entity {
public id?: string;
public name: string;
public age: string;
}
Example Controller
const controller = {
async index(request, response) {
try {
const row = await client.findAll();
return res.status(200).json(row);
} catch (error) {
return res.status(400).json(error.message);
}
},
};
export default controller;
Author
👤 Daniel Murilo Vaz
- Website: https://www.daniellvaz.com.br
- Twitter: @daniellmurilo
- Github: @daniellvaz
- LinkedIn: @daniellvaz
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator
2.4.0
9 months ago
3.3.0
2 years ago
3.2.0
2 years ago
3.1.0
2 years ago
3.0.0
2 years ago
2.2.0
2 years ago
2.1.0
2 years ago
2.1.0-0
2 years ago
1.4.0-0
2 years ago
1.2.0-0
3 years ago
1.8.0-0
2 years ago
1.7.0-0
2 years ago
1.3.0-0
2 years ago
1.10.0-0
2 years ago
1.5.0-0
2 years ago
1.9.0-0
2 years ago
2.0.0
2 years ago
1.6.0-0
2 years ago
1.2.0
3 years ago
1.0.1
3 years ago
1.1.0
3 years ago
1.1.0-0
3 years ago
1.0.0
3 years ago