Select Git revision
-
Henrik (Grubba) Grubbström authored
This should reduce the overhead for apply() somewhat. Rev: src/apply_low.h:1.33 Rev: src/builtin.cmod:1.194 Rev: src/interpret.c:1.386 Rev: src/interpret.h:1.171 Rev: src/interpret_functions.h:1.200 Rev: src/modules/Gmp/mpz_glue.c:1.171 Rev: src/object.c:1.282 Rev: src/object.h:1.93 Rev: src/opcodes.c:1.170 Rev: src/operators.c:1.227 Rev: src/program.c:1.653
Henrik (Grubba) Grubbström authoredThis should reduce the overhead for apply() somewhat. Rev: src/apply_low.h:1.33 Rev: src/builtin.cmod:1.194 Rev: src/interpret.c:1.386 Rev: src/interpret.h:1.171 Rev: src/interpret_functions.h:1.200 Rev: src/modules/Gmp/mpz_glue.c:1.171 Rev: src/object.c:1.282 Rev: src/object.h:1.93 Rev: src/opcodes.c:1.170 Rev: src/operators.c:1.227 Rev: src/program.c:1.653
postgres.pike 14.90 KiB
/*
* This is part of the Postgres module for Pike.
*
* $Id$
*
*/
#pike __REAL_VERSION__
// Cannot dump this since the #if constant(...) check below may depend
// on the presence of system libs at runtime.
constant dont_dump_program = 1;
#if constant(Postgres.postgres)
//! This is an interface to the Postgres (Postgres95, pgsql) database
//! server. This module may or may not be available on your Pike,
//! depending whether the appropriate include and library files could
//! be found at compile-time. Note that you @b{do not@} need to have a
//! Postgres server running on your host to use this module: you can
//! connect to the database over a TCP/IP socket.
//!
//! @note
//! This driver has been @b{deprecated@}. You should use the
//! more advanced driver @[Sql.pgsql] to access PostgreSQL databases instead.
//!
//! @note
//! Also note that @b{this module uses blocking I/O@} to connect
//! to the server. It is thread-safe, and so it can be used in a
//! multithread environment.
//!
//! The behavior of the Postgres C API also depends on certain
//! environment variables defined in the environment of the Pike
//! interpreter; some notice and warning notifications might are dumped
//! on stderr.
//!
//! @string
//! @value "PGHOST"
//! Sets the name of the default host to connect to. It defaults
//! to @expr{"localhost"@}.
//! @value "PGOPTIONS"
//! Sets some extra flags for the frontend-backend connection.
//! @b{do not set@} unless you're sure of what you're doing.
//! @value "PGPORT"
//! Sets the default port to connect to, otherwise it will use
//! compile-time defaults (that is: the time you compiled the postgres
//! library, not the Pike driver).
//! @value "PGTTY"
//! Sets the file to be used for Postgres frontend debugging.
//! Do not use, unless you're sure of what you're doing.
//! @value "PGDATABASE"
//! Sets the default database to connect to.
//! @value "PGREALM"
//! Sets the default realm for Kerberos authentication. I never used
//! this, so I can't help you.
//! @endstring
//!
//! Refer to the Postgres documentation for further details.
//!
//! @seealso
//! @[Sql.pgsql], @[Sql.Sql], @[Postgres.postgres], @[Sql.postgres_result]
#define ERROR(X) throw (({X,backtrace()}))
inherit Postgres.postgres: mo;
private protected mixed callout;
private string has_relexpires = "unknown";
//! @decl void select_db(string dbname)
//!