Module Simantics/GraphFile

This module is undocumented. This is a list of its definitions.

getData :: Resource -> <ReadGraph> Vector Byte

Returns contents of a GraphFile as a byte array

getDataAsString :: Resource -> <ReadGraph> String

Returns contents of a GraphFile as a String

toGraph :: File -> Resource -> <WriteGraph> ()

Writes contents of a file to DB, including the filename and timestamp

toGraphWithPath :: String -> Resource -> <WriteGraph> ()

Writes contents of a file to DB, including the filename and timestamp

toTempFile :: Resource -> <ReadGraph> File

Creates a temp file of a GraphFile resource

writeDataToFile :: Resource -> File -> <ReadGraph> ()

Writes contents of a GraphFile into a regular File

writeDataToGraph :: File -> Resource -> <WriteGraph> ()

Writes contents of a file to DB, including the timestamp

writeDataToGraphBytes :: Vector Byte -> Resource -> <WriteGraph> ()

Writes contents of a byte array to DB