Giter VIP home page Giter VIP logo

Comments (4)

tolgaulas avatar tolgaulas commented on May 27, 2024

Sample of what's going on

127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 0            |
+--------------+
127.0.0.1:4001> PRAGMA foreign_keys=on;
127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 1            |
+--------------+
127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 1            |
+--------------+
127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 0            |
+--------------+
127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 0            |
+--------------+
127.0.0.1:4001> PRAGMA foreign_keys=on;
127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 1            |
+--------------+
127.0.0.1:4001> PRAGMA foreign_keys;
+--------------+
| foreign_keys |
+--------------+
| 0            |
+--------------+
127.0.0.1:4001> 

from rqlite.

otoolep avatar otoolep commented on May 27, 2024

I know why this is happening, and will make it clearer in the docs.

However, the best way to enable Foreign Keys in rqlite is via a flag at launch time, like so:

rqlited -fk node1

Try that for now, and let me know how it goes.

from rqlite.

tolgaulas avatar tolgaulas commented on May 27, 2024

I know why this is happening, and will make it clearer in the docs.

However, the best way to enable Foreign Keys in rqlite is via a flag at launch time, like so:

rqlited -fk node1

Try that for now, and let me know how it goes.

A-ha.. I was about to reference this 3 year old discussion, but thanks for the answer.. https://sqlite.org/forum/info/c5dc50f61b88c587

Good to know its supported. I am testing right now..

from rqlite.

tolgaulas avatar tolgaulas commented on May 27, 2024

Try that for now, and let me know how it goes.

Yes. -fk makes foreign_keys on all the time. thanks. By the way may i suggest to add one single inital page in the docs (may be to be enhanced by the community) on the current options that rsyncd has "bunch of options" at command line.. would help to google search the issue.. I've just noticed them now :)

from rqlite.

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.