Giter Site home page Giter Site logo

Comments (6)

lrobin136 avatar lrobin136 commented on June 26, 2024

Would you be interested if we submitted a PR to support binary guids with SQLite?

from fluentmigrator.

jzabroski avatar jzabroski commented on June 26, 2024

Hi @lrobin136 . Thanks for your patience. Yes, absolutely. 4.0.0 branch is basically in the bag, we could ship it as 4.1.0 feature.

from fluentmigrator.

jzabroski avatar jzabroski commented on June 26, 2024

@lrobin136 As this depends on the caller to know the convention set by the connection string, I will implement this as:

        public bool BinaryGuid { get; set; } = false;

        /// <inheritdoc />
        public override string FormatGuid(Guid value)
        {
            if (BinaryGuid)
                return "x'" + value.ToString("N", CultureInfo.InvariantCulture) + "'";
            return base.FormatGuid(value);
        }

Let me know if you disagree with this approach. I would still appreciate the PR, so that (a) you get credit (b) the tests are maintained accordingly. (c) an active SQLite user regression tests this.

from fluentmigrator.

lrobin136 avatar lrobin136 commented on June 26, 2024

Hi @jzabroski, Thanks for your feedback. The approach sounds good with me. We'll try to submit a PR in the next few weeks.

from fluentmigrator.

lrobin136 avatar lrobin136 commented on June 26, 2024

Hi @jzabroski, we submitted a minimal PR to inject the quoter into the SQLiteColumn. This change solves our initial issue as well, because a user can inject a user-specific quoter for SQLite, that is used in the column as well.

from fluentmigrator.

jzabroski avatar jzabroski commented on June 26, 2024

I commented on the PR. It solves your initial issue for your team, but does not solve it for this project. I can't accept the PR in this state, as it clearly does not address this issue.

from fluentmigrator.

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.