File tree Expand file tree Collapse file tree 4 files changed +24
-19
lines changed Expand file tree Collapse file tree 4 files changed +24
-19
lines changed Original file line number Diff line number Diff line change 1
- ## 0.0.1+1
1
+ ## 0.0.1+2
2
2
3
3
- Provided driver manager which can be used to register drivers and get a driver by its legal url
4
4
Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ abstract class MetaKey {
16
16
17
17
enum GdbTypes {
18
18
// types in graph database
19
- line,
20
- point,
21
- polygon,
19
+ none,
22
20
node,
23
- tag,
24
- prop,
25
- path,
26
21
relationship,
22
+ path,
23
+ prop,
27
24
step,
25
+ dataSet,
26
+
27
+ list,
28
+ map,
29
+ set ,
28
30
29
31
// basic types in dart
30
32
bool ,
@@ -43,11 +45,10 @@ enum GdbTypes {
43
45
dateTime,
44
46
duration,
45
47
46
- list ,
47
- map ,
48
- set ,
49
- none ,
48
+ line ,
49
+ point ,
50
+ polygon ,
51
+ geo ,
50
52
51
53
unknown,
52
- dataSet,
53
54
}
Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ class ValueMetaData {
10
10
final List <ValueMetaData > submetas = [];
11
11
12
12
/// add submeta (if absent) and return its index
13
- int addSubmeta (ValueMetaData submeta) {
14
- var idx =
15
- submetas. lastIndexWhere (( element) => element.name == submeta.name);
13
+ int addSubmeta (ValueMetaData submeta, List < dynamic > ? values, dynamic val ) {
14
+ var idx = submetas. lastIndexWhere (
15
+ ( element) => element.name == submeta.name && submeta.name != null );
16
16
if (idx == - 1 ) {
17
17
submetas.add (submeta);
18
- return submetas.length - 1 ;
18
+ idx = submetas.length - 1 ;
19
+ }
20
+ if ((values? .length ?? 0 ) <= idx) {
21
+ values? .length = idx + 1 ;
22
+ values? [idx] = val;
19
23
}
20
24
return idx;
21
25
}
@@ -27,8 +31,8 @@ class ValueMetaData {
27
31
28
32
Map <String , dynamic > toJson () {
29
33
return {
30
- "'type'" : type? .index ,
31
- "'name'" : "'$name '" ,
34
+ "'type'" : ' \' ${ type ?.name } \' ' ,
35
+ "'name'" : name != null ? "'$name '" : null ,
32
36
"'submetas'" : submetas.map ((e) => e.toJson ()).toList (),
33
37
};
34
38
}
Original file line number Diff line number Diff line change 1
1
name : dart_gdbc
2
2
description : A standard interface specification for accessing graph databases based on Dart language
3
- version : 0.0.1+1
3
+ version : 0.0.1+2
4
4
repository : https://github.com/graph-cn/dart_gdbc
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments