From 0c80dd34ddc93d8da9f952f1d65433dc841ad6fe Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Tue, 11 Aug 2026 14:43:59 -0700 Subject: [PATCH] Surface `ColumnCoding` trait through SQLiteData This adds an explicit passthrough trait like we have for other StructuredQueries traits. --- Package.swift | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Package.swift b/Package.swift index 52445928..50115d26 100644 --- a/Package.swift +++ b/Package.swift @@ -22,14 +22,18 @@ let package = Package( ), ], traits: [ - .trait( - name: "LazyInitializableByDefault", - description: "Optionalize draft properties that have no default." - ), .trait( name: "CasePaths", description: "Introduce support for enum tables." ), + .trait( + name: "ColumnCoding", + description: "Align the Codable coding of tables and selections with their column names." + ), + .trait( + name: "LazyInitializableByDefault", + description: "Optionalize draft properties that have no default." + ), .trait( name: "SuppressPlatformSQLiteAvailability", description: """ @@ -67,11 +71,8 @@ let package = Package( url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.36.0", traits: [ - .trait( - name: "LazyInitializableByDefault", - condition: .when(traits: ["LazyInitializableByDefault"]) - ), .trait(name: "CasePaths", condition: .when(traits: ["CasePaths"])), + .trait(name: "ColumnCoding", condition: .when(traits: ["ColumnCoding"])), .trait( name: "LazyInitializableByDefault", condition: .when(traits: ["LazyInitializableByDefault"])