GithubHelp home page GithubHelp logo

Comments (7)

thruflo avatar thruflo commented on May 9, 2024 1

@balegas just bumping thread — we do def want to move this into the client. Currently apps are having to set the right Pragma in their init code.

from electric.

icehaunter avatar icehaunter commented on May 9, 2024

@thruflo, any opinions? One one hand, we indeed assume that it's ON, on the other it maybe good that it's off for the upcoming shape stuff. But it's weird to work around FKs without them being enforced

from electric.

thruflo avatar thruflo commented on May 9, 2024

Hmm. I think this is more a question for @balegas or @paulharter.

from electric.

balegas avatar balegas commented on May 9, 2024

Will have a look at what would be a safe approach with the limitations we have right now.

from electric.

thruflo avatar thruflo commented on May 9, 2024

Fwiw, I've just run up against the same issue, working on a data model with a foreign key with ON DELETE SET NULL and wondering why the child doesn't update when the parent is deleted.

This obviously doesn't mean that it's an Electric responsibility to set it but strikes me that it's a much saner default, coming from Postgres land. We obviously do quite a lot of setup in the generated migrations. Adding PRAGMA foreign_keys = 1 to the other setup would make sense to me.

from electric.

balegas avatar balegas commented on May 9, 2024

@kevin-dp can we close this?

from electric.

balegas avatar balegas commented on May 9, 2024

Closed in #397

from electric.

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.