Skip to content

Conversation

@mbrandonw
Copy link
Member

No description provided.


case .some(let label) where label.text == "primaryKey":
guard !declaration.hasMacroApplication("Table")
else { continue }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to the core of this PR but something I noticed. We can allow @Selection types to have a primary key if it is also a @Table.


The core functionality of this library is defined in
[`StructuredQueriesCore`](<doc:/StructuredQueriesCore>), which this module automatically exports.
[`StructuredQueriesCore`](structuredqueriescore), which this module automatically exports.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We previously made this change because it's supported when turning on an experimental docc feature that combines docs of multiple modules. But then it later turned out that setting didn't play nicely with SPI, but we forgot to revert this change.

@mbrandonw mbrandonw merged commit fd1beb8 into main Sep 19, 2025
3 checks passed
@mbrandonw mbrandonw deleted the view-docs branch September 19, 2025 17:47
coenttb pushed a commit to coenttb/swift-structured-queries-postgres that referenced this pull request Oct 14, 2025
* Update docs on temporary views.

* wip

* wip

* wip

* wip

* Allow table selections to have primary key.

* wip

* wip

* wip

* Fix formatting and syntax in Views.md documentation

* Update Views.md

* wip

* wip

---------

Co-authored-by: Stephen Celis <[email protected]>
coenttb pushed a commit to coenttb/swift-structured-queries-postgres that referenced this pull request Oct 15, 2025
* Update docs on temporary views.

* wip

* wip

* wip

* wip

* Allow table selections to have primary key.

* wip

* wip

* wip

* Fix formatting and syntax in Views.md documentation

* Update Views.md

* wip

* wip

---------

Co-authored-by: Stephen Celis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants