Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /DiamondLightSource_python-murfey /src /murfey /cli /create_db.py
| import argparse | |
| from murfey.util.db import clear, setup | |
| def run(): | |
| parser = argparse.ArgumentParser( | |
| description="Generate the necessary tables for the Murfey database" | |
| ) | |
| parser.add_argument( | |
| "--no-clear", | |
| dest="clear", | |
| default=True, | |
| action="store_false", | |
| help="Do not clear current database tables before creating specified tables", | |
| ) | |
| args = parser.parse_args() | |
| from murfey.server.murfey_db import url | |
| if args.clear: | |
| clear(url()) | |
| setup(url()) | |
Xet Storage Details
- Size:
- 539 Bytes
- Xet hash:
- 0c77c3f49dab4b5c9c3b6944d26bdaeee8da25571491af2fb7f1149ea0bff199
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.