[Nitro] [OG] - 0.16.0 with automated table evolution

  • Thread starter Ilias Lazaridis
  • Start date
I

Ilias Lazaridis

I've finished a non-intrusive extension to og (addition of one file,
"og-evolve.rb", no original source code touched), which enables
automated schema evolution (currently sqlite3 adapter).

require 'og'
require 'og-evolve'

-

you can disable the extension by simply removing the "require
'og-evolve'" statement (using "method rename), having the old behaviour
back.

-

functionality:

If you add a property to your object, a column is added to the
underlying table.

If anyone is intrested, I can sent the file via email.

[as a protest to the non-existent public code-repository and to
non-supporting my efforts on the project-forum (no responses), I've not
followed Mr. Moschovitis request to sent him the file]

-

[depending on the further delays of the next og version, I will possibly
extend this extension.]

-

The preliminary ob-evaluation (started 2 months before)

http://lazaridis.com/case/persist/og.html

..
 
A

Aredridel

I've finished a non-intrusive extension to og (addition of one file,
"og-evolve.rb", no original source code touched), which enables
automated schema evolution (currently sqlite3 adapter).

require 'og'
require 'og-evolve'

Interesting. I'll try if if I get a chance.
you can disable the extension by simply removing the "require
'og-evolve'" statement (using "method rename), having the old behaviour
back.

"method rename?

Ari
 
I

Ilias Lazaridis

Aredridel said:
Interesting. I'll try if if I get a chance.
ok.


"method rename?

sorry.

"method rename"

full text: I'm using ruby's "method rename" ( or more concise:
alias_method ) to keep the extension non-intrusive to the existen sources.

[I like that ruby!]

..
 
A

Aredridel

I've finished a non-intrusive extension to og (addition of one file,
"og-evolve.rb", no original source code touched), which enables
automated schema evolution (currently sqlite3 adapter).

require 'og'
require 'og-evolve'

Is there a place I can download the extension to try? It's a very good
idea, something I was thinking about myself over the past few coding
sessions.

Ari
 
A

Aredridel

Aredridel said:
Interesting. I'll try if if I get a chance.
ok.


"method rename?

sorry.

"method rename"

full text: I'm using ruby's "method rename" ( or more concise:
alias_method ) to keep the extension non-intrusive to the existen sources.

[I like that ruby!]

Aha. I'm interested to see how it integrates.

method_alias is a good thing. I sometimes wish it were more powerful,
but it's a good tool.
 
I

Ilias Lazaridis

Aredridel said:
Is there a place I can download the extension to try?
[...]

anyone intrested can get the file, simply by droping me a private email.

..
 
I

Ilias Lazaridis

Ilias said:
I've finished a non-intrusive extension to og (addition of one file,
"og-evolve.rb", no original source code touched), which enables
automated schema evolution (currently sqlite3 adapter). [...]

functionality:

If you add a property to your object, a column is added to the
underlying table.

The OID column is generated as the _first_ field (instead of the last as
in the original implementation).
If anyone is intrested, I can sent the file via email.
[...]

find the extension within the evaluation template:

http://lazaridis.com/case/persist/og.html

direct link:

http://lazaridis.com/case/persist/og-evolve.rb

-

The code demonstrates a major strength of ruby:

Changing a Product behaviour by using the "alias_method".

..
 
I

Ilias Lazaridis

Ilias said:
I've finished a non-intrusive extension to og (addition of one file,
"og-evolve.rb", no original source code touched), which enables
automated schema evolution (currently sqlite3 adapter).

require 'og'
require 'og-evolve'

-

you can disable the extension by simply removing the "require
'og-evolve'" statement (using "method rename), having the old behaviour
back.

believe it or not:

[Nitro] Schema evolution
http://thread.gmane.org/gmane.comp.lang.ruby.nitro.general/325

Mr. Moschovitis:
* keeps the censorship active
* the code-repository inactive
* and thus: ready code and a potential co-developer unused.

It's possibly time for me to get a serious product, like Active Record /
Rails.

-

functionality:

If you add a property to your object, a column is added to the
underlying table.

If anyone is intrested, I can sent the file via email.

[as a protest to the non-existent public code-repository and to
non-supporting my efforts on the project-forum (no responses), I've not
followed Mr. Moschovitis request to sent him the file]

-

[depending on the further delays of the next og version, I will possibly
extend this extension.]

-

The preliminary ob-evaluation (started 2 months before)

http://lazaridis.com/case/persist/og.html

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top