cloud-sql-nodejs-connector
A JavaScript library for connecting securely to your Cloud SQL instances (by GoogleCloudPlatform)
TypeORM
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. (by typeorm)
cloud-sql-nodejs-connector | TypeORM | |
---|---|---|
1 | 165 | |
76 | 34,768 | |
- | 1.2% | |
8.2 | 8.6 | |
9 days ago | 2 days ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cloud-sql-nodejs-connector
Posts with mentions or reviews of cloud-sql-nodejs-connector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-09.
-
Deep Dive into Google Cloud SQL Connector for Node.js
Source: https://github.com/GoogleCloudPlatform/cloud-sql-nodejs-connector
TypeORM
Posts with mentions or reviews of TypeORM.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-01-15.
-
Custom builder for Angular: My way
In my project I also use TypeORM with plugin for NestJS. To do this I needed to add custom options for esbuild. I implemented a feature similar to custom-esbuild to allow users to add their own plugins to the build.
-
Running PostgreSQL, MongoDB, and NestJS concurrently with Docker Compose
TypeORM will be the ORM to interact with our PostgreSQL database. An ORM stands for Object-Relational Mapping and is used to interact with relational databases like MySQL, PostgreSQL, or Oracle. Also, we need TypeORM-Nestjs integration. Run the command below to install it.
-
Creating Typescript app with decorator-based dependency injection 💉
Let’s walk through an example where we integrate with an SQLite database using TypeORM.
-
Handling TypeORM migrations in Electron apps
// src/main/database/dataSource.ts import path from "node:path"; import "reflect-metadata"; import { DataSource } from "typeorm"; import { UserEntity } from "./entities/user/user.entity"; import { PostEntity } from "./entities/post/post.entity"; const isElectron = !!process.versions.electron; # simple trick to see if the data source is called from the Electron app or CLI (for migrations scripts) const isProduction = process.env.NODE_ENV === "production"; let databasePath: string; if (isElectron) { // eslint-disable-next-line @typescript-eslint/no-require-imports const { app } = require("electron"); databasePath = path.join( app.getPath("userData"), app.isPackaged ? "app-name.sqlite" : "app-name.dev.sqlite" ); } else { // use hardcoded path for running migrations in development (macOS) databasePath = path.join( "/Users/user/Library/Application Support/app-name/", isProduction ? "app-name.sqlite" : "app-name.dev.sqlite" ); } // https://typeorm.io/data-source-options#better-sqlite3-data-source-options const dataSource = new DataSource({ type: "better-sqlite3", database: databasePath, entities: [UserEntity, PostEntity], migrations: [ path.join(__dirname, isElectron ? "database" : "", "/migrations/*.{js,ts}"), ], synchronize: false, # important logging: true # use this for debugging }); export const entityManager = dataSource.createEntityManager(); export default dataSource;
- TypeORM Gets New Maintainers
-
The main steps I follow when kicking off Node.js projects
For relational databases, there are many different libraries you can use here, but if you use an SQL database, you can consider TypeORM.
-
3 Best Next.js ORM
2. TypeORM
-
Postgres tsvector with TypeORM
Using TypeORM in Node.js application gives you nice support of Typescript for ORM models. Lets see how can we setup PostgreSQL and tsvector with TypeORM
-
Seeking a Type-Safe Ruby on Rails in TypeScript, I Started Developing an ORM
For example, the increasingly popular Prisma has high type safety but adopts the Table Gateway pattern. The closest fit was TypeORM, which uses the Active Record pattern, but its type support is weaker compared to recent ORMs, and its release frequency has been low recently.
-
NodeJS Security Best Practices
If you use Sequalize, TypeORM or for MongoDB, we have Mongoose these types of ORM tools, then you are safe by default because these help us against the SQL query injection attacks by default.