Sha256: a59a820137de23c9a3580a100e763730636baab6ac0d9e8dc82c367c51cceaf1

Contents?: true

Size: 316 Bytes

Versions: 11

Compression:

Stored size: 316 Bytes

Contents

module Rasti
  module DB
    module Helpers
    
      module WithSchema

        private

        def with_schema(table, field=nil)
          qualified_table = schema ? Sequel.qualify(schema, table) : table
          field ? Sequel[qualified_table][field] : qualified_table
        end

      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rasti-db-1.0.0 lib/rasti/db/helpers.rb
rasti-db-0.4.1 lib/rasti/db/helpers.rb
rasti-db-0.4.0 lib/rasti/db/helpers.rb
rasti-db-0.3.0 lib/rasti/db/helpers.rb
rasti-db-0.2.9 lib/rasti/db/helpers.rb
rasti-db-0.2.8 lib/rasti/db/helpers.rb
rasti-db-0.2.7 lib/rasti/db/helpers.rb
rasti-db-0.2.6 lib/rasti/db/helpers.rb
rasti-db-0.2.5 lib/rasti/db/helpers.rb
rasti-db-0.2.4 lib/rasti/db/helpers.rb
rasti-db-0.2.3 lib/rasti/db/helpers.rb