1.4.1 • Published 1 month ago

node-mysql-audit v1.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Database Audit Package

This package provides functionality for auditing database changes in MySQL.

Installation

To install the package, run the following command:

npm install node-mysql-audit

Upon installation, a configuration file will be generated in your project directory. This file includes essential information for database connections and an exceptions array. Before utilizing the audit function, ensure that these configurations are properly defined.

Usage

Importing the Package:

import { initConnection, setupDatabaseAudit } from ('node-mysql-audit'); 

Setting up Database Connection

initConnection();

Setting up Database Audit

const userId = 1; // Provide the user ID
const username = 'admin'; // Provide the username

setupDatabaseAudit(userId, username);

Configuration

You can configure the exceptions for auditing by editing the exceptions.json file.

Example exceptions.json

{
  "exceptions": ["auditlog"]
}
1.4.1

1 month ago

1.2.0

1 month ago

1.1.1

1 month ago

1.1.0

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.4.0

1 month ago

1.3.0

1 month ago

1.0.4

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.3

2 months ago

1.0.0

2 months ago