Small DuckDB DDL SQL builders.
These helpers return SQL iodata for common analytical setup tasks such as
temporary tables in tests or notebooks. They are not an Ecto migration layer;
execute the generated SQL with QuackDB.query/4 or Repo.query/3.
QuackDB.DDL.create_table("events",
[
id: :integer,
name: :varchar,
payload: :json,
occurred_at: :timestamp
],
temporary: true,
if_not_exists: true
)
Summary
Types
@type column() :: {atom() | String.t(), column_type()} | {atom() | String.t(), column_type(), keyword()}
@type column_type() :: QuackDB.Type.spec()