typeorm-regatta package:
Connection Details
Connection parameters will be defined as follows:Example Appliaction
To help you get acquainted with TypeORM on Regatta, we’ve provided a simple code example below.This application demonstrates common tasks such as defining entities, initializing a
DataSource, inserting data, querying, updating, deleting, and cleaning up schema.
Project Structure
Create the following folder structure:Example Code
Create the main program and save it as:src/typeorm_example.ts
TypeScript Configuration
Createtsconfig.json in the project root:
Package Setup
Create apackage.json in the project root:
This
package.json assumes you already downloaded the Regatta TypeORM package and the Node.js driver, and have them available on your local environment.Please ensure that you update the package.json file with the correct paths to the downloaded .tgz files before proceeding.