Skip to content

Make Migration::applied public #248

Closed

Description

@Protryon

In order to implement AsyncMigrate for a custom SQL target, this function is needed to construct Migration types. This is specifically required by the AsyncQuery::query function.

At the moment, this API is pub(crate), requiring an unsafe transmute to construct any Migration type outside of refinery-core crate.

See example in klickhouse crate: https://github.com/Protryon/klickhouse/blob/master/klickhouse/src/migrate.rs#L58

Activity

  1. jxs commented on Sep 29, 2022

    @jxs
    Member

    Hi, and thanks for your interest!
    Wouldn't you prefer to have refinery support Clickhouse directly?

  2. Protryon commented on Oct 17, 2022

    @Protryon
    Author

    @jxs Sure, it was simply more expedient for my immediate needs to implement it outside. It's also a bit hacky IMO. I can open a PR here to add support.

  3. added
    help wanted
    good first issue
    on Nov 26, 2022
  4. TpouHuK commented on Jun 23, 2025

    @TpouHuK

    Looks like this issue is resolved. Maybe close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions