11#include < sqlite3.h>
22
3- #define GRI_MAX_POS (68719476735LL )
4- #define GRI_LEVELS (9 )
5- #define GRI_MAX_LEVEL (GRI_LEVELS - 1 )
6-
73/*
84 * C bindings
95 *
@@ -47,7 +43,7 @@ char *genomicsqlite_vacuum_into_sql(const char *destfile, const char *config_jso
4743 * end: column name or simple SQL expression for the interval end position
4844 */
4945char *create_genomic_range_index_sql (const char *table, const char *rid, const char *beg,
50- const char *end, int max_depth );
46+ const char *end, int floor );
5147
5248/*
5349 * Generate parenthesized SELECT statement to query the existing genomic range index of the
@@ -67,8 +63,8 @@ char *create_genomic_range_index_sql(const char *table, const char *rid, const c
6763 * qbeg: query range begin position; defaults to "?2"
6864 * qend: query range end position; defaults to "?3"
6965 */
70- char *genomic_range_rowids_sql (const char *indexed_table, sqlite3 *dbconn , const char *qrid,
71- const char *qbeg, const char *qend);
66+ char *genomic_range_rowids_sql (sqlite3 *dbconn, const char *indexed_table , const char *qrid,
67+ const char *qbeg, const char *qend, int ceiling, int floor );
7268
7369/*
7470 * Optional storage of refrence sequence metadata
@@ -108,10 +104,10 @@ std::string GenomicSQLiteVacuumIntoSQL(const std::string &dbfile,
108104
109105std::string CreateGenomicRangeIndexSQL (const std::string &table, const std::string &rid,
110106 const std::string &beg, const std::string &end,
111- int max_depth = - 1 );
112- std::string GenomicRangeRowidsSQL (const std::string &indexed_table, sqlite3 *dbconn ,
107+ int floor = 0 );
108+ std::string GenomicRangeRowidsSQL (sqlite3 *dbconn, const std::string &indexed_table,
113109 const std::string &qrid = " ?1" , const std::string &qbeg = " ?2" ,
114- const std::string &qend = " ?3" );
110+ const std::string &qend = " ?3" , int ceiling = - 1 , int floor = - 1 );
115111
116112std::string PutGenomicReferenceAssemblySQL (const std::string &assembly,
117113 const std::string &attached_schema = " " );
0 commit comments