Skip to content

Commit 6ad09ca

Browse files
chore: change TableV2 to Table (#443)
1 parent 2b6d11c commit 6ad09ca

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

demos/django-react-native-todolist/library/powersync/AppSchema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { column, Schema, TableV2 } from '@powersync/react-native';
1+
import { column, Schema, Table } from '@powersync/react-native';
22

33
export const LIST_TABLE = 'lists';
44
export const TODO_TABLE = 'todos';
55

6-
const todos = new TableV2(
6+
const todos = new Table(
77
{
88
list_id: column.text,
99
created_at: column.text,
@@ -17,7 +17,7 @@ const todos = new TableV2(
1717
{ indexes: { list: ['list_id'] } }
1818
);
1919

20-
const lists = new TableV2({
20+
const lists = new Table({
2121
created_at: column.text,
2222
name: column.text,
2323
owner_id: column.text

demos/example-capacitor/src/library/powersync/AppSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { column, Schema, TableV2 } from '@powersync/web';
1+
import { column, Schema, Table } from '@powersync/web';
22

3-
const customers = new TableV2({
3+
const customers = new Table({
44
name: column.text,
55
created_at: column.text
66
});

demos/example-electron/src/library/powersync/AppSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { column, Schema, TableV2 } from '@powersync/web';
1+
import { column, Schema, Table } from '@powersync/web';
22

3-
const customers = new TableV2({
3+
const customers = new Table({
44
name: column.text,
55
created_at: column.text
66
});

demos/example-nextjs/src/library/powersync/AppSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { column, Schema, TableV2 } from '@powersync/web';
1+
import { column, Schema, Table } from '@powersync/web';
22

3-
const customers = new TableV2({
3+
const customers = new Table({
44
name: column.text,
55
created_at: column.text
66
});

demos/react-supabase-todolist-optional-sync/src/library/powersync/AppSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AbstractPowerSyncDatabase, column, ColumnsType, Schema, Table, TableV2Options } from '@powersync/web';
1+
import { AbstractPowerSyncDatabase, column, Schema, Table } from '@powersync/web';
22
import { setSyncEnabled } from './SyncMode';
33

44
/**

demos/vue-supabase-todolist/src/library/powersync/AppSchema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { column, Schema, TableV2 } from '@powersync/web';
1+
import { column, Schema, Table } from '@powersync/web';
22

33
export const LISTS_TABLE = 'lists';
44
export const TODOS_TABLE = 'todos';
55

6-
const todos = new TableV2(
6+
const todos = new Table(
77
{
88
list_id: column.text,
99
created_at: column.text,
@@ -16,7 +16,7 @@ const todos = new TableV2(
1616
{ indexes: { list: ['list_id'] } }
1717
);
1818

19-
const lists = new TableV2({
19+
const lists = new Table({
2020
created_at: column.text,
2121
name: column.text,
2222
owner_id: column.text

demos/yjs-react-supabase-text-collab/src/library/powersync/AppSchema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { column, Schema, TableV2 } from '@powersync/web';
1+
import { column, Schema, Table } from '@powersync/web';
22

3-
const documents = new TableV2({
3+
const documents = new Table({
44
title: column.text,
55
created_at: column.text
66
});
77

8-
const document_updates = new TableV2(
8+
const document_updates = new Table(
99
{
1010
document_id: column.text,
1111
created_at: column.text,

0 commit comments

Comments
 (0)