Skip to content

Instantly share code, notes, and snippets.

@iisaka51
Created October 25, 2022 04:18
Show Gist options
  • Save iisaka51/cef98c340afa65d95f9d50246c8a25c2 to your computer and use it in GitHub Desktop.
Save iisaka51/cef98c340afa65d95f9d50246c8a25c2 to your computer and use it in GitHub Desktop.
example of read_contests
In [1]: from datajuggler import serializer as io
In [2]: io.read_contents('sqlite:///users.sqlite#users')
Out[2]:
[{'id': 1, 'name': 'David Coverdale', 'age': 71, 'belongs': 'Whitesnake'},
{'id': 2, 'name': 'Neal Schon ', 'age': 68, 'belongs': 'Journey'},
{'id': 3, 'name': 'Tom Scholz', 'age': 75, 'belongs': 'Boston'},
{'id': 4, 'name': 'David Gilmour', 'age': 75, 'belongs': 'Pink Floyd'},
{'id': 5, 'name': 'Ann Wilson', 'age': 71, 'belongs': 'Heart'},
{'id': 6, 'name': 'Nacy Wilson', 'age': 67, 'belongs': 'Heart'}]
In [3]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment