Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

There should be a way to get the schema for a datasource #4897

@matt2e

Description

@matt2e

Basically I want dbmate dump though it looks like we'd also need a db client to calculate it.

We should also expose this to goose to avoid this:

Let me also check the SQL files to see the database schema and queries:
─── shell | developer ──────────────────────────
command: ls -R /Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb


queries
schema

/Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb/queries:
queries.sql

/Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb/schema:
20241103205514_init.sql
20241103205515_init.sql
20241103205516_init.sql
20241103205517_init.sql


Let me check the queries and schema:
─── Read | ftl ─────────────────────────
path: ...


Read contents of /Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb/queries/queries.sql

─── Read | ftl ──────────────────────────
path: ...


Read contents of /Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb/schema/20241103205517_init.sql

─── Read | ftl ──────────────────────────
path: ...


Read contents of /Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb/schema/20241103205516_init.sql

─── Read | ftl ──────────────────────────
path: ...


Read contents of /Users/mtoohey/Code/ftl/examples/go/mysql/db/mysql/testdb/schema/20241103205515_init.sql

─── Read | ftl ──────────────────────────
path: ...


Metadata

Metadata

Assignees

No one assigned

    Labels

    githubMarks an issue as synced to GithubnextWork that will be be picked up next

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions