swc/bundler/tests/.cache/untrusted/ef32fd758010dac8c1b177b2bb34b6ddd41efb06.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

24 lines
784 B
TypeScript

// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/dialects/redshift/schema/columnbuilder.js
import inherits from '../../../deps/inherits@2.0.4/inherits.js';
import ColumnBuilder from '../../../schema/columnbuilder.js';
function ColumnBuilder_Redshift() {
ColumnBuilder.apply(this, arguments);
}
inherits(ColumnBuilder_Redshift, ColumnBuilder);
// primary needs to set not null on non-preexisting columns, or fail
ColumnBuilder_Redshift.prototype.primary = function () {
this.notNullable();
return ColumnBuilder.prototype.primary.apply(this, arguments);
};
ColumnBuilder_Redshift.prototype.index = function () {
this.client.logger.warn('Redshift does not support the creation of indexes.');
return this;
};
export default ColumnBuilder_Redshift;