Sha256: e644bc527f25a80e44ade4805565ccbda46ab612f2d7f08f2b1b21e0a7cb70be

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

module SchemaPlus
  module Core
    module Middleware
      module Query
        module Exec
          ENV = [:connection, :sql, :query_name, :binds, :result]
        end
      end

      module Schema
        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, :query_name, :table_name, :index_definitions]
        end

      end

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

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

        module DropTable
          ENV = [:connection, :table_name, :options]
        end

      end

      module Sql
        module ColumnOptions
          ENV = [:caller, :connection, :sql, :column, :options]
        end

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

        module Table
          ENV = [:caller, :connection, :table_definition, :sql]
        end
      end

      module Dumper
        module Initial
          ENV = [:dumper, :connection, :dump, :initial]
        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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
schema_plus_core-0.2.0 lib/schema_plus/core/middleware.rb