lib/serialization: add README.md
[nit.git] / lib / linux / linux_data_store.nit
index b7cedea..4393f4a 100644 (file)
@@ -34,7 +34,7 @@ private class LinuxStore
        # Sqlite3 table used
        fun db_table: String do return "data_store"
 
-       private var db_cache: nullable Sqlite3DB = null
+       var db_cache: nullable Sqlite3DB = null
 
        # Database to use to implement the `DataStore`
        fun db: nullable Sqlite3DB
@@ -95,7 +95,7 @@ private class LinuxStore
                if db == null then return
 
                # Serialize
-               var stream = new StringOStream
+               var stream = new StringWriter
                var serializer = new JsonSerializer(stream)
                serializer.serialize value
                var serialized = stream.to_s