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

biz.lobachev.annette.data_dictionary.builder.dsl.Indexes.scala Maven / Gradle / Ivy

package biz.lobachev.annette.data_dictionary.builder.dsl

import biz.lobachev.annette.data_dictionary.builder.model.EntityIndex

trait Indexes {
  def index(id: String, name: String, fields: String*) =
    EntityIndex(
      id = id.trim,
      name = name.trim,
      fields = fields
    )

  def uniqueIndex(id: String, name: String, fields: String*) =
    EntityIndex(
      id = id.trim,
      name = name.trim,
      unique = true,
      fields = fields
    )

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy