@@ -420,11 +420,11 @@ namespace sqlite_orm {
420
420
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& c,
421
421
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
422
422
std::stringstream ss;
423
- if (!context.skip_table_name ) {
423
+ if (!context.omit_table_name ) {
424
424
ss << streaming_identifier (alias_extractor<T>::extract ()) << " ." ;
425
425
}
426
426
auto newContext = context;
427
- newContext.skip_table_name = true ;
427
+ newContext.omit_table_name = true ;
428
428
ss << serialize (c.column , newContext);
429
429
return ss.str ();
430
430
}
@@ -442,7 +442,7 @@ namespace sqlite_orm {
442
442
std::stringstream ss;
443
443
if (auto * columnName = find_column_name (context.db_objects , e)) {
444
444
ss << streaming_identifier (
445
- !context.skip_table_name ? lookup_table_name<table_type_of_t <E>>(context.db_objects ) : " " ,
445
+ !context.omit_table_name ? lookup_table_name<table_type_of_t <E>>(context.db_objects ) : " " ,
446
446
*columnName,
447
447
" " );
448
448
} else {
@@ -504,7 +504,7 @@ namespace sqlite_orm {
504
504
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& statement,
505
505
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
506
506
std::stringstream ss;
507
- if (!context.skip_table_name ) {
507
+ if (!context.omit_table_name ) {
508
508
ss << streaming_identifier (lookup_table_name<O>(context.db_objects )) << " ." ;
509
509
}
510
510
ss << static_cast <std::string>(statement);
@@ -520,7 +520,7 @@ namespace sqlite_orm {
520
520
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& statement,
521
521
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
522
522
std::stringstream ss;
523
- if (!context.skip_table_name ) {
523
+ if (!context.omit_table_name ) {
524
524
ss << streaming_identifier (lookup_table_name<O>(context.db_objects )) << " ." ;
525
525
}
526
526
ss << static_cast <std::string>(statement);
@@ -536,7 +536,7 @@ namespace sqlite_orm {
536
536
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& statement,
537
537
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
538
538
std::stringstream ss;
539
- if (!context.skip_table_name ) {
539
+ if (!context.omit_table_name ) {
540
540
ss << streaming_identifier (lookup_table_name<O>(context.db_objects )) << " ." ;
541
541
}
542
542
ss << static_cast <std::string>(statement);
@@ -1305,7 +1305,7 @@ namespace sqlite_orm {
1305
1305
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
1306
1306
std::stringstream ss;
1307
1307
ss << streaming_identifier (column.name );
1308
- if (!context.fts5_columns ) {
1308
+ if (!context.omit_column_type ) {
1309
1309
ss << " " << type_printer<field_type_t <column_field<G, S>>>().print ();
1310
1310
}
1311
1311
ss << streaming_column_constraints (
@@ -1452,7 +1452,7 @@ namespace sqlite_orm {
1452
1452
std::stringstream ss;
1453
1453
ss << " SET " ;
1454
1454
auto leftContext = context;
1455
- leftContext.skip_table_name = true ;
1455
+ leftContext.omit_table_name = true ;
1456
1456
iterate_tuple (statement.assigns , [&ss, &context, &leftContext, first = true ](auto & value) mutable {
1457
1457
static constexpr std::array<orm_gsl::czstring, 2 > sep = {" , " , " " };
1458
1458
ss << sep[std::exchange (first, false )] << serialize (value.lhs , leftContext) << ' '
@@ -1612,7 +1612,7 @@ namespace sqlite_orm {
1612
1612
ss << ' ' ;
1613
1613
if constexpr (is_columns<value_type>::value) {
1614
1614
auto newContext = context;
1615
- newContext.skip_table_name = true ;
1615
+ newContext.omit_table_name = true ;
1616
1616
newContext.use_parentheses = true ;
1617
1617
ss << serialize (value, newContext);
1618
1618
} else if constexpr (is_values<value_type>::value || is_select<value_type>::value) {
@@ -1877,7 +1877,7 @@ namespace sqlite_orm {
1877
1877
template <class Ctx >
1878
1878
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& sel,
1879
1879
Ctx context) SQLITE_ORM_OR_CONST_CALLOP {
1880
- context.skip_table_name = false ;
1880
+ context.omit_table_name = false ;
1881
1881
// subqueries should always use parentheses in column names
1882
1882
auto subCtx = context;
1883
1883
subCtx.use_parentheses = true ;
@@ -1961,7 +1961,7 @@ namespace sqlite_orm {
1961
1961
std::stringstream ss;
1962
1962
ss << " USING FTS5(" ;
1963
1963
auto subContext = context;
1964
- subContext.fts5_columns = true ;
1964
+ subContext.omit_column_type = true ;
1965
1965
ss << streaming_expressions_tuple (statement.columns , subContext) << " )" ;
1966
1966
return ss.str ();
1967
1967
}
@@ -2051,7 +2051,7 @@ namespace sqlite_orm {
2051
2051
std::stringstream ss;
2052
2052
ss << " OLD." ;
2053
2053
auto newContext = context;
2054
- newContext.skip_table_name = true ;
2054
+ newContext.omit_table_name = true ;
2055
2055
ss << serialize (statement.expression , newContext);
2056
2056
return ss.str ();
2057
2057
}
@@ -2067,7 +2067,7 @@ namespace sqlite_orm {
2067
2067
std::stringstream ss;
2068
2068
ss << " NEW." ;
2069
2069
auto newContext = context;
2070
- newContext.skip_table_name = true ;
2070
+ newContext.omit_table_name = true ;
2071
2071
ss << serialize (statement.expression , newContext);
2072
2072
return ss.str ();
2073
2073
}
@@ -2310,7 +2310,7 @@ namespace sqlite_orm {
2310
2310
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
2311
2311
std::stringstream ss;
2312
2312
auto newContext = context;
2313
- newContext.skip_table_name = false ;
2313
+ newContext.omit_table_name = false ;
2314
2314
ss << static_cast <std::string>(on) << " " << serialize (on.arg , newContext) << " " ;
2315
2315
return ss.str ();
2316
2316
}
@@ -2325,7 +2325,7 @@ namespace sqlite_orm {
2325
2325
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
2326
2326
std::stringstream ss;
2327
2327
auto newContext = context;
2328
- newContext.skip_table_name = false ;
2328
+ newContext.omit_table_name = false ;
2329
2329
ss << " GROUP BY " << streaming_expressions_tuple (statement.args , newContext) << " HAVING "
2330
2330
<< serialize (statement.expression , context);
2331
2331
return ss.str ();
@@ -2341,7 +2341,7 @@ namespace sqlite_orm {
2341
2341
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
2342
2342
std::stringstream ss;
2343
2343
auto newContext = context;
2344
- newContext.skip_table_name = false ;
2344
+ newContext.omit_table_name = false ;
2345
2345
ss << " GROUP BY " << streaming_expressions_tuple (statement.args , newContext);
2346
2346
return ss.str ();
2347
2347
}
@@ -2359,7 +2359,7 @@ namespace sqlite_orm {
2359
2359
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& statement,
2360
2360
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
2361
2361
auto newContext = context;
2362
- newContext.skip_table_name = false ;
2362
+ newContext.omit_table_name = false ;
2363
2363
std::stringstream ss;
2364
2364
ss << " LIMIT " ;
2365
2365
if constexpr (HO) {
@@ -2401,7 +2401,7 @@ namespace sqlite_orm {
2401
2401
SQLITE_ORM_STATIC_CALLOP std::string operator ()(const statement_type& statement,
2402
2402
const Ctx& context) SQLITE_ORM_OR_CONST_CALLOP {
2403
2403
auto newContext = context;
2404
- newContext.skip_table_name = true ;
2404
+ newContext.omit_table_name = true ;
2405
2405
return static_cast <std::string>(statement) + " (" + serialize (statement.column , newContext) + " )" ;
2406
2406
}
2407
2407
};
0 commit comments