Lambda ORM
IMPORTANT: the library is in an Alpha version!!!
Installation
Install the package globally to use the CLI commands to help you create and maintain projects
npm install lambdaorm-cli -g
CLI
| version | Prints lambdaorm version this project uses. | more info |
| init | Generates lambdaorm project structure. | more info |
| update | update model, packages and project structure. | more info |
| sync | Syncronize database. | more info |
| run | Run an expression lambda or return information | more info |
| export | Export data from a database | more info |
| import | Import data from file to database | more info |
| drop | Removes all database objects but not the database. | more info |
Documentation
Labs
Lab 01
The goal of this lab is to use the Lambdaorm-cli commands
source code
Lab 02
In this laboratory we will see:
- How to insert data from a file to more than one table.
- how to extend entities using abstract entities
- how to run queries from cli to perform different types of queries
source code
Lab 03
In this laboratory we will see:
- How to insert data from a file to more than one table.
- how to extend entities using abstract entities
- how to extend a schema to create a new one, overwriting the mapping
- how to work with two schemas and databases that share the same model
- how to use imported data from one database to import it into another
source code