2015-04-22 15:39:29 -04:00
|
|
|
'use strict';
|
2015-04-19 16:31:52 -04:00
|
|
|
|
|
|
|
var inherits = require('inherits');
|
|
|
|
var ColumnCompiler = require('../../../schema/columncompiler');
|
|
|
|
|
|
|
|
// Column Compiler
|
|
|
|
// -------
|
|
|
|
|
|
|
|
function ColumnCompiler_SQLite3() {
|
|
|
|
this.modifiers = ['nullable', 'defaultTo'];
|
|
|
|
ColumnCompiler.apply(this, arguments);
|
|
|
|
}
|
|
|
|
inherits(ColumnCompiler_SQLite3, ColumnCompiler);
|
|
|
|
|
|
|
|
// Types
|
|
|
|
// -------
|
|
|
|
|
|
|
|
ColumnCompiler_SQLite3.prototype.double =
|
|
|
|
ColumnCompiler_SQLite3.prototype.decimal =
|
|
|
|
ColumnCompiler_SQLite3.prototype.floating = 'float';
|
|
|
|
ColumnCompiler_SQLite3.prototype.timestamp = 'datetime';
|
|
|
|
|
|
|
|
module.exports = ColumnCompiler_SQLite3;
|