Gda.PStmt

g GObject.Object GObject.Object Gda.PStmt Gda.PStmt GObject.Object->Gda.PStmt

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

copy_contents (dest)

get_gda_statement ()

set_gda_statement (stmt)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

ncols

int

r

number of types in array

object

GObject.Object

r

param_ids

[str]

r

list of parameters’ IDs (as str *), mem freed by Gda.PStmt

sql

str

r

actual SQL code used for this prepared statement, mem freed by Gda.PStmt

tmpl_columns

[Gda.Column]

r

list of Gda.Column objects which data models created from this prep. statement can copy

types

GObject.GType

r

array of ncols types

Class Details

class Gda.PStmt(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Gda.PStmtClass

copy_contents(dest)
Parameters:

dest (Gda.PStmt) – a Gda.PStmt object

Copies self's data to dest

get_gda_statement()
Returns:

the Gda.Statement

Return type:

Gda.Statement

Get a pointer to the Gda.Statement which led to the creation of this prepared statement.

Note: if that statement has been modified since the creation of self, then this method will return None

set_gda_statement(stmt)
Parameters:

stmt (Gda.Statement or None) – a Gda.Statement object, or None

Informs self that it corresponds to the preparation of the stmt statement