lib/sequel_core/adapters/shared/postgres.rb
# Support lock mode, allowing FOR SHARE and FOR UPDATE queries.
Support lock mode, allowing FOR SHARE and FOR UPDATE queries.
Support lock mode allowing FOR SHARE and FOR UPDATE queries .
def select_sql(opts = nil)
        row_lock_mode = opts ? opts[:lock] : @opts[:lock]
        sql = super
        case row_lock_mode
        when :update
          sql << FOR_UPDATE
        when :share
          sql << FOR_SHARE
        end
        sql
      end
def select_sql ( opts = nil ) row_lock_mode = opts ? opts [ :lock ] : @opts [ :lock ] sql = super case row_lock_mode when :update sql << FOR_UPDATE when :share sql << FOR_SHARE end sql end
Support lock mode, allowing FOR SHARE and FOR UPDATE queries.
Support lock mode allowing FOR SHARE and FOR UPDATE queries .
opts