ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
It would be tremendously helpful if TypeORM included a shell as part of the CLI commands, just like Laravel's artisan and Django's shell command. It would load ts-node and TypeORM with an already established connection and all the entities/repositories loaded.
The command would be: typeorm shell.
Right now whenever I need to test something quickly I open ts-node and do something like this:
import { createConnection, getConnectionOptions } from 'typeorm';
var con;
(async() => {
const connectionOptions = await getConnectionOptions();
con = await createConnection(connectionOptions);
})();
const userRep = con.getRepository('User') ; // The repository I want to use.
Issue type:
[ ] question [ ] bug report [x] feature request [ ] documentation issue
It would be tremendously helpful if TypeORM included a shell as part of the CLI commands, just like Laravel's artisan and Django's shell command. It would load
ts-node
and TypeORM with an already established connection and all the entities/repositories loaded.The command would be:
typeorm shell
.Right now whenever I need to test something quickly I open ts-node and do something like this: