Skip to content

Commit

Permalink
Upstream Changes - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Mar 12, 2024
1 parent 280900e commit eaa31f2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ target/
firedbg/
Cargo.lock
*.sublime*
.vscode
.vscode
.DS_Store
2 changes: 1 addition & 1 deletion src/mysql/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl SchemaProbe for MySql {
.take()
}

fn has_index<T, C>(table: T, index: C) -> SelectStatement
fn has_index<T, C>(&self, table: T, index: C) -> SelectStatement
where
T: AsRef<str>,
C: AsRef<str>,
Expand Down
2 changes: 1 addition & 1 deletion src/postgres/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl SchemaProbe for Postgres {
.take()
}

fn has_index<T, C>(table: T, index: C) -> SelectStatement
fn has_index<T, C>(&self, table: T, index: C) -> SelectStatement
where
T: AsRef<str>,
C: AsRef<str>,
Expand Down
6 changes: 3 additions & 3 deletions src/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub trait SchemaProbe {

fn query_tables() -> SelectStatement;

fn has_table<T>(table: T) -> SelectStatement
fn has_table<T>(&self, table: T) -> SelectStatement
where
T: AsRef<str>,
{
Expand All @@ -17,7 +17,7 @@ pub trait SchemaProbe {
.take()
}

fn has_column<T, C>(table: T, column: C) -> SelectStatement
fn has_column<T, C>(&self, table: T, column: C) -> SelectStatement
where
T: AsRef<str>,
C: AsRef<str>,
Expand All @@ -37,7 +37,7 @@ pub trait SchemaProbe {
.take()
}

fn has_index<T, C>(table: T, index: C) -> SelectStatement
fn has_index<T, C>(&self, table: T, index: C) -> SelectStatement
where
T: AsRef<str>,
C: AsRef<str>;
Expand Down
4 changes: 2 additions & 2 deletions src/sqlite/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl SchemaProbe for Sqlite {
.take()
}

fn has_column<T, C>(table: T, column: C) -> SelectStatement
fn has_column<T, C>(&self, table: T, column: C) -> SelectStatement
where
T: AsRef<str>,
C: AsRef<str>,
Expand All @@ -35,7 +35,7 @@ impl SchemaProbe for Sqlite {
.take()
}

fn has_index<T, C>(table: T, index: C) -> SelectStatement
fn has_index<T, C>(&self, table: T, index: C) -> SelectStatement
where
T: AsRef<str>,
C: AsRef<str>,
Expand Down

0 comments on commit eaa31f2

Please sign in to comment.