Created
October 28, 2021 18:22
-
-
Save tripleee/28d6e12282fc070325c979acb0b4b136 to your computer and use it in GitHub Desktop.
MySQL: dump posts.json from metasmoke
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mysql --silent --raw --user root -ppassword metasmoke -e "select json_object('id', id, 'title', title, 'body', body, 'link', link, 'post_creation_date', post_creation_date, 'created_at', created_at, 'updated_at', updated_at, 'site_id', site_id, 'user_link', user_link, 'username', username, 'why', why, 'user_reputation', user_reputation, 'score', score, 'upvote_count', upvote_count, 'downvote_count', downvote_count, 'stack_exchange_user_id', stack_exchange_user_id, 'is_tp', is_tp, 'is_fp', is_fp, 'is_naa', is_naa, 'revision_count', revision_count, 'deleted_at', deleted_at, 'smoke_detector_id', smoke_detector_id, 'autoflagged', autoflagged, 'tags', tags, 'feedbacks_count', feedbacks_count, 'native_id', native_id) from posts" >posts.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment