primary_key(schema, table)
click to toggle source
Get the primary key for the given table.
# File lib/sequel/adapters/shared/postgres.rb, line 136 def primary_key(schema, table) sql = SELECT_PK[schema, table] execute(sql) do |r| return single_value(r) end end