updated build system
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
				
			This commit is contained in:
		@@ -54,8 +54,8 @@ auto db_delete::dump() const -> std::string {
 | 
			
		||||
auto db_delete::go() const -> db_result<context> {
 | 
			
		||||
  sqlite3_stmt *stmt_ptr{nullptr};
 | 
			
		||||
  auto query_str = dump();
 | 
			
		||||
  auto res = sqlite3_prepare_v2(&context_->db3, query_str.c_str(), -1,
 | 
			
		||||
                                &stmt_ptr, nullptr);
 | 
			
		||||
  auto res = sqlite3_prepare_v2(context_->db3, query_str.c_str(), -1, &stmt_ptr,
 | 
			
		||||
                                nullptr);
 | 
			
		||||
  context_->stmt = db3_stmt_t{
 | 
			
		||||
      stmt_ptr,
 | 
			
		||||
      sqlite3_statement_deleter(),
 | 
			
		||||
@@ -88,7 +88,7 @@ auto db_delete::go() const -> db_result<context> {
 | 
			
		||||
 | 
			
		||||
auto db_delete::group(context::w_t::group_func_t func) -> context::w_t::wn_t {
 | 
			
		||||
  if (not context_->where.has_value()) {
 | 
			
		||||
    context_->where = context::w_t{context_};
 | 
			
		||||
    context_->where = context::w_t{0U, context_};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return context_->where->group(std::move(func));
 | 
			
		||||
@@ -96,7 +96,7 @@ auto db_delete::group(context::w_t::group_func_t func) -> context::w_t::wn_t {
 | 
			
		||||
 | 
			
		||||
auto db_delete::where(std::string column_name) const -> context::w_t::cn_t {
 | 
			
		||||
  if (not context_->where.has_value()) {
 | 
			
		||||
    context_->where = context::w_t{context_};
 | 
			
		||||
    context_->where = context::w_t{0U, context_};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return context_->where->where(column_name);
 | 
			
		||||
 
 | 
			
		||||
@@ -62,8 +62,8 @@ auto db_insert::dump() const -> std::string {
 | 
			
		||||
auto db_insert::go() const -> db_result<context> {
 | 
			
		||||
  sqlite3_stmt *stmt_ptr{nullptr};
 | 
			
		||||
  auto query_str = dump();
 | 
			
		||||
  auto res = sqlite3_prepare_v2(&context_->db3, query_str.c_str(), -1,
 | 
			
		||||
                                &stmt_ptr, nullptr);
 | 
			
		||||
  auto res = sqlite3_prepare_v2(context_->db3, query_str.c_str(), -1, &stmt_ptr,
 | 
			
		||||
                                nullptr);
 | 
			
		||||
  context_->stmt = db3_stmt_t{
 | 
			
		||||
      stmt_ptr,
 | 
			
		||||
      sqlite3_statement_deleter(),
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,7 @@
 | 
			
		||||
 | 
			
		||||
namespace repertory::utils::db::sqlite {
 | 
			
		||||
void db_select::context::clear() {
 | 
			
		||||
  std::cout << "clear" << std::endl;
 | 
			
		||||
  columns.clear();
 | 
			
		||||
  count_columns.clear();
 | 
			
		||||
  limit.reset();
 | 
			
		||||
@@ -134,8 +135,8 @@ auto db_select::dump() const -> std::string {
 | 
			
		||||
auto db_select::go() const -> db_result<context> {
 | 
			
		||||
  sqlite3_stmt *stmt_ptr{nullptr};
 | 
			
		||||
  auto query_str = dump();
 | 
			
		||||
  auto res = sqlite3_prepare_v2(&context_->db3, query_str.c_str(), -1,
 | 
			
		||||
                                &stmt_ptr, nullptr);
 | 
			
		||||
  auto res = sqlite3_prepare_v2(context_->db3, query_str.c_str(), -1, &stmt_ptr,
 | 
			
		||||
                                nullptr);
 | 
			
		||||
  context_->stmt = db3_stmt_t{
 | 
			
		||||
      stmt_ptr,
 | 
			
		||||
      sqlite3_statement_deleter(),
 | 
			
		||||
@@ -168,7 +169,7 @@ auto db_select::go() const -> db_result<context> {
 | 
			
		||||
 | 
			
		||||
auto db_select::group(context::w_t::group_func_t func) -> context::w_t::wn_t {
 | 
			
		||||
  if (not context_->where.has_value()) {
 | 
			
		||||
    context_->where = context::w_t{context_};
 | 
			
		||||
    context_->where = context::w_t{0U, context_};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return context_->where->group(std::move(func));
 | 
			
		||||
@@ -192,7 +193,7 @@ auto db_select::order_by(std::string column_name,
 | 
			
		||||
 | 
			
		||||
auto db_select::where(std::string column_name) const -> context::w_t::cn_t {
 | 
			
		||||
  if (not context_->where.has_value()) {
 | 
			
		||||
    context_->where = context::w_t{context_};
 | 
			
		||||
    context_->where = context::w_t{0U, context_};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return context_->where->where(column_name);
 | 
			
		||||
 
 | 
			
		||||
@@ -95,8 +95,8 @@ auto db_update::dump() const -> std::string {
 | 
			
		||||
auto db_update::go() const -> db_result<context> {
 | 
			
		||||
  sqlite3_stmt *stmt_ptr{nullptr};
 | 
			
		||||
  auto query_str = dump();
 | 
			
		||||
  auto res = sqlite3_prepare_v2(&context_->db3, query_str.c_str(), -1,
 | 
			
		||||
                                &stmt_ptr, nullptr);
 | 
			
		||||
  auto res = sqlite3_prepare_v2(context_->db3, query_str.c_str(), -1, &stmt_ptr,
 | 
			
		||||
                                nullptr);
 | 
			
		||||
  context_->stmt = db3_stmt_t{
 | 
			
		||||
      stmt_ptr,
 | 
			
		||||
      sqlite3_statement_deleter(),
 | 
			
		||||
@@ -157,7 +157,7 @@ auto db_update::go() const -> db_result<context> {
 | 
			
		||||
 | 
			
		||||
auto db_update::group(context::w_t::group_func_t func) -> context::w_t::wn_t {
 | 
			
		||||
  if (not context_->where.has_value()) {
 | 
			
		||||
    context_->where = context::w_t{context_};
 | 
			
		||||
    context_->where = context::w_t{0U, context_};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return context_->where->group(std::move(func));
 | 
			
		||||
@@ -176,7 +176,7 @@ auto db_update::order_by(std::string column_name,
 | 
			
		||||
 | 
			
		||||
auto db_update::where(std::string column_name) const -> context::w_t::cn_t {
 | 
			
		||||
  if (not context_->where.has_value()) {
 | 
			
		||||
    context_->where = context::w_t{context_};
 | 
			
		||||
    context_->where = context::w_t{0U, context_};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return context_->where->where(column_name);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user