Skip to content

Implement SQLite for Nimda3#26

Open
DBX12 wants to merge 9 commits into
noother:masterfrom
DBX12:implement_sqlite
Open

Implement SQLite for Nimda3#26
DBX12 wants to merge 9 commits into
noother:masterfrom
DBX12:implement_sqlite

Conversation

@DBX12

@DBX12 DBX12 commented Oct 21, 2017

Copy link
Copy Markdown

I saw Nimda3 lacks support for SQLite and many small instances of Nimda (like on Raspi or Odroid) do not have the resources or do not want to sacrifice them for a MySQL database.
So hopefully this helps people in the future as it will help me.

Cheers
DBX12

DBX12 added 9 commits October 21, 2017 15:38
Keywords true, false and null are now correctly parsed as their PHP equivalents.
Add an interface defining common functions for all database types
SQLite and MySQL differ too much to "translate" MySQL statements to SQLite statements. This file creates / updates the SQLite database to the update 10 of MySQL. Still setting the update counter to one to prevent bogus behavior on new updates.
- refactored Nimda::MySQL to Nimda::database
- added conditional initialisation of $database
- added conditional update_file
- moved handling of permanent variables to DatabaseInterface (and made database classes responsible for escaping and querying)
- added call to DatabaseInterface::closeConnection() to __destruct()
- added conditional initialization of $database for the creation of the Plugin
- added function to implement DatabaseInterface in MySQL
- adapt constructor to match DatabaseInterface
LPT: Do not attempt to close a database connection if there is no connection.
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.

1 participant