UNPKG
leaf-orient
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
OrientDB ODM with support for schemas inspired by mongoose
github.com/leafjs/orient
leafjs/orient
leaf-orient
/
src
/
types
/
number.js
19 lines
(15 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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'
; } }