Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
2e1ee73e
Commit
2e1ee73e
authored
16 years ago
by
Daniel Rios
Browse files
Options
Downloads
Patches
Plain Diff
added some information on how to dump the tables
parent
5c449459
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/t/README
+20
-0
20 additions, 0 deletions
modules/t/README
with
20 additions
and
0 deletions
modules/t/README
+
20
−
0
View file @
2e1ee73e
...
...
@@ -33,3 +33,23 @@ runtests.pl t/gene.t t/exon.t t/densityFeature.t
# run a single test
perl t/gene.t
If you need to modify the schema of the database and dump the new
table structure and data before commiting to CVS, the quickest way
to do it is:
Example: we want to dump the external_db table
#to dump the table structure, without headers or any additional MySQL specific information
mysqldump -d --compact -h ens-research -u ensro my_database external_db > external_db.sql
#to dump the data in a tab delimited file format and replacing NULL with \N
mysql -BN -e 'select * from external_db' -h ens-research -u ensro my_database | sed 's/NULL/\\N/g' > external_db.txt
The 2 files that are created, (in the above example are external_db.sql and external_db.txt)
are the ones that will have to be committed to CVS under:
ensembl/modules/t/test-genome-DBs/homo_sapiens/core/
This way to dump data is only suitable for small tables, (like the ones in the unit tests). For bigger tables, you might need
to use the standard mysqldump.
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment