GithubHelp home page GithubHelp logo

Use sqlalchemy about gorm HOT 7 CLOSED

clayote avatar clayote commented on June 12, 2024
Use sqlalchemy

from gorm.

Comments (7)

clayote avatar clayote commented on June 12, 2024

From the looks of it, graph-alchemy is an extension to the SQLAlchemy ORM, specifically. That won't work for gorm's purposes, because gorm has a particular agenda for how to keep track of changes to the graph, so you can't assume that eg. the Edge class lives in only one table, and each Edge, in one record.

On the other hand, while researching this, I discovered the SQL Expression Language in SQLAlchemy, which I might indeed use. Thanks for the tip.

from gorm.

harlowja avatar harlowja commented on June 12, 2024

Sure.

Reason why I brought this up, if u want to respond to any mailing list stuff for openstack.

http://lists.openstack.org/pipermail/openstack-dev/2014-September/046349.html

from gorm.

clayote avatar clayote commented on June 12, 2024

OK, I've started a new branch "alchemy" that will try to use SQLAlchemy for everything if you have it installed, falling back to plain sqlite3 otherwise. It's kind of inconvenient for me to test this on other database backends so if you have the time for that it'd be great.

from gorm.

harlowja avatar harlowja commented on June 12, 2024

Sure I'll give it a try on postgresql and mysql next week 😄

from gorm.

clayote avatar clayote commented on June 12, 2024

Any luck?

from gorm.

harlowja avatar harlowja commented on June 12, 2024

Will try this week; keep on getting stuck with other things. Thanks for the reminder. 😄

from gorm.

clayote avatar clayote commented on June 12, 2024

FYI the latest work on master includes the sqlalchemy compatibility bits.

from gorm.

Related Issues (1)

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.