Skip to content

Commit 5f96ca4

Browse files
committed
Make ithe IndexDefinition properties public
The [documentation](https://github.com/stephencelis/SQLite.swift/blob/master/Documentation/Index.md#querying-the-schema) suggests that the index schema information can be queried. That requires the `IndexDefinition` properties to be public.
1 parent 5b29e7c commit 5f96ca4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/SQLite/Schema/SchemaDefinitions.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ public struct IndexDefinition: Equatable {
266266
orders: indexSQL.flatMap(orders))
267267
}
268268

269-
let table: String
270-
let name: String
271-
let unique: Bool
272-
let columns: [String]
273-
let `where`: String?
274-
let orders: [String: Order]?
269+
public let table: String
270+
public let name: String
271+
public let unique: Bool
272+
public let columns: [String]
273+
public let `where`: String?
274+
public let orders: [String: Order]?
275275

276276
enum IndexError: LocalizedError {
277277
case tooLong(String, String)

0 commit comments

Comments
 (0)