leafjs/orient

View on GitHub
src/types/number.js

Summary

Maintainability
A
1 hr
Test Coverage
import Type from './type';

export default class NumberType extends Type {
    _serialize(value) {
        return Number(value);
    }

    _deserialize(value) {
        return value;
    }

    static toString() {
        return 'Number';
    }    

    static getDbType(options) {
        return 'DOUBLE';
    }
}