title: Download Sqlite file from Google Drive swift
body: <p>I upload a sqlite database to google drive. And now I would like to download it. So I tried to download it from Google Drive to my Swift Project but it is being downloaded in GTLRDataObject Data format. How can I get the file into sqlite database format? The sqlite files comes as Data format from Google drive. I used the following to download my sqlite database file from google drive.</p>
  <pre><code>Global.googleDriveService.executeQuery(GTLRDriveQuery_FilesGet.queryForMedia(withFileId: &quot;\((result as? GTLRDrive_File)?.identifier ?? &quot;&quot;)&quot;))
  { (ticket, file, error) in
      guard let data = (file as? GTLRDataObject)?.data else {
          return
      }
      print(&quot;Download data: - \(data)&quot;)
  }
  </code></pre>