UNPKG

ydn.db

Version:

Javascript database library for IndexedDB, WebDatabase (WebSQL) and WebStorage (localStorage) storage mechanisms supporting version migration, advanced query and transaction workflow.

96 lines (82 loc) 4.42 kB
/** * @fileoverview Exports for ydn-db core module. * * Exporting variable are defined in separate namespace so that closure * project can use this library without exporting any of ydn-db properties. * Project that want to export ydn-db properties should require this namespace. */ goog.provide('ydn.db.core.exports'); goog.require('ydn.db.core.Storage'); goog.exportProperty(ydn.db.core.Storage.prototype, 'countOf', ydn.db.core.Storage.prototype.countOf); goog.exportProperty(ydn.db.core.Storage.prototype, 'keysOf', ydn.db.core.Storage.prototype.keysOf); goog.exportProperty(ydn.db.core.Storage.prototype, 'open', ydn.db.core.Storage.prototype.open); goog.exportProperty(ydn.db.core.Storage.prototype, 'scan', ydn.db.core.Storage.prototype.scan); goog.exportProperty(ydn.db.core.Storage.prototype, 'valuesOf', ydn.db.core.Storage.prototype.valuesOf); goog.exportProperty(ydn.db.core.DbOperator.prototype, 'countOf', ydn.db.core.DbOperator.prototype.countOf); goog.exportProperty(ydn.db.core.DbOperator.prototype, 'keysOf', ydn.db.core.DbOperator.prototype.keysOf); goog.exportProperty(ydn.db.core.DbOperator.prototype, 'open', ydn.db.core.DbOperator.prototype.open); goog.exportProperty(ydn.db.core.DbOperator.prototype, 'scan', ydn.db.core.DbOperator.prototype.scan); goog.exportProperty(ydn.db.core.DbOperator.prototype, 'valuesOf', ydn.db.core.DbOperator.prototype.valuesOf); goog.exportProperty(ydn.db.core.req.AbstractCursor.prototype, 'getKey', ydn.db.core.req.AbstractCursor.prototype.getKey); goog.exportProperty(ydn.db.core.req.AbstractCursor.prototype, 'getPrimaryKey', ydn.db.core.req.AbstractCursor.prototype.getPrimaryKey); goog.exportProperty(ydn.db.core.req.AbstractCursor.prototype, 'getValue', ydn.db.core.req.AbstractCursor.prototype.getValue); goog.exportProperty(ydn.db.core.req.AbstractCursor.prototype, 'update', ydn.db.core.req.AbstractCursor.prototype.update); goog.exportProperty(ydn.db.core.req.AbstractCursor.prototype, 'clear', ydn.db.core.req.AbstractCursor.prototype.clear); goog.exportSymbol('ydn.db.Iterator', ydn.db.Iterator); goog.exportSymbol('ydn.db.KeyIterator', ydn.db.KeyIterator); goog.exportSymbol('ydn.db.ValueIterator', ydn.db.ValueIterator); goog.exportSymbol('ydn.db.IndexIterator', ydn.db.IndexIterator); goog.exportSymbol('ydn.db.IndexValueIterator', ydn.db.IndexValueIterator); goog.exportProperty(ydn.db.Iterator.prototype, 'getState', ydn.db.Iterator.prototype.getState); goog.exportProperty(ydn.db.Iterator.prototype, 'getKeyRange', ydn.db.Iterator.prototype.getKeyRange); goog.exportProperty(ydn.db.Iterator.prototype, 'getIndexName', ydn.db.Iterator.prototype.getIndexName); goog.exportProperty(ydn.db.Iterator.prototype, 'getStoreName', ydn.db.Iterator.prototype.getStoreName); goog.exportProperty(ydn.db.Iterator.prototype, 'isReversed', ydn.db.Iterator.prototype.isReversed); goog.exportProperty(ydn.db.Iterator.prototype, 'isUnique', ydn.db.Iterator.prototype.isUnique); goog.exportProperty(ydn.db.Iterator.prototype, 'isKeyIterator', ydn.db.Iterator.prototype.isKeyIterator); goog.exportProperty(ydn.db.Iterator.prototype, 'isIndexIterator', ydn.db.Iterator.prototype.isIndexIterator); goog.exportProperty(ydn.db.Iterator.prototype, 'getPrimaryKey', ydn.db.Iterator.prototype.getPrimaryKey); goog.exportProperty(ydn.db.Iterator.prototype, 'getKey', ydn.db.Iterator.prototype.getKey); goog.exportProperty(ydn.db.Iterator.prototype, 'resume', ydn.db.Iterator.prototype.resume); goog.exportProperty(ydn.db.Iterator.prototype, 'reset', ydn.db.Iterator.prototype.reset); goog.exportProperty(ydn.db.Iterator.prototype, 'reverse', ydn.db.Iterator.prototype.reverse); goog.exportProperty(ydn.db.KeyIterator, 'where', ydn.db.KeyIterator.where); goog.exportProperty(ydn.db.ValueIterator, 'where', ydn.db.ValueIterator.where); goog.exportProperty(ydn.db.IndexIterator, 'where', ydn.db.IndexIterator.where); goog.exportProperty(ydn.db.IndexValueIterator, 'where', ydn.db.IndexValueIterator.where); goog.exportSymbol('ydn.db.Streamer', ydn.db.Streamer); goog.exportProperty(ydn.db.Streamer.prototype, 'push', ydn.db.Streamer.prototype.push); goog.exportProperty(ydn.db.Streamer.prototype, 'collect', ydn.db.Streamer.prototype.collect); goog.exportProperty(ydn.db.Streamer.prototype, 'setSink', ydn.db.Streamer.prototype.setSink);