Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream Changes - 1 #126

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading