Parent

Files

DataObjects::Postgres::Transaction

Public Instance Methods

begin() click to toggle source
# File lib/do_postgres/transaction.rb, line 8
def begin
  cmd = "BEGIN"
  connection.create_command(cmd).execute_non_query
end
begin_prepared() click to toggle source
# File lib/do_postgres/transaction.rb, line 13
def begin_prepared
  cmd = "BEGIN"
  connection.create_command(cmd).execute_non_query
end
commit() click to toggle source
# File lib/do_postgres/transaction.rb, line 18
def commit
  cmd = "COMMIT"
  connection.create_command(cmd).execute_non_query
end
commit_prepared() click to toggle source
# File lib/do_postgres/transaction.rb, line 23
def commit_prepared
  cmd = "COMMIT PREPARED '#{id}'"
  connection.create_command(cmd).execute_non_query
end
prepare() click to toggle source
# File lib/do_postgres/transaction.rb, line 38
def prepare
  cmd = "PREPARE TRANSACTION '#{id}'"
  connection.create_command(cmd).execute_non_query
end
rollback() click to toggle source
# File lib/do_postgres/transaction.rb, line 28
def rollback
  cmd = "ROLLBACK"
  connection.create_command(cmd).execute_non_query
end
rollback_prepared() click to toggle source
# File lib/do_postgres/transaction.rb, line 33
def rollback_prepared
  cmd = "ROLLBACK PREPARED '#{id}'"
  connection.create_command(cmd).execute_non_query
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.