- Drop iterate methods without filtering
- Support for Template1-10
- Support for Query1-10
- Support for other operators: gt, lt, ge, le, mb, ne, nm, nn, nl, mt
- Support for boolean, date, timestamp, double, float, long, short, byte types
- Support for add, delete, remove, etc operations
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
{ | |
tokens = [ | |
crlf='regexp:\n' | |
escaped_crlf='regexp:^\\(\n)' | |
comment='regexp:[#|!][^\n]*' | |
nonId='regexp:[:=\s\\]' | |
sepearator='regexp:\s*(=|:)\s*' | |
id='regexp:[^#|!:=\s\n\\]([^:=\s\n\\]|(\\\s))*' | |
] | |
} |
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
package org.jetbrains.fluid.java; | |
import org.objectweb.asm.Label; | |
import org.objectweb.asm.MethodVisitor; | |
import org.objectweb.asm.Opcodes; | |
import org.objectweb.asm.commons.AdviceAdapter; | |
public class ReplaceMonitorWithTryCatchVisitor extends AdviceAdapter implements Opcodes { | |
private Label endTry; | |
private Label startCatch; |
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
.yt-agile-table__row__cell { | |
border-color: #232e34; | |
border-right: 1px solid #232e34; | |
border-left: 1px solid #232e34; | |
} | |
.yt-agile-table .yt-agile-table__row { | |
border-bottom: 1px solid #232e34; | |
} |
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
package models | |
import java.sql.Timestamp | |
import javax.inject.{Inject, Singleton} | |
import play.api.db.slick.{HasDatabaseConfigProvider, DatabaseConfigProvider} | |
import slick.driver.JdbcProfile | |
case class Topic(id: Long = 0, groupId: Long, userId: Long, date: Timestamp, text: String) extends AbstractGroupMessage |
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
package models | |
import javax.inject.{Inject, Singleton} | |
import play.api.db.slick.{HasDatabaseConfigProvider, DatabaseConfigProvider} | |
import slick.driver.JdbcProfile | |
import scala.concurrent.ExecutionContext.Implicits.global | |
case class Group(id: Long = 0, name: String) | |
@Singleton() |
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
(dao.topics outerJoin dao.comments on { case (topic, comment) => comment.topicId === topic.id }).list | |
Results in | |
play.api.Application$$anon$1: Execution exception[[SlickException: Expected a collection type, found UnassignedType]] | |
at play.api.Application$class.handleError(Application.scala:296) ~[play_2.11-2.3.7.jar:2.3.7] | |
at play.api.DefaultApplication.handleError(Application.scala:402) [play_2.11-2.3.7.jar:2.3.7] | |
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205) [play_2.11-2.3.7.jar:2.3.7] | |
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202) [play_2.11-2.3.7.jar:2.3.7] | |
at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) [scala-library-2.11.5.jar:na] |
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
// Get a document | |
Albums.find { details.artistId.equal(artistId) }.subscribe(onNext = { album -> | |
}, onError = { | |
}) | |
// Get selected fields of a document | |
Albums.find { id.equal(albumId) }.projection { sku + details.title + pricing }.subscribe(onNext = { | |
val (sku, title, pricing) = it | |
}, onError = { | |
}) |
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
import kotlin.nosql.* | |
import kotlin.nosql.dynamodb.* | |
object Users : Table() { | |
val id = string("id", length = 10).id() // PKColumn<String, Users> | |
val name = string("name", length = 50) // Column<String, Users> | |
val requiredCityId = integer("required_city_id") // Column<Int, Users> | |
val optionalCityId = integer("optional_city_id").nullable() // Column<Int?, Users> | |
val all = id + name + requiredCityId + optionalCityId // Template4<Users, String, Int, Int?> |
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
import kotlin.nosql.* | |
object Cities : Table() { | |
val id = integer("id").id().generated() // GeneratedPKColumn<Int, Cities> | |
val name = varchar("name", 50) // Column<String, Cities> | |
val all = id + name // Template2<Cities, Int, String> Select template | |
val values = name // Column<String, Cities> | |
} |
NewerOlder