application_vnd_sqlite¶
Strategy class for application/vnd.sqlite3.
SessionUpdateSqLiteParse
¶
Bases: SessionUpdate
Configuration model for SqLiteParse.
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
61 62 63 64 |
|
SqliteParseConfig
¶
Bases: AttrDict
Configuration data model for
SqliteParseStrategy
.
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
18 19 20 21 22 23 24 25 26 |
|
SqliteParseStrategy
¶
Parse strategy for SQLite.
Registers strategies:
("mediaType", "application/vnd.sqlite3")
Purpose of this strategy: Download a SQLite database using downloadUrl
and run a
SQL query on the database to return all relevant rows.
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
get(session=None)
¶
Parse SQLite query responses.
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
initialize(session=None)
¶
Initialize strategy.
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
82 83 84 |
|
SqliteParserResourceConfig
¶
Bases: ResourceConfig
SQLite parse strategy resource config.
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
29 30 31 32 33 34 35 36 37 38 39 |
|
create_connection(db_file)
¶
Create a database connection to SQLite database.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
db_file |
Path
|
Full path to SQLite database file. |
required |
Raises:
Type | Description |
---|---|
sqlite3.Error
|
If a DB connection cannot be made. |
Returns:
Type | Description |
---|---|
sqlite3.Connection
|
Connection object. |
Source code in oteapi/strategies/parse/application_vnd_sqlite.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|