macro primary_key(name)
#
module Change::SQL
Overview
This is an incredibly basic module for SQL generation. To start, I just need a way of querying, inserting, updating, and deleting. No corner cases, associations, or anything like that are intended to be supported by this basic implementation.
Expanding this into a proper DSL/querying library can come later (see
query-ideas.cr
for an example of what this may look like in the future).
Defined in:
change/sql.crchange/sql/postgres_query.cr
change/sql/query.cr
change/sql/repo.cr
Macro Summary
- gen_db_mapping
- primary_key(name)
-
source(name)
Define the name of the source table for an object.