bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 60 forks source link

storage engine should be a modifier to table #196

Closed jhellerstein closed 13 years ago

jhellerstein commented 13 years ago

Rather than having separate collection types for each storage engine, we should have a modifier to table that declares the storage engine -- and any of its options in a hash.

neilconway commented 13 years ago

This seems like a nice-to-have, but I don't think it is crucial for 0.0.4.

BTW, making the storage options a modifier to table doesn't seem quite right to me: whether a given collection is stored persistently or not seems like an important point, not something we want to hide in the option hash. I could see a "stored table" or "persistent table" collection type that takes the storage type as an option, though.

neilconway commented 13 years ago

TODO: rename table to a new name for in-memory collections, make table impl an option.

jhellerstein commented 13 years ago

added sync as a collection type with a storage engine modifier.