Skip to content

Instantly share code, notes, and snippets.

@tsukaby
tsukaby / scalike_syntax.md
Last active Dec 4, 2015
Scalikejdbcの共通化
View scalike_syntax.md
// http://scalikejdbc.org/documentation/query-dsl.html
val o = Order.syntax("o")
val orders = withSQL {
  select
    .from(Order as o)
    .where
    .eq(o.productId, 123)
    .and
    .isNotNull(o.orderedAt)
@tsukaby
tsukaby / gist:4a74252f87972515681e
Created Jun 27, 2015
play-json4s 0.4.0 invalid sha1
View gist:4a74252f87972515681e
[tsukaby@tsukamac tmp]% date
2015年 6月27日 土曜日 12時48分46秒 JST
[tsukaby@tsukamac tmp]% 
[tsukaby@tsukamac tmp]% 
[tsukaby@tsukamac tmp]% wget https://repo1.maven.org/maven2/com/github/tototoshi/play-json4s-native_2.11/0.4.0/play-json4s-native_2.11-0.4.0.pom.sha1
--2015-06-27 12:49:49--  https://repo1.maven.org/maven2/com/github/tototoshi/play-json4s-native_2.11/0.4.0/play-json4s-native_2.11-0.4.0.pom.sha1
Resolving repo1.maven.org... 23.235.47.209
Connecting to repo1.maven.org|23.235.47.209|:443... connected.
HTTP request sent, awaiting response... 200 OK
@tsukaby
tsukaby / Main.scala
Created Mar 22, 2015
Skinny-ORM. Eager loading (Bad example). #includes
View Main.scala
object Person extends SkinnyCRUDMapper[Person] {
override def defaultAlias = createAlias("person")
override def extract(rs: WrappedResultSet, n: ResultName[Person]): Person = new Person(
id = rs.get(n.id),
name = rs.get(n.name)
)
val companyRef =
belongsTo[Company](Company, (p, c) => p.copy(company = c))
View getting_started_ja.md

NOTICE: This is just a draft of Skinny framework introduction (written in Japanese for now). English version will be published soon.

Skinny Framework とは

Logo

https://github.com/seratch/skinny-framework

Skinny Framework は Scala のフルスタックな Web アプリケーション開発フレームワークです。2014/03 を目処に最初の安定バージョン 1.0.0 をリリースするべく精力的に開発しています。(追記: 2014/03/28 に 1.0.0 がリリースされました)