columnbuilder.js 1021 B

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. exports.__esModule = true;
  3. var _inherits = require('inherits');
  4. var _inherits2 = _interopRequireDefault(_inherits);
  5. var _helpers = require('../../../helpers');
  6. var _columnbuilder = require('../../../schema/columnbuilder');
  7. var _columnbuilder2 = _interopRequireDefault(_columnbuilder);
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function ColumnBuilder_Redshift() {
  10. _columnbuilder2.default.apply(this, arguments);
  11. }
  12. (0, _inherits2.default)(ColumnBuilder_Redshift, _columnbuilder2.default);
  13. // primary needs to set not null on non-preexisting columns, or fail
  14. ColumnBuilder_Redshift.prototype.primary = function () {
  15. this.notNullable();
  16. return _columnbuilder2.default.prototype.primary.apply(this, arguments);
  17. };
  18. ColumnBuilder_Redshift.prototype.index = function () {
  19. (0, _helpers.warn)('Redshift does not support the creation of indexes.');
  20. return this;
  21. };
  22. exports.default = ColumnBuilder_Redshift;
  23. module.exports = exports['default'];