copy
Creates and returns a deep copy of this builder. Useful for creating query variants from a shared base without modifying the original.
val base = dataAccess.select("*").from("legions").orderBy("name ASC")
val active = base.copy().where("status = 'ON_MARCH'")
val garrisoned = base.copy().where("status = 'GARRISONED'")Content copied to clipboard