Skip to content

Using as a command-line tool? #29

Open

Description

@ashalkhakov

I'd like to use Rezoom.SQL as command-line tool: you give it your migrations, and it generates some source code for you (or indeed a minimal assembly).

Pros:

  • usage on constrainted platforms (I'm looking at .NET CF primarily, but also Mono, Xamarin, etc.)
  • usage in the wider .NET ecosystem (painless interop with C#, VB -- and it also makes it easier to introduce F# in a project)

Cons:

  • needs a separate build step
  • more difficult to iterate compared to F# type provider (still much better, I think, than the hand-written DAL where you need tests to ensure that everything works as expected)

Activity

  1. rspeele commented on Nov 9, 2017

    @rspeele
    Collaborator

    I like this idea, and it seems like it wouldn't be too hard to spit out some source code. It would be nice to do it in a way that doesn't duplicate code with the type provider.

  2. ashalkhakov commented on Nov 15, 2017

    @ashalkhakov
    Author

    Looks like a type provider can be run via fsc on command line. Maybe it's all that I need, will check it out this evening.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions