UNPKG

leaf-orient

Version:

OrientDB ODM with support for schemas inspired by mongoose

24 lines (19 loc) 333 B
import Type from './type'; import _ from 'lodash'; /* Javascript long has support for 53bits only */ export default class LongType extends Type { _serialize(value) { return String(value); } _deserialize(value) { return value; } static toString() { return 'Long'; } static getDbType(options) { return 'LONG'; } }