@blitzm/azure-mysql
v0.2.0
Published
@blitzm/azure-mysql is a typescript library for creating a MySQL instance and a database with access control.
Downloads
20
Keywords
Readme
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.