Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved redesign idea specs into their own directory
- Loading branch information
1 parent
d458a5b
commit 1e471f3
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
docfx_project/specifications/redesign/column-centric-sql-generation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Redesign of [IColumn](xref:FluentMigrator.Runner.Generators.IColumn) | ||
|
||
# Current state | ||
|
||
- Only differentiates between column creation and column | ||
alteration, but there are two ways to create a column | ||
and some databases (I'm looking at you, DB2) have a | ||
different syntax for both. | ||
- Difficult to change the order (some anonymous lambda array) | ||
|
||
# Use cases | ||
|
||
## Primary use cases | ||
|
||
- Column definition in `CREATE TABLE` | ||
- Column definition in `ALTER TABLE ... ADD COLUMN` | ||
- Column definition in `ALTER TABLE ... ALTER COLUMN` | ||
|
||
## Secondary use cases | ||
|
||
- `PRIMARY KEY` constraint | ||
- `FOREIGN KEY` constraint | ||
- Other constraints (optional) | ||
|
||
# How to fix it | ||
|
||
Just some random ideas: | ||
|
||
- Using SQL fragments | ||
- SQL fragments wrapped in classes | ||
- Pattern matching | ||
|
||
# Open questions | ||
|
||
- Maybe different API for all three use cases? | ||
- How to handle the seconday use cases? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters