query.js 674 B

12345678910111213141516171819202122
  1. /**
  2. * DevExtreme (data/query.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var arrayQueryImpl = require("./array_query");
  11. var remoteQueryImpl = require("./remote_query");
  12. var queryImpl = {
  13. array: arrayQueryImpl,
  14. remote: remoteQueryImpl
  15. };
  16. var query = function() {
  17. var impl = Array.isArray(arguments[0]) ? "array" : "remote";
  18. return queryImpl[impl].apply(this, arguments)
  19. };
  20. module.exports = query;
  21. module.exports.queryImpl = queryImpl;
  22. module.exports.default = module.exports;