columncompiler.js 899 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. exports.__esModule = true;
  3. var _inherits = require('inherits');
  4. var _inherits2 = _interopRequireDefault(_inherits);
  5. var _columncompiler = require('../../../schema/columncompiler');
  6. var _columncompiler2 = _interopRequireDefault(_columncompiler);
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. // Column Compiler
  9. // -------
  10. function ColumnCompiler_SQLite3() {
  11. _columncompiler2.default.apply(this, arguments);
  12. this.modifiers = ['nullable', 'defaultTo'];
  13. }
  14. (0, _inherits2.default)(ColumnCompiler_SQLite3, _columncompiler2.default);
  15. // Types
  16. // -------
  17. ColumnCompiler_SQLite3.prototype.double = ColumnCompiler_SQLite3.prototype.decimal = ColumnCompiler_SQLite3.prototype.floating = 'float';
  18. ColumnCompiler_SQLite3.prototype.timestamp = 'datetime';
  19. exports.default = ColumnCompiler_SQLite3;
  20. module.exports = exports['default'];