insert

insert(idx, keys={}) Instance Public methods

[]

[](command_name) Instance Public methods Returns a Command instance for command_name

master?

master?() Class Public methods

supports_statement_cache?

supports_statement_cache?() Instance Public methods Returns true, since this connection adapter supports prepared statement caching.

===

===(list) Instance Public methods

string_to_hstore

string_to_hstore(string) Instance Public methods

create_database

create_database(name, options = {}) Instance Public methods Create a new PostgreSQL database. Options include :owner, :template, :encoding (defaults to utf8), :collation, :ctype, :tablespace, and :connection_limit (note that MySQL uses :charset while PostgreSQL uses :encoding). Example: create_database config[:database], config create_database 'foo_development', encoding: 'unicode'

new

new(host=nil, path=nil, port=nil, proxy_host=nil, proxy_port=nil, user=nil, password=nil, use_ssl=nil, timeout=nil) Class Public methods Creates an object which represents the remote XML-RPC server on the given host. If the server is CGI-based, path is the path to the CGI-script, which will be called, otherwise (in the case of a standalone server) path should be "/RPC2". port is the port on which the XML-RPC server listens. If proxy_host is given, then a proxy server listening at p

set_service_hook

set_service_hook(&handler) Instance Public methods A service-hook is called for each service request (RPC). You can use a service-hook for example to wrap existing methods and catch exceptions of them or convert values to values recognized by XMLRPC. You can disable it by passing nil as the handler parameter. The service-hook is called with a Proc object along with any parameters. An example: server.set_service_hook {|obj, *args| begin ret = obj.call(*args) # call the or

dir

dir() Instance Public methods Return the target directory where the gem is to be installed. This directory is not guaranteed to be populated.