Write TableAccessQuerySet for other tables. Create Id macro

This commit is contained in:
micialware committed 2026-08-30 22:15:03 +03:00
1 parent 9a5b64a4fe
commit d9bbf9e705
8 files changed
+184 -57

No files matched your search

+7 -2
View File
@@ -65,8 +65,13 @@ pub fn default_connection() -> Connection {
.execute("PRAGMA foreign_keys = ON;", [])
.expect("Failed to set PRAGMA");
connection
.execute("PRAGMA journal_mode = WAL;", [])
.expect("Failed to set PRAGMA");
.query_one("PRAGMA journal_mode = WAL;", [], |row| {
println!("{:?}", row);
Ok(())
})
.unwrap_or_else(|e| {
println!("{}", e);
});
connection
.execute("PRAGMA synchronous = NORMAL;", [])
.expect("Failed to set PRAGMA");