Skip to content

feature: Remove SQLite.swift #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BobaFetters
Copy link
Member

Rewriting the SQLiteDotSwiftDatabase class to ApolloSQLiteDatabase and now interacting directly with the SQLite C API. The goal of this rewrite is to remove the third party dependency on SQLite.swift and preserve all existing functionality as is, not add any new functionality.

Rewriting the SQLiteDotSwiftDatabase class to ApolloSQLiteDatabase and now interacting directly with the SQLite C API. The goal of this rewrite is to remove the third party dependency on SQLite.swift and preserve all existing functionality as is, not add any new functionality.
@BobaFetters BobaFetters self-assigned this Apr 24, 2025
Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit 00e8f3e
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docc/deploys/680a9f879e198400081991b4

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Apr 24, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 77ee1e742d41faf33a32c5d8

Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really great to me! Thanks so much @BobaFetters.

@@ -17,10 +17,21 @@ class SQLiteDotSwiftDatabaseBehaviorTests: XCTestCase {
XCTAssertEqual(rows.count, 1)

// Use SQLite directly to manipulate the database (cannot be done with SQLiteDotSwiftDatabase)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Use SQLite directly to manipulate the database (cannot be done with SQLiteDotSwiftDatabase)
// Use SQLite directly to manipulate the database (cannot be done with ApolloSQLiteDatabase)

@@ -1,13 +1,13 @@
import XCTest
@testable import ApolloSQLite
import ApolloInternalTestHelpers
import SQLite
import SQLite3

class SQLiteDotSwiftDatabaseBehaviorTests: XCTestCase {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class SQLiteDotSwiftDatabaseBehaviorTests: XCTestCase {
class ApolloSQLiteDatabaseBehaviorTests: XCTestCase {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two suggested changes in this file but I'm not completely sold on the value this test is providing, maybe we don't need it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants