daffyyyy / CS2-SimpleAdmin

Manage your Counter-Strike 2 server by simple commands :)
GNU General Public License v3.0
93 stars 32 forks source link

Feature: Support SQlite and use it as default database #91

Open sazarkin opened 3 months ago

sazarkin commented 3 months ago

It will be nice to get sqlite integrated database out of the box without extra MySQL instance required.

Database can be an interface and have two implementation: sqlite and mysql.

I play maybe once a month on my server and do not want to keep mysql instance only for ban/mute logic to work.

Docs example: https://docs.cssharp.dev/examples/WithDatabase.html

Dliix66 commented 2 months ago

The main target with this plugin is to be able to share the DB accross server and/or access its data through a web plugin or discord bot. This would not be possible with SQLite. We could make an SQLite option, but this should never be the default.

sazarkin commented 2 months ago

but this should never be the default.

I mean if you have not put mysql settings in config, it should use sqlite.

Right now if you haven't configured mysql half of features do not work.