//
//  SwifQLable+AddQuery.swift
//  SwifQL
//
//  Created by Mihael Isaev on 18.05.2020.
//

import Foundation

extension SwifQLable {
    func addQuery(_ q: SwifQLable) -> SwifQLable {
        var parts: [SwifQLPart] = self.parts
        parts.appendSpaceIfNeeded()
        parts.append(contentsOf: q.parts)
        return SwifQLableParts(parts: parts)
    }
}
