-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathall.py
More file actions
31 lines (26 loc) · 1.04 KB
/
all.py
File metadata and controls
31 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Run with:
#
# rye run python3 -m examples.all
#
# It'd be nice if this could pick up every example automatically, but after
# spending an hour just trying to find a way of making a relative import work,
# I'm not going anywhere near that problem right now.
#
import asyncio
from examples import async_client_insert_example
from examples import async_client_insert_many_example
from examples import async_client_insert_tx_example
from examples import client_insert_example
from examples import client_insert_many_example
from examples import client_insert_many_insert_opts_example
from examples import client_insert_tx_example
if __name__ == "__main__":
asyncio.set_event_loop(asyncio.new_event_loop())
asyncio.run(async_client_insert_example.example())
asyncio.run(async_client_insert_many_example.example())
asyncio.run(async_client_insert_tx_example.example())
client_insert_example.example()
client_insert_many_example.example()
client_insert_many_insert_opts_example.example()
client_insert_tx_example.example()