File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
androideasysql-library/src/main/java/p32929/androideasysql_library Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ allprojects {
14
14
Add the dependency
15
15
```
16
16
dependencies {
17
- implementation 'com.github.p32929:AndroidEasySQL-Library:1.3.12 '
17
+ implementation 'com.github.p32929:AndroidEasySQL-Library:1.4.0 '
18
18
}
19
19
```
20
20
Original file line number Diff line number Diff line change @@ -262,11 +262,21 @@ public boolean deleteRow(int columnNumber, int valueToMatch) {
262
262
return db .delete (TABLE_NAME , columns .get (columnNumber - 1 ).columnName + " = ?" , new String []{String .valueOf (valueToMatch )}) == 1 ;
263
263
}
264
264
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
+
265
270
public boolean deleteRow (String columnName , int valueToMatch ) {
266
271
SQLiteDatabase db = this .getWritableDatabase ();
267
272
return db .delete (TABLE_NAME , columnName + " = ?" , new String []{String .valueOf (valueToMatch )}) == 1 ;
268
273
}
269
274
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
+
270
280
public void deleteAllDataFromTable () {
271
281
SQLiteDatabase db = this .getWritableDatabase ();
272
282
db .execSQL ("delete from " + TABLE_NAME );
You can’t perform that action at this time.
0 commit comments