mirror of
https://github.com/knex/knex.git
synced 2025-07-24 17:31:01 +00:00
21 lines
580 B
JavaScript
21 lines
580 B
JavaScript
'use strict';
|
|
|
|
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; |