Skip to content

DX improvement suggestion for @workflow/world-postgres #43

@karthikscale3

Description

@karthikscale3

There is a usability issue with the @workflow/world-postgres package. Currently it only exports the createWorld function. It doesn't export:

The Drizzle schema
The Drizzle client
Any schema push/migration utilities
So users can't do something like:

import { schema, pushSchema } from '@workflow/world-postgres'
await pushSchema(process.env.DATABASE_URL)

I had to manually run the SQL from the docs in order to create the appropriate tables in my postgres instance to make it work with postgres.

Any specific reason why these are not exported as part of the package? If not, I am happy to make a PR as well as improve the documentation around it.

Separately, I was also able to make it work with Supabase and happy to add those details to the docs aswell.
https://x.com/karthikkalyan90/status/1981851788665069851

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions