@@ -384,7 +384,7 @@ string GenomicSQLiteVacuumIntoSQL(const string &destfile, const string &config_j
384384 throw std::runtime_error (" error processing config JSON $.inner_page_size" );
385385 int inner_page_size = extract->getColumn (0 ).getInt ();
386386
387- string desturi = GenomicSQLiteURI (destfile, config_json);
387+ string desturi = GenomicSQLiteURI (destfile, config_json) + " &outer_unsafe=true " ;
388388
389389 ostringstream ans;
390390 ans << " PRAGMA page_size = " << inner_page_size << " ;\n PRAGMA auto_vacuum = FULL"
@@ -990,13 +990,13 @@ static void sqlfn_put_genomic_reference_assembly_sql(sqlite3_context *ctx, int a
990990 SQL_WRAPPER (PutGenomicReferenceAssemblySQL (assembly, schema))
991991}
992992
993- map<unsigned long long , gri_refseq_t >
993+ map<long long , gri_refseq_t >
994994GetGenomicReferenceSequencesByRid (sqlite3 *dbconn, const string &assembly, const string &schema) {
995- map<unsigned long long , gri_refseq_t > ans;
995+ map<long long , gri_refseq_t > ans;
996996 string schema_prefix = schema.empty () ? " " : (schema + " ." );
997997
998998 string query =
999- " SELECT _gri_rid, gri_refseq_name, gri_refseq_length, gri_assembly, gri_refget_id FROM " +
999+ " SELECT _gri_rid, gri_refseq_name, gri_refseq_length, gri_assembly, gri_refget_id, gri_refseq_meta_json FROM " +
10001000 schema_prefix + " __gri_refseq" ;
10011001 if (!assembly.empty ()) {
10021002 query += " WHERE gri_assembly = ?" ;
@@ -1026,6 +1026,9 @@ GetGenomicReferenceSequencesByRid(sqlite3 *dbconn, const string &assembly, const
10261026 if (sqlite3_column_type (stmt.get (), 4 ) == SQLITE_TEXT) {
10271027 item.refget_id = (const char *)sqlite3_column_text (stmt.get (), 4 );
10281028 }
1029+ if (sqlite3_column_type (stmt.get (), 4 ) == SQLITE_TEXT) {
1030+ item.meta_json = (const char *)sqlite3_column_text (stmt.get (), 5 );
1031+ }
10291032 ans[item.rid ] = item;
10301033 }
10311034 if (rc != SQLITE_DONE) {
0 commit comments