Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696757
test_initdb.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
394 B
Subscribers
None
test_initdb.py
View Options
# Copyright (C) 2015 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
swh.manager
import
manage
def
prepare_db
(
db_url
):
"""DB fresh start.
"""
manage
(
'cleandb'
,
db_url
)
manage
(
'initdb'
,
db_url
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Mon, Aug 18, 9:19 PM (6 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240579
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment