Libmsi.Query¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
database |
||
r/w/co |
query |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Libmsi.Query(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(database, query)¶
- Parameters:
database (
Libmsi.Database
) – aLibmsi.Database
query (
str
) – a SQL query
- Raises:
- Returns:
a new
Libmsi.Query
on success,None
on failure- Return type:
Create a SQL query for database.
- execute(rec)¶
- Parameters:
rec (
Libmsi.Record
orNone
) – aLibmsi.Record
containing query arguments, orNone
if no arguments needed- Raises:
- Returns:
True
on success- Return type:
Execute the self with the arguments from rec.
- fetch()¶
- Raises:
- Returns:
a newly allocated
Libmsi.Record
orNone
when no results or failure.- Return type:
Return the next query result.
None
is returned when there is no more results.
- get_column_info(info)¶
- Parameters:
info (
Libmsi.ColInfo
) – aLibmsi.ColInfo
specifying the type of information to return- Raises:
- Returns:
a newly allocated
Libmsi.Record
containing informations orNone
on error.- Return type:
Get column informations, returned as record string fields.
Property Details¶
- Libmsi.Query.props.database¶
- Name:
database
- Type:
- Default Value:
- Flags:
database