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.cr
change/sql/postgres_query.cr
change/sql/query.cr
change/sql/repo.cr

Macro Summary

Macro Detail

macro gen_db_mapping #

[View source]
macro primary_key(name) #

[View source]
macro source(name) #

Define the name of the source table for an object.


[View source]