Skip to content

Instantly share code, notes, and snippets.

@ajdavis
Created October 7, 2019 11:47
Show Gist options
  • Save ajdavis/d32344f3c97e516cbd40578b7b41f609 to your computer and use it in GitHub Desktop.
Save ajdavis/d32344f3c97e516cbd40578b7b41f609 to your computer and use it in GitHub Desktop.
# "pip install pytablewriter"
from pytablewriter import MarkdownTableWriter
writer = MarkdownTableWriter()
writer.headers = ["datum", "before rollback", "after rollback"]
writer.value_matrix = [
["last fetched", "> source's lastApplied", "<= source's lastApplied"],
["rollback ID", "N", "N + 1"],
["prepared txns", "in progress", "aborted"],
["stable timestamp", "???", "oplog common point??"],
["oplogTruncateAfterPoint", "???", "???"],
]
writer.write_table()
import time
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment