diff --git a/Sources/ZeeQL/Access/ActiveDataSource.swift b/Sources/ZeeQL/Access/ActiveDataSource.swift index 1c3e2e3..9d68fd1 100644 --- a/Sources/ZeeQL/Access/ActiveDataSource.swift +++ b/Sources/ZeeQL/Access/ActiveDataSource.swift @@ -3,7 +3,7 @@ // ZeeQL // // Created by Helge Hess on 27/02/17. -// Copyright © 2017 ZeeZide GmbH. All rights reserved. +// Copyright © 2017-2024 ZeeZide GmbH. All rights reserved. // /** @@ -211,9 +211,10 @@ fileprivate let countAttr : Attribute = { public extension Database { - func datasource(_ type: Object.Type) -> ActiveDataSource { - // use type argument to capture, is there a nicer way? + @inlinable + func datasource(_ type: Object.Type = Object.self) + -> ActiveDataSource + { return ActiveDataSource(database: self) } - }