mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 15:45:36 +01:00
This commit is contained in:
@@ -7,7 +7,7 @@ pub mod updater;
|
||||
pub mod utils;
|
||||
|
||||
use axum::{http::HeaderMap, routing::post, Router};
|
||||
use dotenv::dotenv;
|
||||
use dotenvy::dotenv;
|
||||
use sentry::{integrations::debug_images::DebugImagesIntegration, types::Dsn, ClientOptions};
|
||||
use sentry_tracing::EventFilter;
|
||||
use std::{net::SocketAddr, str::FromStr};
|
||||
|
||||
@@ -18,8 +18,8 @@ use crate::types::{
|
||||
};
|
||||
use crate::utils::read_lines;
|
||||
use sql_parse::{
|
||||
parse_statement, InsertReplace, InsertReplaceType, ParseOptions, SQLArguments, SQLDialect,
|
||||
Statement,
|
||||
parse_statement, InsertReplace, InsertReplaceType, Issues, ParseOptions, SQLArguments,
|
||||
SQLDialect, Statement,
|
||||
};
|
||||
use tokio_util::compat::TokioAsyncReadCompatExt;
|
||||
|
||||
@@ -136,7 +136,7 @@ where
|
||||
Err(err) => return Err(Box::new(err)),
|
||||
};
|
||||
|
||||
let mut issues = Vec::new();
|
||||
let mut issues = Issues::new(&line);
|
||||
let ast = parse_statement(&line, &mut issues, &parse_options);
|
||||
|
||||
if let Some(Statement::InsertReplace(
|
||||
|
||||
Reference in New Issue
Block a user