Package Exports
- lambdaorm-cli
- lambdaorm-cli/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lambdaorm-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 -gCLI
| Command | Description | |
|---|---|---|
| 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
In this laboratory we will see:
- How to use the Lambdaorm-cli commands
- how to create a project that uses lambda ORM
- How to define a schema
- how to run a bulckInsert from a file
- how to export data from a schema
- how to import data into a schema from a previously generated export file
Lab 02
In this laboratory we will see:
- how to create a project that uses lambda ORM
- How to define a schema
- how to extend entities using abstract entities
- How to insert data from a file.
- how to run queries from cli to perform different types of queries
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
Lab 04
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 define a schema that works with entities in different databases
- how to run a bulkinsert on entities in different databases
- how to export and import entity data in different databases