Regira-Packages

Regira.DAL.MySQL.MySqlBackup

Backup and restore for Regira DAL.MySQL, built on MySqlBackup.NET. MySqlBackupService implements IDbBackupService and exports a database to an IMemoryFile; MySqlRestoreService implements IDbRestoreService and imports one. Both work in memory, without temporary files, and take a MySqlBackupOptions holding a connection string or MySqlSettings; ConnectionString wins when both are set. A backup is MySqlBackup.NET’s default export as SQL text: per table DROP TABLE IF EXISTS, CREATE TABLE and its INSERTs, so a restore replaces every table the dump holds and leaves other tables alone. The returned file has no ContentType: store it as application/sql.

Installation

<PackageReference Include="Regira.DAL.MySQL.MySqlBackup" Version="6.*" />

Documentation

License

Apache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.