Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
Finally rename where? to whereSimple()
Browse files Browse the repository at this point in the history
  • Loading branch information
yanex committed Sep 17, 2015
1 parent bb08d1e commit 690f4d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dsl/static/src/common/SelectQueryBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public class SelectQueryBuilder(val db: SQLiteDatabase, val tableName: String) {
return this
}

public fun `where?`(select: String, vararg args: String): SelectQueryBuilder {
public fun whereSimple(select: String, vararg args: String): SelectQueryBuilder {
if (selectionApplied) {
throw AnkoException("Query selection was already applied.")
}
Expand All @@ -169,8 +169,8 @@ public class SelectQueryBuilder(val db: SQLiteDatabase, val tableName: String) {
return this
}

@deprecated("Use `where?`() instead", replaceWith = ReplaceWith("`where?`(select, *args)"))
@Deprecated("Use whereSimple() instead", replaceWith = ReplaceWith("whereSimple(select, *args)"))
public fun whereSupport(select: String, vararg args: String): SelectQueryBuilder {
return `where?`(select, *args)
return whereSimple(select, *args)
}
}
6 changes: 3 additions & 3 deletions dsl/static/src/common/UpdateQueryBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class UpdateQueryBuilder(
return this
}

public fun `where?`(select: String, vararg args: String): UpdateQueryBuilder {
public fun whereSimple(select: String, vararg args: String): UpdateQueryBuilder {
if (selectionApplied)
throw AnkoException("Query selection was already applied.")

Expand All @@ -66,9 +66,9 @@ public class UpdateQueryBuilder(
return this
}

@Deprecated("Use `where?`() instead", replaceWith = ReplaceWith("`where?`(select, *args)"))
@Deprecated("Use whereSimple() instead", replaceWith = ReplaceWith("whereSimple(select, *args)"))
public fun whereSupport(select: String, vararg args: String): UpdateQueryBuilder {
return `where?`(select, *args)
return whereSimple(select, *args)
}

public fun exec(): Int {
Expand Down

0 comments on commit 690f4d4

Please sign in to comment.