Write TableAccessQuerySet for other tables. Create Id macro
This commit is contained in:
1 parent
9a5b64a4fe
commit
d9bbf9e705
8 files changed
+184
-57
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user