Skip to content

Commit

Permalink
Delete unused
Browse files Browse the repository at this point in the history
  • Loading branch information
takapi327 committed Oct 10, 2023
1 parent 85fb075 commit 7b74185
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions module/ldbc-codegen/src/main/scala/ldbc/codegen/model/Table.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,15 @@

package ldbc.codegen.model

object Table:

trait Options
import ldbc.core.TableOption

object Options:

case class AutoExtendSize(value: Int) extends Options
case class AutoIncrement(value: Int) extends Options
case class AVGRowLength(value: Int) extends Options
case class Character(value: String) extends Options
case class CheckSum(value: 0 | 1) extends Options
case class Collate(value: String) extends Options
case class Comment(value: String) extends Options
case class Compression(value: "ZLIB" | "LZ4" | "NONE") extends Options
case class Connection(value: String) extends Options
case class Directory(value: String) extends Options
case class DelayKeyWrite(value: 0 | 1) extends Options
case class Encryption(value: "Y" | "N") extends Options
case class Engine(
value: "InnoDB" | "MyISAM" | "MEMORY" | "CSV" | "ARCHIVE" | "EXAMPLE" | "FEDERATED" | "HEAP" | "MERGE" | "NDB"
) extends Options
case class EngineAttribute(value: Key.EngineAttribute) extends Options
case class InsertMethod(value: "NO" | "FIRST" | "LAST") extends Options
case class KeyBlockSize(value: Key.KeyBlockSize) extends Options
case class MaxRows(value: Long) extends Options
case class MinRows(value: Long) extends Options
case class PackKeys(value: "0" | "1" | "DEFAULT") extends Options
case class RowFormat(value: "DEFAULT" | "DYNAMIC" | "FIXED" | "COMPRESSED" | "REDUNDANT" | "COMPACT")
extends Options
case class SecondaryEngineAttribute(value: String) extends Options
case class StatsAutoRecalc(value: "0" | "1" | "DEFAULT") extends Options
case class StatsPersistent(value: "0" | "1" | "DEFAULT") extends Options
case class StatsSamplePages(value: Int) extends Options
case class Tablespace(name: String, storage: Option["DISK" | "MEMORY"]) extends Options
case class Union(tableNames: List[String]) extends Options
object Table:

case class CreateStatement(
tableName: String,
columnDefinitions: List[ColumnDefinition],
keyDefinitions: List[Key],
options: Option[List[Options]]
options: Option[List[TableOption]]
)

case class DropStatement(tableName: String)

0 comments on commit 7b74185

Please sign in to comment.