Libmsi.Database¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
flags |
||
r/w/co |
outpath |
||
r/w/co |
path |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Libmsi.Database(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(path, flags, persist)¶
- Parameters:
path (
str
) – path to a MSI fileflags (
int
) –Libmsi.DbFlags
opening flags
- Raises:
- Returns:
a new
Libmsi.Database
on success,None
if fail.- Return type:
Create a MSI database or open from path.
- apply_transform(file)¶
-
FIXME
- export(table, fd)¶
- Parameters:
- Raises:
- Returns:
True
on success- Return type:
Writes a file containing the table data as tab separated ASCII. The format is as follows:
row1 : colname1 <tab> colname2 <tab> …. colnameN <cr> <lf> row2 : coltype1 <tab> coltype2 <tab> …. coltypeN <cr> <lf> row3 : tablename <tab> key1 <tab> key2 <tab> … keyM <cr> <lf>
Followed by the data, starting at row 1 with one row per line
row4 : data <tab> data <tab> data <tab> … data <cr> <lf>
- get_primary_keys(table)¶
- Parameters:
table (
str
) – an exisiting table name- Raises:
- Returns:
a
Libmsi.Record
containing the names of all the primary key columns.- Return type:
- import_(path)¶
-
Import a table to the database from file path.
- is_table_persistent(table)¶
- Parameters:
table (
str
) – an exisiting table name- Raises:
- Returns:
- Return type:
- merge(merge, table)¶
- Parameters:
merge (
Libmsi.Database
) – aLibmsi.Database
to merge
- Raises:
- Returns:
True
on success- Return type:
Property Details¶
- Libmsi.Database.props.flags¶
- Name:
flags
- Type:
- Default Value:
0
- Flags:
flags
- Libmsi.Database.props.outpath¶
- Name:
outpath
- Type:
- Default Value:
- Flags:
outpath