You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#-----------------------------------------------------------------------------# DB
44
47
"""
45
-
DB(file = ":memory")
48
+
DB(file = ":memory", T = String)
46
49
47
-
Create a graph database (in memory by default). Edge and node properties are saved in the database
48
-
as `TEXT` (see [https://www.sqlite.org/datatype3.html](https://www.sqlite.org/datatype3.html)) via `JSON3.write(props)`.
50
+
Create a graph database (in memory by default).
51
+
- Node and edge properties are saved in the database as `TEXT` (see [https://www.sqlite.org/datatype3.html](https://www.sqlite.org/datatype3.html)) via `JSON3.write(props)`.
52
+
- Node and edge properties will be interpreted as `T` in Julia: `JSON3.read(props, T)`
49
53
50
54
# Interal Table Structure
51
55
@@ -67,10 +71,10 @@ as `TEXT` (see [https://www.sqlite.org/datatype3.html](https://www.sqlite.org/da
0 commit comments