Add trivial_save.py example

This commit is contained in:
Jacob Hinkle 2022-09-17 12:57:44 -04:00
parent 007c22d3e2
commit 68ec5ca286

10
examples/trivial_save.py Normal file
View File

@ -0,0 +1,10 @@
import dprov
if __name__ == "__main__":
# Inspect the schema of the default in-memory database (created on first
# import of dprov module)
for c in dprov._conn.iterdump():
print(c)
dprov.save_data({}, desc="This example script actually saves nothing")