Method: Sequel::Postgres::DatasetMethods#for_share

Defined in:
lib/sequel/adapters/shared/postgres.rb

#for_shareObject

Return a cloned dataset which will use FOR SHARE to lock returned rows.

[View source]

1897
1898
1899
# File 'lib/sequel/adapters/shared/postgres.rb', line 1897

def for_share
  lock_style(:share)
end