mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-27 12:53:47 -05:00
make moonfire-nvr sql enforce integrity
https://github.com/scottlamb/moonfire-nvr/issues/175#issuecomment-1008096087
This commit is contained in:
@@ -52,6 +52,12 @@ pub fn run(args: Args) -> Result<i32, Error> {
|
||||
db.push("?mode=ro");
|
||||
}
|
||||
Err(Command::new("sqlite3")
|
||||
.args(
|
||||
db::db::INTEGRITY_PRAGMAS
|
||||
.iter()
|
||||
.map(|p| ["-cmd", p])
|
||||
.flatten(),
|
||||
)
|
||||
.arg(&db)
|
||||
.args(&args.arg)
|
||||
.exec()
|
||||
|
||||
Reference in New Issue
Block a user