Proper jsonb field encoding

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-07-31 12:15:52 +02:00
parent 0a8c5d1c1f
commit 74a1215554
4 changed files with 14 additions and 7 deletions

View File

@@ -179,6 +179,12 @@ fn main() {
print_user_details(inactive_user);
}
// Delete a user based on an index for good measure
db.collection::<User>()
.expect("can open user collection")
.delete::<username, _>("janesmith")
.expect("can delete existing user");
println!("\n--- User Model Information ---");
println!("User DB Prefix: {}", User::db_prefix());