Ddl

zio.blocks.sql.Ddl
object Ddl

Helpers for generating DDL fragments (CREATE TABLE, DROP TABLE).

Attributes

Source
Ddl.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Ddl.type

Members list

Value members

Concrete methods

def createTable(tableName: String, columns: IndexedSeq[ColumnDef]): Frag

Produces a CREATE TABLE IF NOT EXISTS (...) fragment. Each column is rendered as name sqlType [NOT NULL].

Produces a CREATE TABLE IF NOT EXISTS (...) fragment. Each column is rendered as name sqlType [NOT NULL].

Attributes

Source
Ddl.scala
def dropTable(tableName: String): Frag

Produces a DROP TABLE IF EXISTS fragment.

Produces a DROP TABLE IF EXISTS fragment.

Attributes

Source
Ddl.scala