Giter VIP home page Giter VIP logo

Comments (7)

alolis avatar alolis commented on August 20, 2024

I didn't find a solution to this so i simply used Sqliteman to create the tables myself and then everything worked as expected.

from autumn.

RISCfuture avatar RISCfuture commented on August 20, 2024

The solution is to change the database: key to path:

DataMapper is weird, yo.

from autumn.

alolis avatar alolis commented on August 20, 2024

Yes indeed it's a bit weird! :) It's the first time I use it actually, I am an ActiveRecord person mostly.

I didn't catch what you said about key to path. Isn't this correct?
database: leaves/test/data/test.db

from autumn.

RISCfuture avatar RISCfuture commented on August 20, 2024
path: foo/bar.db

from autumn.

alolis avatar alolis commented on August 20, 2024

There is an inconsistency with the documentation here:
https://github.com/RISCfuture/autumn

It says "If you are using the "sqlite3" adapter, the database option is the path to the file where the data should be written (example: leaves/fortune/data/my_database.db)."

But from what you wrote i understand that i don't need to include "leaves" so basically if my leaf is called "test" i just need to:

path: test/data/database.db

Correct?

from autumn.

RISCfuture avatar RISCfuture commented on August 20, 2024

Fixed the docs.

Don't know what you mean by your question ... You can leave the leaves.yml file out if your database connections are named after the name of each leaf.

from autumn.

alolis avatar alolis commented on August 20, 2024

OK no worries, I understood what you are saying :) thanks

from autumn.

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.