How to use the jsstore.Config.isLogEnabled function in jsstore

To help you get started, we’ve selected a few jsstore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ujjwalguptaofficial / idbstudio / src / service / main_service.ts View on Github external
public executeQry(query: string): Promise {
        if (Config.isLogEnabled === true) {
            console.log("qry from service - " + query);
        }
        const con = this.connection;
        return new Promise((resolve, reject) => {
            var startTime = performance.now();
            this.evaluateQry_(query).then(qryResult => {
                const idbResult: IResult = {
                    timeTaken: (performance.now() - startTime) / 1000,
                    result: qryResult
                };
                resolve(idbResult);
                if (Config.isLogEnabled === true) {
                    console.log("result from service evaluated");
                }
            }).catch(err => {
                reject(err);
github ujjwalguptaofficial / idbstudio / src / scripts / qry_result.ts View on Github external
tempHtml += "";
                        htmlString += tempHtml;
                    }

                    this.resultInnerHtml = htmlString;
                    break;
                case DATA_TYPE.Object:
                    result = JSON.stringify(result);
                case DATA_TYPE.String:
                case DATA_TYPE.Number:
                    this.resultInnerHtml = result;
                    break;
                default:
                    this.resultInnerHtml = JSON.stringify(result);
            }
            if (Config.isLogEnabled) {
                console.table(result);
            }
        }
    }
github ujjwalguptaofficial / idbstudio / src / service / main_service.ts View on Github external
this.evaluateQry_(query).then(qryResult => {
                const idbResult: IResult = {
                    timeTaken: (performance.now() - startTime) / 1000,
                    result: qryResult
                };
                resolve(idbResult);
                if (Config.isLogEnabled === true) {
                    console.log("result from service evaluated");
                }
            }).catch(err => {
                reject(err);
github ujjwalguptaofficial / idbstudio / src / scripts / app.ts View on Github external
setLogFromUrl() {
        var log = Util.getParameterByName("log");
        if (!Util.isNull(log)) {
            Config.isLogEnabled = true;
        }
    }
github ujjwalguptaofficial / idbstudio / src / service / base_service.ts View on Github external
constructor() {
        this.connection.setLogStatus(Config.isLogEnabled);
    }

jsstore

Harness the power of JsStore to streamline database operations in your web applications. With its SQL-like API, JsStore simplifies IndexedDB interactions, enabling developers to easily query, filter, and manipulate data with familiar syntax and efficiency

MIT
Latest version published 18 days ago

Package Health Score

78 / 100
Full package analysis