Skip to content

Commit

Permalink
Make SourceType and SourceConn clonable
Browse files Browse the repository at this point in the history
  • Loading branch information
gruuya authored and wangxiaoying committed Nov 9, 2022
1 parent d6f8180 commit 978065d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connectorx/src/source_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::anyhow;
use std::convert::TryFrom;
use url::Url;

#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum SourceType {
Postgres,
SQLite,
Expand All @@ -15,6 +15,7 @@ pub enum SourceType {
DuckDB,
}

#[derive(Debug, Clone)]
pub struct SourceConn {
pub ty: SourceType,
pub conn: Url,
Expand Down

0 comments on commit 978065d

Please sign in to comment.