Provides prepared statement helpers for database operations.
Class methods
all_token_vectors(db :
DB::Database) :
Array(
TokenVectorRow)
Sourcedelete_blocks_by_file(db :
DB::Database, file_id :
Int64) :
Nil Sourcedelete_file(db :
DB::Database, file_id :
Int64) :
Nil Sourcedelete_lines_by_file(db :
DB::Database, file_id :
Int64) :
Nil Sourcedelete_postings_by_file(db :
DB::Database, file_id :
Int64) :
Nil Sourceselect_block_by_id(db :
DB::Database, block_id :
Int64) :
BlockRow |
Nil Sourceselect_blocks_by_file(db :
DB::Database, file_id :
Int64) :
Array(
BlockRow)
Sourceselect_feedback_events_by_result(db :
DB::Database, result_id :
String) :
Array(
FeedbackEventRow)
Sourceselect_feedback_stats(db :
DB::Database, result_id :
String) :
FeedbackStatsRow |
Nil Sourceselect_file_by_id(db :
DB::Database, file_id :
Int64) :
FileRow |
Nil Sourceselect_file_by_path(db :
DB::Database, rel_path :
String) :
FileRow |
Nil Sourceselect_postings_by_file(db :
DB::Database, file_id :
Int64) :
Array(
PostingRow)
Sourceselect_postings_by_token(db :
DB::Database, token_id :
Int64) :
Array(
PostingRow)
Sourceselect_token_by_id(db :
DB::Database, token_id :
Int64) :
TokenRow |
Nil Sourceselect_token_by_text(db :
DB::Database, token :
String) :
TokenRow |
Nil Sourceselect_token_vector(db :
DB::Database, token_id :
Int64) :
TokenVectorRow |
Nil Sourceupsert_block_line_map(db :
DB::Database, file_id :
Int64, map_blob :
Bytes) :
Nil Sourceupsert_feedback_stats(db :
DB::Database, result_id :
String, promising_count :
Int32, useful_count :
Int32, not_useful_count :
Int32) :
Nil Sourceupsert_line_cache(db :
DB::Database, file_id :
Int64, line_num :
Int32, text :
String) :
Nil Sourceupsert_posting(db :
DB::Database, token_id :
Int64, file_id :
Int64, tf :
Int32, lines_blob :
Bytes) :
Nil Source