Skip to content

Instantly share code, notes, and snippets.

@georgepsarakis
georgepsarakis / mysql-triggers.rb
Last active December 13, 2015 20:58
MySQL Trigger Command Line Editor in Ruby
#!/usr/bin/ruby
require 'rubygems'
require 'optparse'
require 'ostruct'
# >> Helper functions
# deep copy
def dcopy(o)
return Marshal.load(Marshal.dump(o))