@tix-factory/mysql-data

2.0.122 • Public • Published

@tix-factory/mysql-data

TODO

Example

import { ConnectionPool } from "@tix-factory/mysql-data";

const connectionString = "...";
const connection = new ConnectionPool(connectionString, {
	// Only valid if the connection has SslMode=REQUIRED
	sslCertificateFileName: `${__dirname}/ca-certificate.crt`;
});

connection.executeReadStoredProcedure("MyStoredProcedureName", {
	ParamterName: "ParameterValue",
	SomeDateParameter: new Date()
}).then(rows => {
	// Rows returned
}).catch(console.error);

connection.executeWriteStoredProcedure("SomeStoredProcedureName", {
	Hoopla: "Hooooopla"
}).then(rowsAffected => {
	// Number of rows affected
}).catch(console.error);

Readme

Keywords

Package Sidebar

Install

npm i @tix-factory/mysql-data

Weekly Downloads

9

Version

2.0.122

License

MIT

Unpacked Size

9.69 kB

Total Files

7

Last publish

Collaborators

  • webgl3d