Git Product home page Git Product logo

Comments (5)

jinzhu avatar jinzhu commented on August 28, 2024 1

"modernc.org/sqlite" doesn't pass our tests, would consider making the change if there are any other choices.

from sqlite.

cure avatar cure commented on August 28, 2024

This library may be a good candidate: http://modernc.org/sqlite (cgo-free).

from sqlite.

axetroy avatar axetroy commented on August 28, 2024

cgo is really annoying

from sqlite.

jmwielandt avatar jmwielandt commented on August 28, 2024

+inf!!

I can't use it on windows. It throws me this error:

PS > go get -u gorm.io/driver/sqlite
# github.com/mattn/go-sqlite3
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

from sqlite.

rittneje avatar rittneje commented on August 28, 2024

Just to clarify some points here:

  1. cgo supports cross-compilation. However you need a proper C cross-compiler for it to work. It's admittedly non-trivial, but not impossible. You may also be able to leverage docker to make this simpler.
  2. cgo is supported on Windows. But again, you need a C compiler. From what I hear, MinGW usually works well.
  3. Using a C-to-Go transpiled library is not without risk. So it might be nice to give people a choice, either via a separate module, or via a build tag.

from sqlite.

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.