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
22
33- Provided driver manager which can be used to register drivers and get a driver by its legal url
44
Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ abstract class MetaKey {
1616
1717enum GdbTypes {
1818 // types in graph database
19- line,
20- point,
21- polygon,
19+ none,
2220 node,
23- tag,
24- prop,
25- path,
2621 relationship,
22+ path,
23+ prop,
2724 step,
25+ dataSet,
26+
27+ list,
28+ map,
29+ set ,
2830
2931 // basic types in dart
3032 bool ,
@@ -43,11 +45,10 @@ enum GdbTypes {
4345 dateTime,
4446 duration,
4547
46- list ,
47- map ,
48- set ,
49- none ,
48+ line ,
49+ point ,
50+ polygon ,
51+ geo ,
5052
5153 unknown,
52- dataSet,
5354}
Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ class ValueMetaData {
1010 final List <ValueMetaData > submetas = [];
1111
1212 /// 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 );
1616 if (idx == - 1 ) {
1717 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;
1923 }
2024 return idx;
2125 }
@@ -27,8 +31,8 @@ class ValueMetaData {
2731
2832 Map <String , dynamic > toJson () {
2933 return {
30- "'type'" : type? .index ,
31- "'name'" : "'$name '" ,
34+ "'type'" : ' \' ${ type ?.name } \' ' ,
35+ "'name'" : name != null ? "'$name '" : null ,
3236 "'submetas'" : submetas.map ((e) => e.toJson ()).toList (),
3337 };
3438 }
Original file line number Diff line number Diff line change 11name : dart_gdbc
22description : A standard interface specification for accessing graph databases based on Dart language
3- version : 0.0.1+1
3+ version : 0.0.1+2
44repository : https://github.com/graph-cn/dart_gdbc
55
66environment :
You can’t perform that action at this time.
0 commit comments