metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::Db::PostgresPR::Connection#transaction_status

Returns one of the following statuses:

  PQTRANS_IDLE    = 0 (connection idle)
  PQTRANS_INTRANS = 2 (idle, within transaction block)
  PQTRANS_INERROR = 3 (idle, within failed transaction)
  PQTRANS_UNKNOWN = 4 (cannot determine status)

Not yet implemented is:

  PQTRANS_ACTIVE  = 1 (command in progress)

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/postgres/postgres-pr/connection.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Db--PostgresPR--Connection-transaction_status-for-pr


# Commit to git

git add lib/postgres/postgres-pr/connection.rbgit commit -m "better docs for Msf::Db::PostgresPR::Connection#transaction_status"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Db--PostgresPR--Connection-transaction_status-for-pr

hub pull-request


# Celebrate!