OPNsense Forum

English Forums => Development and Code Review => Topic started by: matsukan on September 18, 2021, 08:55:37 PM

Title: Easy to reset
Post by: matsukan on September 18, 2021, 08:55:37 PM
Is there any easy way to reset all tables (model data) from so called "database" ? It would nice feature sometime clear all plug-in data if something goes wrong way.
Title: Re: Easy way to reset db - sqlite support
Post by: matsukan on October 01, 2021, 11:03:46 PM
Lets me ask my question little bit differently ... It's possible to integrate sqlite based approach to plug-in ? So can my php code access sqlite db?

Is sqlite supported ?
Title: Re: Easy to reset
Post by: fabian on October 02, 2021, 09:10:25 AM
It is an xml file: /conf/config.xml

In theory, you can just delete the section of the plugin. It will not work if you have cross model references over different plugins.
Title: Re: Easy to reset
Post by: matsukan on October 12, 2021, 10:55:08 PM

So currently there is no pdo libraries for sqlite, even python side ...

does opnsense support these pdo libraries in future releases ?

Or it's mission impossible goto pdo path ?