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

Remove deprecated raw_where methods #653

Merged
Merged
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
10 changes: 0 additions & 10 deletions src/avram/query_builder.cr
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,6 @@ class Avram::QueryBuilder
self
end

@[Deprecated("Use `#where` instead.")]
def raw_where(where_clause : Avram::Where::Raw)
where(where_clause)
end

def or(&block : Avram::QueryBuilder -> Avram::QueryBuilder)
if @wheres.empty?
raise Avram::InvalidQueryError.new("Cannot call `or` before calling a `where`")
Expand Down Expand Up @@ -333,11 +328,6 @@ class Avram::QueryBuilder
@wheres
end

@[Deprecated("Use `#wheres` instead. Raw wheres are included.")]
def raw_wheres
wheres.select(&.is_a?(Avram::Where::Raw))
end

private def prepared_statement_values
wheres.compact_map do |sql_clause|
sql_clause.value if sql_clause.is_a?(Avram::Where::ValueHoldingSqlClause)
Expand Down