Registry / database / atthis-mysql

atthis-mysql

JSON →
library1.1.7jsnpmunverified

atthis-mysql is an adapter plugin for the atthis framework, enabling MySQL database operations including dump functionality. Version 1.1.7 is the latest stable release. This package is specifically designed to integrate with atthis and is not intended for standalone use. It provides MySQL connectivity tailored for the atthis ecosystem, with a focus on database dumping capabilities.

npm install atthis-mysql
INSTALL
IMPORT
SIG · ATTHIS-MYSQL
A
atthis-mysql
databasejavascriptv1.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MySQLAdapter
import { MySQLAdapter } from 'atthis-mysql'
const MySQLAdapter = require('atthis-mysql')
ESM-only since v1.x (package does not support CJS).
default (or the default export)
import mysqlAdapter from 'atthis-mysql'
Default export available for simpler usage; available since v1.0.
Type exports if any
import type { MySQLAdapterOptions } from 'atthis-mysql'
TypeScript types are not explicitly documented; may not be available.

Shows how to instantiate the MySQL adapter with environment variables and perform a database dump.

import { MySQLAdapter } from 'atthis-mysql'; const adapter = new MySQLAdapter({ host: process.env.MYSQL_HOST ?? 'localhost', user: process.env.MYSQL_USER ?? 'root', password: process.env.MYSQL_PASSWORD ?? '', database: process.env.MYSQL_DATABASE ?? 'test' }); async function dumpDatabase() { try { const dump = await adapter.dump(); console.log('Database dump successful:', dump); } catch (error) { console.error('Dump failed:', error); } } dumpDatabase();
Debug
Known issues
gotchaThe plugin only works within the atthis framework; standalone usage will fail.
fix
Ensure atthis is installed and properly initialized before using this adapter.
affects: >=1.0.0
gotchaNo CJS support; require() will not work in Node.js environments without ESM support.
fix
Use import syntax or set type: 'module' in package.json.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'atthis'
atthis framework not installed as a dependency.
fix
Run 'npm install atthis' to add the core framework.
SyntaxError: Cannot use import statement outside a module
Running ESM code in a CommonJS environment without proper configuration.
fix
Add 'type': 'module' to package.json or use .mjs extension.
Upgrade
Version history
1.1.7latest on npm
Audit
Dependencies
atthisrequiredCore framework required for plugin to function
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
atthis-mysql — npm install atthis-mysql · libregistry