Sha256: 3c8b1ef34c9a534de86605ad1a8b931f265d28fc22943de748a1712927b67d0b

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

module SchemaMonkey::CoreExtensions
  module Middleware
    module Query
      module ExecCache
        ENV = [:connection, :sql, :name, :binds, :result]
      end

      module Tables
        # :database and :like are only for mysql
        # :table_name is only for sqlite3
        ENV = [:connection, :query_name, :table_name, :database, :like, :tables]
      end

      module Indexes
        ENV = [:connection, :table_name, :query_name, :index_definitions]
      end
    end

    module Migration
      module Column
        ENV = [:caller, :operation, :table_name, :column_name, :type, :options]
      end

      module ColumnOptionsSql
        ENV = [:caller, :connection, :sql, :options]
      end

      module Index
        ENV = [:caller, :operation, :table_name, :column_names, :options]
      end

      module IndexComponentsSql
        ENV = [:connection, :table_name, :column_names, :options, :sql]
      end
    end

    module Dumper
      module Extensions
        ENV = [:dumper, :connection, :dump, :extensions]
      end
      module Tables
        ENV = [:dumper, :connection, :dump]
      end
      module Table
        ENV = [:dumper, :connection, :dump, :table]
      end
      module Indexes
        ENV = [:dumper, :connection, :dump, :table]
      end
    end

    module Model
      module Columns
        ENV = [:model, :columns]
      end
      module ResetColumnInformation
        ENV = [:model]
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
schema_monkey-1.0.1 lib/schema_monkey/core_extensions/middleware.rb
schema_monkey-1.0.0 lib/schema_monkey/core_extensions/middleware.rb