Socket
Socket
Sign inDemoInstall

typeorm-explain

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    typeorm-explain

Tiny helper to wrap TypeORM's query builder queries to EXPLAIN


Version published
Weekly downloads
291
decreased by-37.28%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Ci Status Npm version

typeorm-explain

Tiny helper to wrap TypeORM's query builder queries into EXPLAIN.

Install

npm install typeorm-explain

Usage

Currently supports only Postgres driver. Feel free to open PR and add more drivers.

import explain from 'typeorm-explain';

import { getConnection } from 'typeorm';

const userQuery = getConnection()
  .createQueryBuilder()
  .select('user')
  .from(User, 'user')
  .where('user.id = :id', { id: 1 });

console.log(await explain(userQuery)); // Print explain in console

const user = await userQuery.getOne();

Development

npm run format # code fomatting
npm run lint # linting
npm run build # build

Active maintenance with care and ❤️.

Feel free to send a PR.

Keywords

FAQs

Last updated on 15 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc