<commit_before>use crate::insertable::{BatchInsert, OwnedBatchInsert};
#[cfg(feature = "sqlite")]
use crate::query_builder::where_clause::{BoxedWhereClause, WhereClause};
use crate::query_builder::{
    AstPass, BoxedSelectStatement, Query, QueryFragment, SelectStatement,
    ValuesClause,
};
use crate::query_builder::insert_statement::InsertFromSelect;

use crate::result::QueryResult;

pub trait IntoConflictValueClause {
    type ValueClause;

    fn into_value_clause(self) -> Self::ValueClause;
}

#[derive(Debug, Clone, Copy)]
pub struct OnConflictSelectWrapper<S>(S);

impl<Q> Query for OnConflictSelectWrapper<Q>
where
    Q: Query,
{
    type SqlType = Q::SqlType;
}

#[cfg(feature = "postgres")]
impl<S> QueryFragment<crate::pg::Pg> for OnConflictSelectWrapper<S>
where
    S: QueryFragment<crate::pg::Pg>,
{<commit_msg>Rustfmt<commit_after>use crate::insertable::{BatchInsert, OwnedBatchInsert};
use crate::query_builder::insert_statement::InsertFromSelect;
#[cfg(feature = "sqlite")]
use crate::query_builder::where_clause::{BoxedWhereClause, WhereClause};
use crate::query_builder::{
    AstPass, BoxedSelectStatement, Query, QueryFragment, SelectStatement, ValuesClause,
};

use crate::result::QueryResult;

pub trait IntoConflictValueClause {
    type ValueClause;

    fn into_value_clause(self) -> Self::ValueClause;
}

#[derive(Debug, Clone, Copy)]
pub struct OnConflictSelectWrapper<S>(S);

impl<Q> Query for OnConflictSelectWrapper<Q>
where
    Q: Query,
{
    type SqlType = Q::SqlType;
}

#[cfg(feature = "postgres")]
impl<S> QueryFragment<crate::pg::Pg> for OnConflictSelectWrapper<S>
where
    S: QueryFragment<crate::pg::Pg>,
{
{'fraction_non_alphanumeric': 0.13905683192261184, 'fraction_numerical': 0.0, 'mean_word_length': 7.664921465968586, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1367720', 'n_tokens_mistral': 535, 'n_tokens_neox': 552, 'n_words': 106}