lib/activefacts/generator/etl/unidex.rb in activefacts-compositions-1.9.22 vs lib/activefacts/generator/etl/unidex.rb in activefacts-compositions-1.9.23

- old
+ new

@@ -13,11 +13,10 @@ module ActiveFacts module Generators module ETL class Unidex - MM = ActiveFacts::Metamodel unless const_defined?(:MM) def self.options # REVISIT: There's no way to support SQL dialect options here sql_trait = ActiveFacts::Generators::Traits::SQL Class.new.extend(sql_trait). # Anonymous class to enable access to traits module instance methods @@ -27,10 +26,16 @@ dialect: [String, "SQL Dialect to use"] } ) end - def initialize composition, options = {} + def self.compatibility + # REVISIT: Remove the dependency on the "persistent" option of the staging compositor. + [1, %i{relational}] # one relational composition + end + + def initialize constellation, composition, options = {} + @constellation = constellation @composition = composition @options = options @trait = ActiveFacts::Generators::Traits::SQL if @dialect = options.delete("dialect")