ldbc.codegen.model.SetDefinition.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ldbc-codegen_3 Show documentation
Show all versions of ldbc-codegen_3 Show documentation
Project to generate code from Sql
/**
* Copyright (c) 2023-2024 by Takahiko Tominaga
* This software is licensed under the MIT License (MIT).
* For more information see LICENSE or https://opensource.org/licenses/MIT
*/
package ldbc.codegen.model
/**
* A model to hold the results of parsing the SET syntax for variable assignments.
*
* @param variable
* Definition Variable Name
* @param expr
* Variable value
*/
case class SetDefinition(
variable: String,
expr: String
):
/** SET syntax for variable assignment */
val statement: String = s"SET $variable = $expr"