Comments (2)
Progress has been made on this, see comparison between develop and my refactor branch: develop...feature/refactor_schema
I think these changes are good, and in short we now have:
- Made ColumnFamilies into a set; it is no longer possible to have column families with the same name.
- Made Fields into a set; it is no longer possible to have fields with the same name.
- The enforcement of fields with unique names are global across all column families.
- The attributes_schema() is read from from the column family set, and there are no longer a need to maintain multiple hashes which reflected the column families and fields in different ways.
- Added simple interface for dynamically adding fields to a family: ATableClass.add_field_to_column_family(:info, :name, :default => "NA"). It will take care of keeping the ATableClass consistent with read/write and other attribute methods it creates based on the schema.
- ORM::Column is now implemented, mening that it should be easier to subclass it, and define fields given the DSL we have defined in the README.
- ORM::Column has attributes_schema(), known_attribute_names(), default_attributes_from_schmea() just like the ORM::Table. In fact, these methods comes from the same module.
- All old tests passes, and I suspect that we should not need to do a lot of changing in the Front. What we can do in the front is clean up classes which inherits from ORM::Column, as we can now define fields for these classes as well :-)
from massive_record.
Merged into master :-)
from massive_record.
Related Issues (20)
- Supporting date/time form helpers
- embedded.destroy should also remove itself from parent collection?
- Error when using embeds_many.destroy_all
- Extend proxies with module / give it a block with logic to include
- Not detecting changes in new records
- Have been reported some issues with callbacks on embedded records HOT 2
- Returning false in ex. before_save does not short circuit save if saved through parent
- Nedsted attributes
- Limit scan to a specified timeStamp
- Query HOT 6
- Hard Dependency On Older Version of ActiveSupport in 0.2.2.rc1 & 0.2.2.rc2 HOT 4
- Inheritance and table_name HOT 3
- `IOError: closed stream` after sending an invalid query HOT 4
- What type to use for binary fields? HOT 1
- Memory leak with find operation
- Rails 3.2.2 Deprecation Warnings HOT 1
- Is this correct code? HOT 1
- Is still mantained? HOT 2
- What's the correct way to create/migrate hbase tables using this gem? HOT 4
- Dead Links in wiki HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from massive_record.