Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Easy to reset
« previous
next »
Print
Pages: [
1
]
Author
Topic: Easy to reset (Read 4607 times)
matsukan
Newbie
Posts: 16
Karma: 0
Easy to reset
«
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.
Logged
matsukan
Newbie
Posts: 16
Karma: 0
Re: Easy way to reset db - sqlite support
«
Reply #1 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 ?
«
Last Edit: October 12, 2021, 10:55:38 pm by matsukan
»
Logged
fabian
Moderator
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Easy to reset
«
Reply #2 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.
Logged
matsukan
Newbie
Posts: 16
Karma: 0
Re: Easy to reset
«
Reply #3 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 ?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Easy to reset