All Downloads are FREE. Search and download functionalities are using the official Maven repository.

anorm.package.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) from 2022 The Play Framework Contributors , 2011-2021 Lightbend Inc. 
 */

package anorm

private[anorm] object TopLevel extends TopLevelDefinitions

export TopLevel.{
  TimestampWrapper1,
  TimestampWrapper2,
  StringWrapper2,
  SQL,
  StatementResource,
  statementClassTag,
  resultSetClassTag,
  ResultSetResource,
  features
}

implicit class SqlStringInterpolation(val sc: StringContext) extends AnyVal {
  def SQL(args: ParameterValue*) = {
    val (ts, ps) = TokenizedStatement.stringInterpolation(sc.parts, args)
    SimpleSql(SqlQuery.prepare(ts, ts.names), ps, RowParser(Success(_)))
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy