Skip to content

Commit b7c8649

Browse files
committed
updated to 1.4.0
1 parent 020fa0c commit b7c8649

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ allprojects {
1414
Add the dependency
1515
```
1616
dependencies {
17-
implementation 'com.github.p32929:AndroidEasySQL-Library:1.3.12'
17+
implementation 'com.github.p32929:AndroidEasySQL-Library:1.4.0'
1818
}
1919
```
2020

androideasysql-library/src/main/java/p32929/androideasysql_library/EasyDB.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,21 @@ public boolean deleteRow(int columnNumber, int valueToMatch) {
262262
return db.delete(TABLE_NAME, columns.get(columnNumber - 1).columnName + " = ?", new String[]{String.valueOf(valueToMatch)}) == 1;
263263
}
264264

265+
public boolean deleteRow(int columnNumber, String valueToMatch) {
266+
SQLiteDatabase db = this.getWritableDatabase();
267+
return db.delete(TABLE_NAME, columns.get(columnNumber - 1).columnName + " = ?", new String[]{valueToMatch}) == 1;
268+
}
269+
265270
public boolean deleteRow(String columnName, int valueToMatch) {
266271
SQLiteDatabase db = this.getWritableDatabase();
267272
return db.delete(TABLE_NAME, columnName + " = ?", new String[]{String.valueOf(valueToMatch)}) == 1;
268273
}
269274

275+
public boolean deleteRow(String columnName, String valueToMatch) {
276+
SQLiteDatabase db = this.getWritableDatabase();
277+
return db.delete(TABLE_NAME, columnName + " = ?", new String[]{valueToMatch}) == 1;
278+
}
279+
270280
public void deleteAllDataFromTable() {
271281
SQLiteDatabase db = this.getWritableDatabase();
272282
db.execSQL("delete from " + TABLE_NAME);

0 commit comments

Comments
 (0)