Extract Documents from Database

in Future-Proof Markdown Text

Project Background

The client database allows saving long-form text in a field as a “document” in standard textual markdown format, but these saved documents are available only in the database, as a data field. It is best if they are extracted from the database regularly, to make them “future proof” and accessible as actual text files, and allow them to be placed into source code version control.



Project AspectNote
Organization TypeIT Services Firm
Completion Date12 Sep 2018
Team Members2
Users10
Project Duration1
Project Effort1
SitesTokyo Office, US Datacenter

Challenges

  • Markdown text documents are stored in a database long text field, and while the db is being backed up, the documents are not accessible as separate files.

Solutions

  • Develop a script to extract the documents as text files, and commit them to git source code version control.

Benefits

  • Documents available as simple markdown formatted text files can be easily migrated to other systems.
  • Storing text documents in a source code version control system like git, allows changes to be tracked as “diffs”.

Technologies

  • Microsoft SQL
  • Shell script using “jq” json manipulation utility
  • cron for scheduling

Request More Information

Can eSolia help your firm with a project like this? Please contact us today.


Gallery

eSolia Tools