Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mysql2-types-generator

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql2-types-generator

```bash npm i mysql2-types-generator ```

  • 1.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
0
Weekly downloads
 
Created
Source

Package to create MySQL database types

Install this package

npm i mysql2-types-generator

Connect to MySQL database using mysql2-handler package

// No need to install mysql2 or mysql2-handler packages, they are dependencies of this package for capability reasons
const DB = require('mysql2-handler');
// OR
import DB from 'mysql2-handler';

Import this package

const generateDatabaseTSFile = require('mysql2-types-generator')
// OR
import generateDatabaseTSFile from 'mysql2-types-generator'

Create database connection

DB.Connect(() => {
    await generateDatabaseTSFile(DB, 'database-name', 'path/to/newtsfile/') // path/to/newtsfile/ is optional
    // default path is ./Data/types/
    // types filename is DBTypes.database-name.ts
});

FAQs

Package last updated on 14 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc