Skip to content

feat: Add SQLite database support with MySQL compatibility#459

Open
EduardoLeoDaSilva wants to merge 2 commits intoNereziel:mainfrom
EduardoLeoDaSilva:main
Open

feat: Add SQLite database support with MySQL compatibility#459
EduardoLeoDaSilva wants to merge 2 commits intoNereziel:mainfrom
EduardoLeoDaSilva:main

Conversation

@EduardoLeoDaSilva
Copy link

Objective
Add complete SQLite support while maintaining 100% compatibility with existing MySQL setups.

Features Added

  • Complete SQLite support
  • IDatabaseConnection interface for abstraction
  • Flexible configuration (DatabaseType + DatabasePath)
  • Adaptive queries for MySQL/SQLite
  • Detailed logging for debugging
  • Full compatibility with existing configurations

Modified Files

  • Config.cs - Added DatabaseType and DatabasePath options
  • Database.cs - Refactored to use interface
  • WeaponPaints.cs - Database type detection logic
  • WeaponSynchronization.cs - Compatible queries for both databases
  • Utility.cs - Adaptive table creation
  • WeaponPaints.csproj - Microsoft.Data.Sqlite dependency

Created Files

  • IDatabaseConnection.cs - Abstraction interface
  • SQLiteConnection.cs - SQLite implementation
  • MySQLConnection.cs - MySQL implementation

@daffyyyy
Copy link
Collaborator

Hi, can you remove WeaponPaints.json file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants