Coder Social home page Coder Social logo

Comments (9)

twirrim avatar twirrim commented on May 22, 2024

It's not particularly clear to me what it's expecting to find, either, though I may be being completely blind. I ran into this even though I have, and am using, sqlite3 and its libraries on my machine.

from migrate.

ansel1 avatar ansel1 commented on May 22, 2024

Would it be possible to enable database drives via build constraints? i.e. +build mysql. Most projects will only ever need a single database. Without build constraints, we end up pulling in many unnecessary dependencies. Or, support databases executable plugins.

from migrate.

mattes avatar mattes commented on May 22, 2024

Copied from #37. I think we should follow the database/sql approach:

import (
  "github.com/mattes/migrate/migrate"
  _ "github.com/mattes/migrate/driver/mysql"
)

func main() {
  migrate.MigrateUp("mysql", ...)
}

The binary migrate would still include all drivers.

from migrate.

didip avatar didip commented on May 22, 2024

Yes! That would be a good solution.

from migrate.

didip avatar didip commented on May 22, 2024

Also, just an idea, you can start the refactoring from the sqlite driver first since it is the most problematic ones. And then, progressively work on the other drivers.

from migrate.

schickling avatar schickling commented on May 22, 2024

+1 any news on this?

from migrate.

maxekman avatar maxekman commented on May 22, 2024

I would also like to see this added! We build with cgo off and sqlite3 can't do that.

from migrate.

przmv avatar przmv commented on May 22, 2024

+1
we aren't able to build our project with CGO_ENABLED=0 because of it, and we aren't even using sqlite

from migrate.

mattes avatar mattes commented on May 22, 2024

Closing in favor of #43

from migrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.