Skip to content

Commit ea72fa2

Browse files
committed
Continue database impl
1 parent 8a79c43 commit ea72fa2

File tree

13 files changed

+416
-509
lines changed

13 files changed

+416
-509
lines changed

Cargo.lock

Lines changed: 2 additions & 233 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandpolis-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ mod test_instance_id {
218218

219219
/// Realms have unique names and are shared across the entire cluster. Realm
220220
/// names cannot be changed after they are created.
221-
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash)]
221+
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
222222
pub struct RealmName(String);
223223

224224
impl Default for RealmName {

sandpolis-database/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct ExampleData {
2121
}
2222
```
2323

24-
In the database, `Data` structs are stored as key-value pairs.
24+
In the database, `Data` are stored as key-value pairs.
2525

2626
#### Resident `Data`
2727

@@ -30,3 +30,5 @@ There are two types to simplify this:
3030

3131
- `Resident`
3232
- `ResidentVec`
33+
34+
#### `Data` ownership

0 commit comments

Comments
 (0)