mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Merge branch 'development' into dev/cte
# Conflicts: # GRDB/QueryInterface/Request/Association/Association.swift # GRDB/QueryInterface/Request/QueryInterfaceRequest.swift # GRDB/QueryInterface/SQL/SQLQuery.swift # GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift # GRDB/QueryInterface/SQLGeneration/SQLQueryGenerator.swift
This commit is contained in:
commit
b60f39e7cc
9 files changed
+82
-226
No files matched your search
@@ -293,18 +293,7 @@ extension Association {
|
||||
extension Association {
|
||||
/// :nodoc:
|
||||
public var databaseTableName: String {
|
||||
guard let tableName = _sqlAssociation.destination.relation.source.tableName else {
|
||||
// Table name is only nil for SQLSource.subquery, which is only
|
||||
// involved in the "trivial count query" (see SQLQuery.trivialCountQuery):
|
||||
//
|
||||
// // SELECT COUNT(*) FROM (SELECT * FROM player LIMIT 10)
|
||||
// let request = Player.limit(10)
|
||||
// let count = try request.fetchCount(db)
|
||||
//
|
||||
// This fatal error can not currently happen.
|
||||
fatalError("Association is not based on a database table")
|
||||
}
|
||||
return tableName
|
||||
_sqlAssociation.destination.relation.source.tableName
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,20 +20,8 @@ public struct JoinAssociation<Origin, Destination>: AssociationToOne {
|
||||
to relation: SQLRelation,
|
||||
condition: SQLAssociationCondition)
|
||||
{
|
||||
guard let tableName = relation.source.tableName else {
|
||||
// Table name is only nil for SQLSource.subquery, which is only
|
||||
// involved in the "trivial count query" (see SQLQuery.trivialCountQuery):
|
||||
//
|
||||
// // SELECT COUNT(*) FROM (SELECT * FROM player LIMIT 10)
|
||||
// let request = Player.limit(10)
|
||||
// let count = try request.fetchCount(db)
|
||||
//
|
||||
// This fatal error can not currently happen.
|
||||
fatalError("Association is not based on a database table")
|
||||
}
|
||||
|
||||
_sqlAssociation = _SQLAssociation(
|
||||
key: .inflected(tableName),
|
||||
key: .inflected(relation.source.tableName),
|
||||
condition: condition,
|
||||
relation: relation,
|
||||
cardinality: .toOne)
|
||||
|
||||
@@ -111,7 +111,7 @@ public struct CommonTableExpression<RowDecoder> {
|
||||
extension CommonTableExpression {
|
||||
var relationForAll: SQLRelation {
|
||||
SQLRelation(
|
||||
source: .table(tableName: tableName, alias: nil),
|
||||
source: SQLSource(tableName: tableName, alias: nil),
|
||||
selectionPromise: DatabasePromise(value: [AllColumns(cte: cte)]))
|
||||
}
|
||||
|
||||
|
||||
@@ -264,27 +264,7 @@ extension QueryInterfaceRequest: JoinableRequest { }
|
||||
extension QueryInterfaceRequest: TableRequest {
|
||||
/// :nodoc:
|
||||
public var databaseTableName: String {
|
||||
switch query.relation.source {
|
||||
case .table(tableName: let tableName, alias: _):
|
||||
// Use case:
|
||||
//
|
||||
// let request = Player.all()
|
||||
// request.filter(key: ...)
|
||||
// request.filter(keys: ...)
|
||||
// request.orderByPrimaryKey()
|
||||
return tableName
|
||||
case .subquery:
|
||||
// The only current use case for SQLSource.subquery is the
|
||||
// "trivial count query" (see SQLQuery.countQuery):
|
||||
//
|
||||
// // SELECT COUNT(*) FROM (SELECT * FROM player LIMIT 10)
|
||||
// let request = Player.limit(10)
|
||||
// let count = try request.fetchCount(db)
|
||||
//
|
||||
// This query is currently never wrapped in a QueryInterfaceRequest
|
||||
// So this fatal error can not currently happen.
|
||||
fatalError("Request is not based on a database table")
|
||||
}
|
||||
query.relation.source.tableName
|
||||
}
|
||||
|
||||
/// Creates a request that allows you to define expressions that target
|
||||
|
||||
@@ -97,31 +97,23 @@ extension SQLQuery: _JoinableRequest {
|
||||
|
||||
extension SQLQuery {
|
||||
func fetchCount(_ db: Database) throws -> Int {
|
||||
try QueryInterfaceRequest<Int>(query: countQuery(db)).fetchOne(db)!
|
||||
}
|
||||
|
||||
private func countQuery(_ db: Database) throws -> SQLQuery {
|
||||
guard groupPromise == nil && limit == nil && ctes.isEmpty else {
|
||||
// SELECT ... GROUP BY ...
|
||||
// SELECT ... LIMIT ...
|
||||
return trivialCountQuery
|
||||
// WITH ... SELECT ...
|
||||
return try fetchTrivialCount(db)
|
||||
}
|
||||
|
||||
if relation.children.contains(where: { $0.value.impactsParentCount }) { // TODO: not tested
|
||||
// SELECT ... FROM ... JOIN ...
|
||||
return trivialCountQuery
|
||||
}
|
||||
|
||||
guard case .table = relation.source else {
|
||||
// SELECT ... FROM (something which is not a plain table)
|
||||
return trivialCountQuery
|
||||
return try fetchTrivialCount(db)
|
||||
}
|
||||
|
||||
let selection = try relation.selectionPromise.resolve(db)
|
||||
GRDBPrecondition(!selection.isEmpty, "Can't generate SQL with empty selection")
|
||||
if selection.count == 1 {
|
||||
guard let count = selection[0]._count(distinct: isDistinct) else {
|
||||
return trivialCountQuery
|
||||
return try fetchTrivialCount(db)
|
||||
}
|
||||
var countQuery = self.unordered()
|
||||
countQuery.isDistinct = false
|
||||
@@ -131,27 +123,27 @@ extension SQLQuery {
|
||||
case .distinct(let expression):
|
||||
countQuery = countQuery.select(_SQLExpressionCountDistinct(expression))
|
||||
}
|
||||
return countQuery
|
||||
return try QueryInterfaceRequest(query: countQuery).fetchOne(db)!
|
||||
} else {
|
||||
// SELECT [DISTINCT] expr1, expr2, ... FROM tableName ...
|
||||
|
||||
guard !isDistinct else {
|
||||
return trivialCountQuery
|
||||
return try fetchTrivialCount(db)
|
||||
}
|
||||
|
||||
// SELECT expr1, expr2, ... FROM tableName ...
|
||||
// ->
|
||||
// SELECT COUNT(*) FROM tableName ...
|
||||
return self.unordered().select(_SQLExpressionCount(AllColumns()))
|
||||
let countQuery = unordered().select(_SQLExpressionCount(AllColumns()))
|
||||
return try QueryInterfaceRequest(query: countQuery).fetchOne(db)!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// SELECT COUNT(*) FROM (self)
|
||||
private var trivialCountQuery: SQLQuery {
|
||||
let relation = SQLRelation(
|
||||
source: .subquery(unordered()),
|
||||
selectionPromise: DatabasePromise(value: [_SQLExpressionCount(AllColumns())]))
|
||||
return SQLQuery(relation: relation)
|
||||
func fetchTrivialCount(_ db: Database) throws -> Int {
|
||||
let request = QueryInterfaceRequest<Void>(query: unordered())
|
||||
let countRequest: SQLRequest<Int> = "SELECT COUNT(*) FROM (\(request))"
|
||||
return try countRequest.fetchOne(db)!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -391,31 +391,17 @@ extension SQLRelation: _JoinableRequest {
|
||||
|
||||
// MARK: - SQLSource
|
||||
|
||||
enum SQLSource {
|
||||
case table(tableName: String, alias: TableAlias?)
|
||||
indirect case subquery(SQLQuery)
|
||||
|
||||
var tableName: String? {
|
||||
switch self {
|
||||
case .table(tableName: let tableName, alias: _):
|
||||
return tableName
|
||||
case .subquery:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
struct SQLSource {
|
||||
var tableName: String
|
||||
var alias: TableAlias?
|
||||
|
||||
func qualified(with alias: TableAlias) -> SQLSource {
|
||||
switch self {
|
||||
case let .table(tableName: tableName, alias: sourceAlias):
|
||||
if let sourceAlias = sourceAlias {
|
||||
alias.becomeProxy(of: sourceAlias)
|
||||
return self
|
||||
} else {
|
||||
alias.setTableName(tableName)
|
||||
return .table(tableName: tableName, alias: alias)
|
||||
}
|
||||
case .subquery:
|
||||
if let sourceAlias = self.alias {
|
||||
alias.becomeProxy(of: sourceAlias)
|
||||
return self
|
||||
} else {
|
||||
alias.setTableName(tableName)
|
||||
return SQLSource(tableName: tableName, alias: alias)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -768,27 +754,21 @@ extension SQLRelation {
|
||||
extension SQLSource {
|
||||
/// Returns nil if sources can't be merged (conflict in tables, aliases...)
|
||||
func merged(with other: SQLSource) -> SQLSource? {
|
||||
switch (self, other) {
|
||||
case let (.table(tableName: tableName, alias: alias), .table(tableName: otherTableName, alias: otherAlias)):
|
||||
guard tableName == otherTableName else {
|
||||
guard tableName == other.tableName else {
|
||||
// can't merge
|
||||
return nil
|
||||
}
|
||||
switch (alias, other.alias) {
|
||||
case (nil, nil):
|
||||
return SQLSource(tableName: tableName, alias: nil)
|
||||
case let (alias?, nil), let (nil, alias?):
|
||||
return SQLSource(tableName: tableName, alias: alias)
|
||||
case let (alias?, otherAlias?):
|
||||
guard let mergedAlias = alias.merged(with: otherAlias) else {
|
||||
// can't merge
|
||||
return nil
|
||||
}
|
||||
switch (alias, otherAlias) {
|
||||
case (nil, nil):
|
||||
return .table(tableName: tableName, alias: nil)
|
||||
case let (alias?, nil), let (nil, alias?):
|
||||
return .table(tableName: tableName, alias: alias)
|
||||
case let (alias?, otherAlias?):
|
||||
guard let mergedAlias = alias.merged(with: otherAlias) else {
|
||||
// can't merge
|
||||
return nil
|
||||
}
|
||||
return .table(tableName: tableName, alias: mergedAlias)
|
||||
}
|
||||
default:
|
||||
// can't merge
|
||||
return nil
|
||||
return SQLSource(tableName: tableName, alias: mergedAlias)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,7 +289,9 @@ public class TableAlias: Hashable {
|
||||
}
|
||||
|
||||
func becomeProxy(of base: TableAlias) {
|
||||
assert(self !== base)
|
||||
if self === base {
|
||||
return
|
||||
}
|
||||
|
||||
switch impl {
|
||||
case let .undefined(userName):
|
||||
|
||||
@@ -45,16 +45,12 @@ struct SQLQueryGenerator: Refinable {
|
||||
//
|
||||
// This turns `GROUP BY id` INTO `GROUP BY book.id`, and
|
||||
// `HAVING MAX(year) < 2000` INTO `HAVING MAX(book.year) < 2000`.
|
||||
if let alias = relation.source.alias {
|
||||
groupPromise = query.groupPromise?.map {
|
||||
$0.map { $0._qualifiedExpression(with: alias) }
|
||||
}
|
||||
havingExpressionsPromise = query.havingExpressionsPromise.map {
|
||||
$0.map { $0._qualifiedExpression(with: alias) }
|
||||
}
|
||||
} else {
|
||||
groupPromise = query.groupPromise
|
||||
havingExpressionsPromise = query.havingExpressionsPromise
|
||||
let sourceAlias = relation.source.alias
|
||||
groupPromise = query.groupPromise?.map {
|
||||
$0.map { $0._qualifiedExpression(with: sourceAlias) }
|
||||
}
|
||||
havingExpressionsPromise = query.havingExpressionsPromise.map {
|
||||
$0.map { $0._qualifiedExpression(with: sourceAlias) }
|
||||
}
|
||||
|
||||
limit = query.limit
|
||||
@@ -106,12 +102,7 @@ struct SQLQueryGenerator: Refinable {
|
||||
sql += try relation.source.sql(context)
|
||||
|
||||
if relation.joins.isEmpty == false {
|
||||
guard let sourceAlias = relation.source.alias else {
|
||||
// This never happens as long as we only use subqueries as sources
|
||||
// in the `SELECT COUNT(*) FROM (SELECT ...)` case: see
|
||||
// SQLQuery.trivialCountQuery.
|
||||
fatalError("Not implemented: join on a subquery")
|
||||
}
|
||||
let sourceAlias = relation.source.alias
|
||||
for (_, join) in relation.joins {
|
||||
sql += " "
|
||||
sql += try join.sql(context, leftAlias: sourceAlias)
|
||||
@@ -210,16 +201,14 @@ struct SQLQueryGenerator: Refinable {
|
||||
// Can we intersect the region with rowIds?
|
||||
//
|
||||
// Give up unless request feeds from a single database table
|
||||
guard
|
||||
case let .table(tableName: tableName, alias: alias) = relation.source,
|
||||
try db.tableExists(tableName) // skip views
|
||||
else {
|
||||
return selectedRegion
|
||||
let tableName = relation.source.tableName
|
||||
guard try db.tableExists(tableName) else { // skip views
|
||||
return selectedRegion
|
||||
}
|
||||
|
||||
// The filter knows better
|
||||
let filter = try relation.filtersPromise.resolve(db).joined(operator: .and)
|
||||
guard let rowIDs = try filter.identifyingRowIDs(db, for: alias) else {
|
||||
guard let rowIDs = try filter.identifyingRowIDs(db, for: relation.source.alias) else {
|
||||
return selectedRegion
|
||||
}
|
||||
|
||||
@@ -243,13 +232,11 @@ struct SQLQueryGenerator: Refinable {
|
||||
}
|
||||
|
||||
// Do we filter on a unique key?
|
||||
if
|
||||
case let .table(tableName: tableName, alias: sourceAlias) = relation.source,
|
||||
try db.tableExists(tableName) // skip views
|
||||
{
|
||||
let tableName = relation.source.tableName
|
||||
if try db.tableExists(tableName) { // skip views
|
||||
let identifyingColums = try filters
|
||||
.joined(operator: .and)
|
||||
.identifyingColums(db, for: sourceAlias)
|
||||
.identifyingColums(db, for: relation.source.alias)
|
||||
if try db.table(tableName, hasUniqueKey: identifyingColums) {
|
||||
// Filter by unique key: guaranteed single row!
|
||||
return true
|
||||
@@ -268,11 +255,6 @@ struct SQLQueryGenerator: Refinable {
|
||||
func makeDeleteStatement(_ db: Database) throws -> UpdateStatement {
|
||||
switch try grouping(db) {
|
||||
case .none:
|
||||
guard case .table = relation.source else {
|
||||
// Programmer error
|
||||
fatalError("Can't delete without any database table")
|
||||
}
|
||||
|
||||
guard relation.joins.isEmpty && ctes.isEmpty else {
|
||||
return try makeTrivialDeleteStatement(db)
|
||||
}
|
||||
@@ -312,11 +294,7 @@ struct SQLQueryGenerator: Refinable {
|
||||
|
||||
/// DELETE FROM table WHERE id IN (SELECT id FROM table ...)
|
||||
private func makeTrivialDeleteStatement(_ db: Database) throws -> UpdateStatement {
|
||||
guard case let .table(tableName: tableName, alias: _) = relation.source else {
|
||||
// Programmer error
|
||||
fatalError("Can't delete without any database table")
|
||||
}
|
||||
|
||||
let tableName = relation.source.tableName
|
||||
let alias = TableAlias(tableName: tableName)
|
||||
let context = SQLGenerationContext(db, aliases: [alias])
|
||||
let subqueryContext = SQLGenerationContext(parent: context, aliases: relation.allAliases)
|
||||
@@ -342,11 +320,6 @@ struct SQLQueryGenerator: Refinable {
|
||||
{
|
||||
switch try grouping(db) {
|
||||
case .none:
|
||||
guard case .table = relation.source else {
|
||||
// Programmer error
|
||||
fatalError("Can't update without any database table")
|
||||
}
|
||||
|
||||
guard relation.joins.isEmpty && ctes.isEmpty else {
|
||||
return try makeTrivialUpdateStatement(
|
||||
db,
|
||||
@@ -412,17 +385,13 @@ struct SQLQueryGenerator: Refinable {
|
||||
assignments: [ColumnAssignment])
|
||||
throws -> UpdateStatement?
|
||||
{
|
||||
guard case let .table(tableName: tableName, alias: _) = relation.source else {
|
||||
// Programmer error
|
||||
fatalError("Can't delete without any database table")
|
||||
}
|
||||
|
||||
// Check for empty assignments after all programmer errors have
|
||||
// been checked.
|
||||
if assignments.isEmpty {
|
||||
return nil
|
||||
}
|
||||
|
||||
let tableName = relation.source.tableName
|
||||
let alias = TableAlias(tableName: tableName)
|
||||
let context = SQLGenerationContext(db, aliases: [alias])
|
||||
let subqueryContext = SQLGenerationContext(parent: context, aliases: relation.allAliases)
|
||||
@@ -472,16 +441,16 @@ struct SQLQueryGenerator: Refinable {
|
||||
}
|
||||
|
||||
// Grouping something which is not a table: assume non unique grouping.
|
||||
let tableName = relation.source.tableName
|
||||
guard
|
||||
case let .table(tableName: tableName, alias: alias) = relation.source,
|
||||
try db.tableExists(tableName) // skip views
|
||||
else {
|
||||
return .nonUnique
|
||||
else {
|
||||
return .nonUnique
|
||||
}
|
||||
|
||||
var groupingColumns: Set<String> = []
|
||||
for expression in groupExpressions {
|
||||
guard let column = try expression.column(db, for: alias, acceptsBijection: true) else {
|
||||
guard let column = try expression.column(db, for: relation.source.alias, acceptsBijection: true) else {
|
||||
// Grouping by something which is not a column: assume non
|
||||
// unique grouping.
|
||||
return .nonUnique
|
||||
@@ -611,19 +580,14 @@ private struct SQLQualifiedRelation {
|
||||
// Qualify all joins, selection, filter, and ordering, so that all
|
||||
// identifiers can be correctly disambiguated and qualified.
|
||||
joins = relation.children.compactMapValues { SQLQualifiedJoin($0) }
|
||||
if let sourceAlias = source.alias {
|
||||
sourceSelectionPromise = relation.selectionPromise.map {
|
||||
$0.map { $0._qualifiedSelectable(with: sourceAlias) }
|
||||
}
|
||||
filtersPromise = relation.filtersPromise.map {
|
||||
$0.map { $0._qualifiedExpression(with: sourceAlias) }
|
||||
}
|
||||
sourceOrdering = relation.ordering.qualified(with: sourceAlias)
|
||||
} else {
|
||||
sourceSelectionPromise = relation.selectionPromise
|
||||
filtersPromise = relation.filtersPromise
|
||||
sourceOrdering = relation.ordering
|
||||
let sourceAlias = source.alias
|
||||
sourceSelectionPromise = relation.selectionPromise.map {
|
||||
$0.map { $0._qualifiedSelectable(with: sourceAlias) }
|
||||
}
|
||||
filtersPromise = relation.filtersPromise.map {
|
||||
$0.map { $0._qualifiedExpression(with: sourceAlias) }
|
||||
}
|
||||
sourceOrdering = relation.ordering.qualified(with: sourceAlias)
|
||||
}
|
||||
|
||||
/// See SQLQueryGenerator.rowAdapter(_:)
|
||||
@@ -688,14 +652,9 @@ private struct SQLQualifiedRelation {
|
||||
|
||||
/// Removes all selections from joins
|
||||
func selectOnly(_ selection: [SQLSelectable]) -> Self {
|
||||
let sourceSelectionPromise: DatabasePromise<[SQLSelectable]>
|
||||
if let sourceAlias = source.alias {
|
||||
sourceSelectionPromise = DatabasePromise(value: selection.map {
|
||||
$0._qualifiedSelectable(with: sourceAlias)
|
||||
})
|
||||
} else {
|
||||
sourceSelectionPromise = DatabasePromise(value: selection)
|
||||
}
|
||||
let sourceSelectionPromise = DatabasePromise(value: selection.map {
|
||||
$0._qualifiedSelectable(with: source.alias)
|
||||
})
|
||||
return self
|
||||
.with(\.sourceSelectionPromise, sourceSelectionPromise)
|
||||
.map(\.joins, { $0.mapValues { $0.selectOnly([]) } })
|
||||
@@ -705,50 +664,21 @@ private struct SQLQualifiedRelation {
|
||||
extension SQLQualifiedRelation: Refinable { }
|
||||
|
||||
/// A "qualified" source, where all tables are identified with a table alias.
|
||||
private enum SQLQualifiedSource {
|
||||
case table(tableName: String, alias: TableAlias)
|
||||
indirect case subquery(SQLQueryGenerator)
|
||||
|
||||
/// Nil for subquery sources.
|
||||
///
|
||||
/// Maybe one day we'll support aliased subqueries, as below:
|
||||
///
|
||||
/// SELECT alias.* FROM (SELECT ...) alias
|
||||
///
|
||||
/// But today we only use subqueries for SQLQuery.trivialCountQuery,
|
||||
/// which does not need any alias:
|
||||
///
|
||||
/// SELECT COUNT(*) FROM (SELECT ...)
|
||||
var alias: TableAlias? {
|
||||
switch self {
|
||||
case let .table(_, alias):
|
||||
return alias
|
||||
case .subquery:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
private struct SQLQualifiedSource {
|
||||
var tableName: String
|
||||
var alias: TableAlias
|
||||
|
||||
init(_ source: SQLSource) {
|
||||
switch source {
|
||||
case let .table(tableName, alias):
|
||||
let alias = alias ?? TableAlias(tableName: tableName)
|
||||
self = .table(tableName: tableName, alias: alias)
|
||||
case let .subquery(subquery):
|
||||
self = .subquery(SQLQueryGenerator(query: subquery))
|
||||
}
|
||||
self.tableName = source.tableName
|
||||
self.alias = source.alias ?? TableAlias(tableName: source.tableName)
|
||||
assert(alias.tableName == tableName)
|
||||
}
|
||||
|
||||
func sql(_ context: SQLGenerationContext) throws -> String {
|
||||
switch self {
|
||||
case let .table(tableName, alias):
|
||||
if let aliasName = context.aliasName(for: alias) {
|
||||
return "\(tableName.quotedDatabaseIdentifier) \(aliasName.quotedDatabaseIdentifier)"
|
||||
} else {
|
||||
return "\(tableName.quotedDatabaseIdentifier)"
|
||||
}
|
||||
case let .subquery(generator):
|
||||
let sql = try generator.requestSQL(context)
|
||||
return "(\(sql))"
|
||||
if let aliasName = context.aliasName(for: alias) {
|
||||
return "\(tableName.quotedDatabaseIdentifier) \(aliasName.quotedDatabaseIdentifier)"
|
||||
} else {
|
||||
return "\(tableName.quotedDatabaseIdentifier)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -818,12 +748,7 @@ private struct SQLQualifiedJoin: Refinable {
|
||||
|
||||
// JOIN table...
|
||||
var sql = try "\(kind.rawValue) \(relation.source.sql(context))"
|
||||
guard let rightAlias = relation.source.alias else {
|
||||
// This never happens as long as we only use subqueries as sources
|
||||
// in the `SELECT COUNT(*) FROM (SELECT ...)` case: see
|
||||
// SQLQuery.trivialCountQuery.
|
||||
fatalError("Not implemented: join on a subquery")
|
||||
}
|
||||
let rightAlias = relation.source.alias
|
||||
|
||||
// ... ON <join conditions> AND <other filters>
|
||||
var joinExpressions: [SQLExpression]
|
||||
|
||||
@@ -4,7 +4,7 @@ extension TableRecord {
|
||||
|
||||
static var relationForAll: SQLRelation {
|
||||
SQLRelation(
|
||||
source: .table(tableName: databaseTableName, alias: nil),
|
||||
source: SQLSource(tableName: databaseTableName, alias: nil),
|
||||
selectionPromise: DatabasePromise(value: databaseSelection))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user