Closed pindell-matt closed 8 years ago
I'd expect the serialization of a Data object that contains an empty map. Append, read, etc. would then work as expected instead of failing with desrialization errors. On Jul 4, 2016 12:18, "Matt Pindell" notifications@github.com wrote:
Basic function to create an empty table: create_empty_table
Tested with it_can_create_and_drop_an_empty_table
You can view, comment on, or merge this pull request online at:
https://github.com/pindell-matt/rust_bucket/pull/33 Commit Summary
- Add create_empty_table function
- Add test for creating and dropping empty table
File Changes
- M src/lib.rs https://github.com/pindell-matt/rust_bucket/pull/33/files#diff-0 (30)
Patch Links:
- https://github.com/pindell-matt/rust_bucket/pull/33.patch
- https://github.com/pindell-matt/rust_bucket/pull/33.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pindell-matt/rust_bucket/pull/33, or mute the thread https://github.com/notifications/unsubscribe/AEAKexL8jPbnezAwRiFel4UHZFTzY7bIks5qSVyUgaJpZM4JEnLO .
Totally makes sense - on it.
Just realized: Since this will have no records yet, next_id should be "0"
Good catch, changed index to "0"
LGTM!
Basic function to create an empty table:
create_empty_table
Tested withit_can_create_and_drop_an_empty_table