0.1.1 • Published 3 years ago

@blitzm/azure-mysql v0.1.1

Weekly downloads
-
License
Blitzm
Repository
-
Last release
3 years ago

Blitzm Cloud - Azure MySQL

@blitzm/azure-mysql is a typescript library for creating a MySQL instance and a database with access control.

Installation

This package can be installed using npm

npm install --save --save-exact @blitzm/azure-mysql

Usage

import { AzureMySQL } from '@blitzm/azure-mysql'

const mySQL = new AzureMySQL('db', {
  resourceGroup: resourceGroup,
  skuName: 'B_Gen5_1',
  version: '8.0',
  storageSizeGB: 50,
  allowedIPs: ['your-server-ip']
  })

export const connectionString = mySQL.connectionString
export const host = mySQL.host
export const serverName = mySQL.serverName
export const username = mySQL.username
export const password = mySQL.password

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Blitzm