Class

PgsqlConnection

Description

final class Pgsql.Connection : GObject.Object
{
  /* No available fields */
}

A connection to a PostgreSQL database server.

PgsqlConnection represents an asynchronous connection to a PostgreSQL database. Connections are created using pgsql_connection_new() which returns a DexFuture that resolves when the connection is established.

Once connected, you can execute queries using pgsql_connection_query().

The connection uses non-blocking I/O internally, allowing it to work efficiently with async/await patterns through Dex futures and fibers.

Ancestors

Constructors

pgsql_connection_new

Creates a new connection to a PostgreSQL database server.

Instance methods

pgsql_connection_copy_in

Executes a COPY FROM STDIN operation on the connection.

pgsql_connection_copy_out

Executes a COPY TO STDOUT operation on the connection.

pgsql_connection_query

Executes a SQL query on the connection.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PgsqlConnectionClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.