Use a reader
Subscribe by Email
Active Record Like makes other things active record like. In a project, we used it to access an existing C# api using ActiveScaffold.
It's not build for speed or large data sources. I would not advice it to access LDAP for example. It's currently simple minded. But it saves us from doing lots of work. A foreign API becomes active record like and we do usual crud.
The implementation uses pure functional programming to parse and convert SQLl caused by the active record calls.
Anything can be active record like. There is a sample project which makes memcached active record like. The result is pure in cache database (like)!
- Ruby compiler generator (TreeTop) using simple grammar definitions
- Transformations specified in a pure Functional DSL
https://github.com/umuro/active_record_like/tree/master/lib/concept_space/active_record_like/adapter/parser is where grammar and functional transformations are defined:
- Of course, *.treetop files are the ones in parser directory. The samenamed *.rb files are auto-generated.
- find_order.rb and find_conditions.rb are where functional DSL is used to define grammar translations.