@@ -22,7 +22,7 @@ allprojects{
22
22
```
23
23
dependencies {
24
24
...
25
- implementation 'com.github.amitjangid80:multiutillib:v1.6.51 '
25
+ implementation 'com.github.amitjangid80:multiutillib:v1.7.21 '
26
26
}
27
27
```
28
28
@@ -43,7 +43,7 @@ dependencies {
43
43
<dependency>
44
44
<groupId>com.github.amitjangid80</groupId>
45
45
<artifactId>multiutillib</artifactId>
46
- <version>v1.6.51 </version>
46
+ <version>v1.7.21 </version>
47
47
<dependency>
48
48
```
49
49
@@ -219,6 +219,16 @@ apiServices.makeApiCall(apiName, requestMethod, parameters, jsonObject, hasToken
219
219
> Set the dbName in sharedPreferenceData with key name ** 'dbName'** . Shown above in ** ProjectApplication** section.
220
220
221
221
``` java
222
+ // this method will check if a table exists in database
223
+ // true - if table exists in database
224
+ // false - if table not exists in database
225
+ DBHelper dbHelper = new DBHelper (context);
226
+ dbHelper. isTableExists(tableName);
227
+
228
+ // this method will check if a column in a table exists or not
229
+ // returns true if column exists in table or false if not
230
+ dbHelper. checkIsColumnExists(tableName, columnName);
231
+
222
232
// parameters to be passed are as follows:
223
233
//
224
234
// tableName - table on which query should be performed.
@@ -256,7 +266,6 @@ apiServices.makeApiCall(apiName, requestMethod, parameters, jsonObject, hasToken
256
266
//
257
267
// return - the method will return true or false if the operation is successful or failed.
258
268
//
259
- DBHelper dbHelper = new DBHelper (context);
260
269
dbHelper. executeDatabaseOperation(tableName, operation, values, hasConditions, conditionalValues);
261
270
262
271
// this method can be used for inserting bulk data into table using database transaction
@@ -334,7 +343,6 @@ dbHelper.executeSelectQuery(tableName, values, hasConditions, conditionalValues)
334
343
// #endregion COMMENTS FOR executeSelectQuery method
335
344
dbHelper. executeSelectQuery(tableName, values, hasConditions, conditionalValues, class);
336
345
337
-
338
346
// for select query use this method
339
347
//
340
348
// parameters to be passed are as follows:
0 commit comments