1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/lib/postgres_msf.rb
Tod Beardsley a65af9c8b3 See #730. Forking and adding Postgres-PR, with the following changes:
Namespaced everything under Msf::Db::PostgreSQL, renamed top-level include to postgres_msf to disambiguate.
Included recursive requires for all files.
Noted the IO monkeypatch -- should revisit.
Added a testcase for database connections.

The reason for the namespacing is to avoid stomping on any existing Postgres-PR installations, or any other requires named "postgres" or "postgresql" or even "pg," since these may or may not support the method's we're using here. The seperate namespace also allows for easier integration of custom commands later on.




git-svn-id: file:///home/svn/framework3/trunk@8342 4d416f70-5f16-0410-b530-b9f4589650da
2010-02-01 19:49:36 +00:00

13 lines
342 B
Ruby

# "Pure Ruby PostgreSQL interface," also known as "Postgres-PR" is:
# Copyright (c) 2005, 2008 by Michael Neumann (mneumann@ntecs.de).
#
# Postgres-PR is released under the same terms of license as Ruby.
#
# The Ruby License is:
# http://www.ruby-lang.org/en/LICENSE.txt
#
require 'postgres/postgres-pr/postgres-compat'
require 'stringio'