@@ -22,7 +22,7 @@ allprojects{
2222```
2323dependencies {
2424 ...
25- implementation 'com.github.amitjangid80:multiutillib:v1.6.51 '
25+ implementation 'com.github.amitjangid80:multiutillib:v1.7.21 '
2626}
2727```
2828
@@ -43,7 +43,7 @@ dependencies {
4343<dependency>
4444 <groupId>com.github.amitjangid80</groupId>
4545 <artifactId>multiutillib</artifactId>
46- <version>v1.6.51 </version>
46+ <version>v1.7.21 </version>
4747<dependency>
4848```
4949
@@ -219,6 +219,16 @@ apiServices.makeApiCall(apiName, requestMethod, parameters, jsonObject, hasToken
219219> Set the dbName in sharedPreferenceData with key name ** 'dbName'** . Shown above in ** ProjectApplication** section.
220220
221221``` 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+
222232// parameters to be passed are as follows:
223233//
224234// tableName - table on which query should be performed.
@@ -256,7 +266,6 @@ apiServices.makeApiCall(apiName, requestMethod, parameters, jsonObject, hasToken
256266//
257267// return - the method will return true or false if the operation is successful or failed.
258268//
259- DBHelper dbHelper = new DBHelper (context);
260269dbHelper. executeDatabaseOperation(tableName, operation, values, hasConditions, conditionalValues);
261270
262271// this method can be used for inserting bulk data into table using database transaction
@@ -334,7 +343,6 @@ dbHelper.executeSelectQuery(tableName, values, hasConditions, conditionalValues)
334343// #endregion COMMENTS FOR executeSelectQuery method
335344dbHelper. executeSelectQuery(tableName, values, hasConditions, conditionalValues, class);
336345
337-
338346// for select query use this method
339347//
340348// parameters to be passed are as follows:
0 commit comments