Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Vlad Faust
    @vladfaust
    Also Athena
    With Granite
    Joakim Repomaa
    @repomaa
    it's a tad too opinionated for my taste
    Vlad Faust
    @vladfaust
    PHP-inspired and lots of annotations :)
    Joakim Repomaa
    @repomaa
    lucky?
    Vlad Faust
    @vladfaust
    Athena
    Joakim Repomaa
    @repomaa
    k
    haven't looked at it
    usually i'm not looking for a web framework anyway
    just an orm
    Vlad Faust
    @vladfaust
    Well, Blacksmoke did put shitton of time into that
    AFAIK Granite took some things from Onyx::SQL regarding to low-level implementation
    Take a look into it or ask Blacksmoke
    Joakim Repomaa
    @repomaa
    is the query builder type safe?
    Vlad Faust
    @vladfaust
    In Onyx::SQL? Yes, almost -- https://docs.onyxframework.org/sql/query.html
    Joakim Repomaa
    @repomaa
    not onyx, i know it is, that's why i thought it's promising. i meant granite
    it doesn't look like it
    Vlad Faust
    @vladfaust
    Well, in my humble opinion, Onyx::SQL has the best type-safety and overall design among the others :D
    Joakim Repomaa
    @repomaa
    have you seen avram?
    Vlad Faust
    @vladfaust
    Yes, I've read it docs
    Joakim Repomaa
    @repomaa
    ok
    i think it's superb
    Vlad Faust
    @vladfaust
    You should definitely give it a try
    Joakim Repomaa
    @repomaa
    i have
    but only with the whole framework
    which is a bit overblown for most of my usecases
    Vlad Faust
    @vladfaust
    I'm sure it is possible to use avram separately
    Joakim Repomaa
    @repomaa
    yeah should be
    Vlad Faust
    @vladfaust
    BTW, you've said "Onyx has no support for txs", but that's not true. It does have it, I've managed to change repo's db to single tx even without those patches
    Joakim Repomaa
    @repomaa
    yeah but that's more like a hack :D
    i'm looking for builtin support by the api like Onyx::SQL.transaction { ... }
    Vlad Faust
    @vladfaust
    Does this really change anything? :thinking:
    But I get you, alright
    Joakim Repomaa
    @repomaa
    of course it does. error handling etc all capsuled into the orm
    i don't want to manually have to commit/rollback the tx
    i guess using the block variant of DB#transaction would help with that
    hm i also don't quite understand this: yes, because onyx/onyx is a higher-level framework, and onyx/sql is an ORM
    isn't an ORM exactly the place where you'd expect to find transaction logic? :D
    instead of in a web framework
    Vlad Faust
    @vladfaust
    onyx/onyx isn't a web framework, it's A framework
    General-purpose
    Joakim Repomaa
    @repomaa
    wat
    Vlad Faust
    @vladfaust
    And it contains glue for other components
    Higher-level glue
    onyx/onyx is a higher-level wrapper
    It is possible to do tx on the lower level; and onyx/onyx provides a convenient helper to do txes easier
    Joakim Repomaa
    @repomaa
    but why, if onyx itself has nothing to do with sql?
    sorry, i'm being annoying. I'll stop questioning your design descisions :D
    Vlad Faust
    @vladfaust
    Yeah, they're a bit hard to explain