Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123541
test_initdb.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
405 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.loader.git.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
Sat, Jun 21, 5:39 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240523
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment