Skip to content

Conversation

stevensJourney
Copy link
Collaborator

@stevensJourney stevensJourney commented Oct 21, 2025

Overview

The typed Table definition syntax does not require a parameter for the table name when instantiating. The table name is usually specified as the key in the Schema constructor.

const users = new Table({ name: column.text });
const schema = new Schema({ users });

We typically set the table name on the Table instances when the Schema is used internally.

We currently do expose the Table instances on a Schema via schema.props - however these Table instances don't have their table name set.

The change here is to populate the table name early during construction. Allowing code like schema.props.user.name to function correctly.

@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2025

🦋 Changeset detected

Latest commit: 0e38dc7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@powersync/common Minor
@powersync/web Minor
@powersync/node Minor
@powersync/react-native Minor
@powersync/adapter-sql-js Patch
@powersync/op-sqlite Patch
@powersync/tanstack-react-query Patch
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@stevensJourney stevensJourney marked this pull request as ready for review October 22, 2025 12:38
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.

1 participant