Skip to content

Commit 0f5d4ed

Browse files
committed
Move supabase connector to integrations folder
1 parent 72f311a commit 0f5d4ed

File tree

12 files changed

+14
-22
lines changed

12 files changed

+14
-22
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,14 @@ and API documentation [here](https://powersync-ja.github.io/powersync-kotlin/).
2626

2727
- This is the Kotlin Multiplatform SDK implementation.
2828

29-
- [connectors](./connectors/)
30-
31-
- [SupabaseConnector.kt](./connectors/supabase/src/commonMain/kotlin/com/powersync/connector/supabase/SupabaseConnector.kt) An example connector implementation for Supabase (Postgres). The backend
32-
connector provides the connection between your application backend and the PowerSync managed database. It is used to:
33-
1. Retrieve a token to connect to the PowerSync service.
34-
2. Apply local changes on your backend application server (and from there, to your backend database).
35-
3629
- [integrations](./integrations/)
3730
- [room](./integrations/room/README.md): Allows using the [Room database library](https://developer.android.com/jetpack/androidx/releases/room) with PowerSync, making it easier to run typed queries on the database.
3831
- [sqldelight](./integrations/sqldelight/README.md): Allows using [SQLDelight](https://sqldelight.github.io/sqldelight)
3932
with PowerSync, also enabling typed statements on the database.
40-
33+
- [SupabaseConnector.kt](./integrations/supabase/src/commonMain/kotlin/com/powersync/connector/supabase/SupabaseConnector.kt) An example connector implementation for Supabase (Postgres). The backend
34+
connector provides the connection between your application backend and the PowerSync managed database. It is used to:
35+
1. Retrieve a token to connect to the PowerSync service.
36+
2. Apply local changes on your backend application server (and from there, to your backend database).
4137

4238
## Demo Apps / Example Projects
4339

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ tasks.getByName<Delete>("clean") {
6868
// Merges individual module docs into a single HTML output
6969
dependencies {
7070
dokka(project(":core:"))
71-
dokka(project(":connectors:supabase"))
7271
dokka(project(":compose:"))
7372
dokka(project(":integrations:room"))
7473
dokka(project(":integrations:sqldelight"))
74+
dokka(project(":integrations:supabase"))
7575
}
7676

7777
dokka {

demos/android-supabase-todolist/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ dependencies {
127127
// When adopting the PowerSync dependencies into your project, use the latest version available at
128128
// https://central.sonatype.com/artifact/com.powersync/core
129129
implementation(projects.core) // "com.powersync:core:latest.release"
130-
implementation(projects.connectors.supabase) // "com.powersync:connector-supabase:latest.release"
130+
implementation(projects.integrations.supabase) // "com.powersync:connector-supabase:latest.release"
131131
implementation(projects.compose) // "com.powersync:compose:latest.release"
132132
implementation(libs.uuid)
133133
implementation(libs.kermit)

demos/supabase-todolist/androidBackgroundSync/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ android {
4444
dependencies {
4545
// When copying this example, use the the current version available
4646
// at: https://central.sonatype.com/artifact/com.powersync/connector-supabase
47-
implementation(projects.connectors.supabase) // "com.powersync:connector-supabase"
47+
implementation(projects.integrations.supabase) // "com.powersync:connector-supabase"
4848

4949
implementation(projects.demos.supabaseTodolist.shared)
5050

demos/supabase-todolist/shared/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ kotlin {
4242
// When copying this example, use the current version available
4343
// at: https://central.sonatype.com/artifact/com.powersync/core
4444
api(projects.core) // "com.powersync:core"
45-
implementation(projects.connectors.supabase) // "com.powersync:connector-supabase"
45+
implementation(projects.integrations.supabase) // "com.powersync:connector-supabase"
4646
implementation(projects.compose) // "com.powersync:compose"
4747
implementation(libs.uuid)
4848
implementation(compose.runtime)
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# PowerSync Backend Connectors
1+
# PowerSync Supabase connector
22

3-
Convenience implementations of backend connectors that provide the connection between your application backend and the PowerSync managed database.
3+
Convenience implementation of a backend connector that provide the connection between your application backend and the PowerSync managed database
4+
by delegating to Supabase.
45

56
It is used to:
67
1. Retrieve a token to connect to the PowerSync service.
78
2. Apply local changes on your backend application server (and from there, to your backend database).
89

10+
The connector is fairly basic, and also serves as an example for getting started.
911

10-
## Provided Connectors
11-
12-
### Supabase (Postgres)
13-
14-
A basic implementation of a PowerSync Backend Connector for Supabase, that serves as getting started example.
15-
16-
See a step-by-step tutorial for connecting to Supabase, [here](https://docs.powersync.com/integration-guides/supabase-+-powersync).
12+
See a step-by-step tutorial for connecting to Supabase, [here](https://docs.powersync.com/integration-guides/supabase-+-powersync).
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)