Skip to content

Instantly share code, notes, and snippets.

View kaeawc's full-sized avatar

Jason Pearson kaeawc

View GitHub Profile
@kaeawc
kaeawc / PlayScalaReturns.scala
Last active December 18, 2015 22:09
Example of using returns in Scala inside a Play! controller action
package controllers
import play.api._
import play.api.mvc._
object Application extends Controller {
def doStuff:Result = {
if (1 != 1) return InternalServerError("Whoa shit")

#Performing Overlapping Data Migration in MySQL

This example will assume a really simple schema -- users and messages.

CREATE DATABASE data_1;
CREATE DATABASE data_2;

USE data_1;

DROP TABLE IF EXISTS users;