How to use the jsstore.DATA_TYPE.String 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 / demo_service.ts View on Github external
getDbStructure() {
        const customers: ITable = {
            name: 'Customers',
            columns: {
                customerId: { primaryKey: true, autoIncrement: true },
                customerName: { notNull: true, dataType: DATA_TYPE.String },
                contactName: { notNull: true, dataType: DATA_TYPE.String },
                address: { notNull: true, dataType: 'string' },
                city: { notNull: true, dataType: 'string' },
                postalCode: { dataType: 'string' },
                country: { notNull: true, dataType: 'string' }
            }
        };

        const categories: ITable = {
            name: 'Categories',
            columns: {
                categoryId: { primaryKey: true, autoIncrement: true },
                categoryName: { notNull: true, dataType: 'string' },
                description: { notNull: true, dataType: 'string' }
            }
        };
github ujjwalguptaofficial / idbstudio / src / service / demo_service.ts View on Github external
getDbStructure() {
        const customers: ITable = {
            name: 'Customers',
            columns: {
                customerId: { primaryKey: true, autoIncrement: true },
                customerName: { notNull: true, dataType: DATA_TYPE.String },
                contactName: { notNull: true, dataType: DATA_TYPE.String },
                address: { notNull: true, dataType: 'string' },
                city: { notNull: true, dataType: 'string' },
                postalCode: { dataType: 'string' },
                country: { notNull: true, dataType: 'string' }
            }
        };

        const categories: ITable = {
            name: 'Categories',
            columns: {
                categoryId: { primaryKey: true, autoIncrement: true },
                categoryName: { notNull: true, dataType: 'string' },
                description: { notNull: true, dataType: 'string' }
            }
        };
github ujjwalguptaofficial / JsStore / examples / angular / my-app / src / app / service / idb.service.ts View on Github external
const getDatabase = () => {
  const tblStudent: ITable = {
    name: 'Students',
    columns: {
      id: {
        primaryKey: true,
        autoIncrement: true
      },
      name: {
        notNull: true,
        dataType: DATA_TYPE.String
      },
      gender: {
        dataType: DATA_TYPE.String,
        default: 'male'
      },
      country: {
        notNull: true,
        dataType: DATA_TYPE.String
      },
      city: {
        dataType: DATA_TYPE.String,
        notNull: true
      }
    }
  };
  const dataBase: IDataBase = {
    name: dbname,
    tables: [tblStudent]
  };
github ujjwalguptaofficial / JsStore / examples / webpack / src / service / idb_service.js View on Github external
const getDatabase = () => {
    const tblStudent = {
        name: 'Students',
        columns: {
            id: {
                primaryKey: true,
                autoIncrement: true
            },
            name: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            gender: {
                dataType: DATA_TYPE.String,
                default: 'male'
            },
            country: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            city: {
                dataType: DATA_TYPE.String,
                notNull: true
            }
        }
    };
    const dataBase = {
github ujjwalguptaofficial / JsStore / examples / TypeScript Example / src / code / service / idb_helper.ts View on Github external
const getDatabase = () => {
    const tblStudent: ITable = {
        name: 'Students',
        columns: {
            id: {
                primaryKey: true,
                autoIncrement: true
            },
            name: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            gender: {
                dataType: DATA_TYPE.String,
                default: 'male'
            },
            country: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            city: {
                dataType: DATA_TYPE.String,
                notNull: true
            }
        }
    };
    const dataBase: IDataBase = {
github ujjwalguptaofficial / JsStore / examples / webpack with ie support / src / service / idb_service.js View on Github external
const getDatabase = () => {
    const tblStudent = {
        name: 'Students',
        columns: {
            id: {
                primaryKey: true,
                autoIncrement: true
            },
            name: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            gender: {
                dataType: DATA_TYPE.String,
                default: 'male'
            },
            country: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            city: {
                dataType: DATA_TYPE.String,
                notNull: true
            }
        }
    };
    const dataBase = {
        name: dbname,
        tables: [tblStudent]
    };
github mvdicarlo / postybirb / src / app / database / tables / submission-file.table.ts View on Github external
columns: [{
    name: 'id',
    primaryKey: true,
    autoIncrement: true
  }, {
    name: 'submissionId',
    notNull: true,
    dataType: DATA_TYPE.Number
  }, {
    name: 'fileInfo',
    notNull: true,
    dataType: DATA_TYPE.Object
  }, {
    name: 'fileType',
    notNull: true,
    dataType: DATA_TYPE.String
  }, {
    name: 'buffer',
    notNull: true,
    dataType: DATA_TYPE.Object
  }]
}

export { SubmissionFileTable, SubmissionFileTableName }
github mvdicarlo / postybirb / src / app / database / tables / generated-thumbnail.table.ts View on Github external
columns: [{
    name: 'id',
    primaryKey: true,
    autoIncrement: true
  }, {
    name: 'submissionId',
    notNull: true,
    dataType: DATA_TYPE.Number
  }, {
    name: 'submissionFileId',
    notNull: true,
    dataType: DATA_TYPE.Number
  }, {
    name: 'fileType',
    notNull: true,
    dataType: DATA_TYPE.String
  }, {
    name: 'buffer',
    notNull: true,
    dataType: DATA_TYPE.Object
  }]
}

export { GeneratedThumbnailTable, GeneratedThumbnailTableName }
github ujjwalguptaofficial / JsStore / examples / webpack with ie support / src / service / idb_service.js View on Github external
const getDatabase = () => {
    const tblStudent = {
        name: 'Students',
        columns: {
            id: {
                primaryKey: true,
                autoIncrement: true
            },
            name: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            gender: {
                dataType: DATA_TYPE.String,
                default: 'male'
            },
            country: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            city: {
                dataType: DATA_TYPE.String,
                notNull: true
            }
        }
    };
    const dataBase = {
github ujjwalguptaofficial / JsStore / examples / TypeScript Example / src / code / service / idb_helper.ts View on Github external
autoIncrement: true
            },
            name: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            gender: {
                dataType: DATA_TYPE.String,
                default: 'male'
            },
            country: {
                notNull: true,
                dataType: DATA_TYPE.String
            },
            city: {
                dataType: DATA_TYPE.String,
                notNull: true
            }
        }
    };
    const dataBase: IDataBase = {
        name: dbname,
        tables: [tblStudent]
    };
    return dataBase;
};

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 1 month ago

Package Health Score

71 / 100
Full package analysis