colrev.env.local_index_sqlite.SQLiteIndexRecord

class SQLiteIndexRecord(*, reinitialize=False)[source]

Bases: SQLiteIndex

The SQLiteIndexRecord class implements indexing and retrieval of records locally

Methods

commit

Commit changes to the SQLITE database

exists

Check if a record exists in the index

get

Get a record from the index

insert

Insert a record into the index

search

Search for records in the index

update

Update a record in the index

Attributes

CREATE_TABLE_QUERY

GLOBAL_KEYS

INDEX_NAME

INSERT_QUERY

KEYS

SELECT_ALL_QUERY

SELECT_KEY_QUERIES

UPDATE_RECORD_QUERY

commit()

Commit changes to the SQLITE database

Return type:

None

exists(*, local_index_id)[source]

Check if a record exists in the index

Return type:

bool

get(*, key, value)[source]

Get a record from the index

Return type:

dict

insert(item)[source]

Insert a record into the index

Return type:

None

search(query)[source]

Search for records in the index

Return type:

list

update(local_index_id, bibtex)[source]

Update a record in the index

Return type:

None