2015-05-09 13:58:18 -04:00
|
|
|
|
2016-05-17 01:01:34 +10:00
|
|
|
import inherits from 'inherits';
|
|
|
|
import ColumnCompiler from '../../../schema/columncompiler';
|
2015-05-09 13:58:18 -04:00
|
|
|
|
|
|
|
// 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';
|
|
|
|
|
2016-05-18 19:59:24 +10:00
|
|
|
export default ColumnCompiler_SQLite3;
|