Open
Conversation
LucDeCaf
commented
Feb 10, 2026
| class Demo | ||
| { | ||
| private record ListResult | ||
| using Spectre.Console; |
Contributor
Author
There was a problem hiding this comment.
This looks like this because part of the formatting converted CRLF in some of the demos to LF
LucDeCaf
commented
Feb 10, 2026
| @@ -1,127 +1,127 @@ | |||
| namespace CommandLine; | |||
Contributor
Author
There was a problem hiding this comment.
Same reason as above for why the diff looks so bad
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discussion: #34
TODO:
Schema.WithOptionsor similar - basically some mechanism for overriding options on schema creationAttributeParsertestsClass based schema definition
Provides a new syntax for defining the PowerSync schema using C# classes and attributes.
Example
This syntax allows you to define both a result type for queries and the PowerSync schema definitions from the same language construct.
Setting options
Options are set primarily in the
Tableattribute. Indexes are defined via theIndexattribute, which can be defined multiple times for the same table. Column-specific settings (i.e. column aliases,ColumnType, andTrackPrevious) can be customised via theColumnattribute. Properties can be excluded from defining SQLite columns via theIgnoredattribute.The
Tableobject also contains a number of ways to manually set the table options.