Libmsi.Query

g GObject.Object GObject.Object Libmsi.Query Libmsi.Query GObject.Object->Libmsi.Query

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (database, query)

close ()

execute (rec)

fetch ()

get_column_info (info)

get_error ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

database

Libmsi.Database

r/w/co

database

query

str

r/w/co

query

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Libmsi.Query(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Libmsi.QueryClass

classmethod new(database, query)
Parameters:
Raises:

GLib.Error

Returns:

a new Libmsi.Query on success, None on failure

Return type:

Libmsi.Query

Create a SQL query for database.

close()
Raises:

GLib.Error

Returns:

True on success

Return type:

bool

Release the current result set.

execute(rec)
Parameters:

rec (Libmsi.Record or None) – a Libmsi.Record containing query arguments, or None if no arguments needed

Raises:

GLib.Error

Returns:

True on success

Return type:

bool

Execute the self with the arguments from rec.

fetch()
Raises:

GLib.Error

Returns:

a newly allocated Libmsi.Record or None when no results or failure.

Return type:

Libmsi.Record or None

Return the next query result. None is returned when there is no more results.

get_column_info(info)
Parameters:

info (Libmsi.ColInfo) – a Libmsi.ColInfo specifying the type of information to return

Raises:

GLib.Error

Returns:

a newly allocated Libmsi.Record containing informations or None on error.

Return type:

Libmsi.Record

Get column informations, returned as record string fields.

get_error()
Raises:

GLib.Error

Returns:

location to store the allocated column name

Return type:

column: str

Call this to get more information on the last query error.

Property Details

Libmsi.Query.props.database
Name:

database

Type:

Libmsi.Database

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

database

Libmsi.Query.props.query
Name:

query

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

query