GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    mcc (mcc@mastodon.social)'s status on Saturday, 20-Sep-2025 23:40:48 JST mcc mcc

    Looking at this long list of Rust ORMs. I do not understand what the fuck a Rust ORM is supposed to be. Rust claims that it is not an object-oriented language.

    In conversation about 5 months ago from mastodon.social permalink
    • GreenSkyOverMe (Monika) repeated this.
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Saturday, 20-Sep-2025 23:40:47 JST mcc mcc
      in reply to

      I don't actually *agree* with the claim Rust is not object-oriented— I think Rust is object oriented, it's just not class-based— but it is the case that class-based OO is what people usually treat "OO" as meaning and "ORM" is bound up specifically with the idea of class-based OO. Actually, traits have always looked to me more like an RDBMS than class-inheritance OO ever did, so a like, TRM (Trait-Relational-Mapping) would rule, but I don't know if that's what these ORMs are.

      In conversation about 5 months ago permalink
      GreenSkyOverMe (Monika) repeated this.
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Saturday, 20-Sep-2025 23:40:47 JST mcc mcc
      in reply to

      Why I'm thinking about this: I want to write a Rust app that uses SQLite, but I want to later have the option of switching to Postgres or MariaDB/MySQL with minimal friction. I started cracking in to "database agnostic" crate SQLx this morning, but quickly realized that it's something like Perl DBI and it's really just an agnostic layer for *submitting* SQL queries; the queries themselves are still potentially engine-specific.

      I made a post on their discussions board:

      https://github.com/launchbadge/sqlx/discussions/4030

      In conversation about 5 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Sunday, 21-Sep-2025 10:39:27 JST Glyph Glyph
      in reply to
      • Elias Mårtenson

      @mcc @loke It is, among other things, an expression language for a first-class representation of SQL statements; i.e. modeling tables, columns, inequalities, queries, expressions, etc: https://docs.sqlalchemy.org/en/20/core/expression_api.html

      (I was making a sort of half a joke here, because SQLAlchemy as a library has a big branding problem, because it has 4 layers that are all annoyingly conflated in the same package, and the one that most people mean when they say "SQLAlchemy" standalone is "SQLAlchemy ORM")

      In conversation about 5 months ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Page not found — SQLAlchemy 2.0 Documentation
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Sunday, 21-Sep-2025 10:39:28 JST mcc mcc
      in reply to
      • Elias Mårtenson

      @loke Every API I can think of which is not in the ORM category is like this.

      In conversation about 5 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Sunday, 21-Sep-2025 10:39:28 JST Glyph Glyph
      in reply to
      • Elias Mårtenson

      @mcc @loke is SQLAlchemy Core an ORM?

      In conversation about 5 months ago permalink
    • Embed this notice
      mcc (mcc@mastodon.social)'s status on Sunday, 21-Sep-2025 10:39:28 JST mcc mcc
      in reply to
      • Elias Mårtenson
      • Glyph

      @glyph @loke I actually don't know what that is.

      In conversation about 5 months ago permalink
      Blaise Pabón - controlpl4n3 repeated this.
    • Embed this notice
      Elias Mårtenson (loke@functional.cafe)'s status on Sunday, 21-Sep-2025 10:39:29 JST Elias Mårtenson Elias Mårtenson
      in reply to

      @mcc Isn't that true for most (if not all) such API's? JDBC is certainly like that, and I'm pretty sure OCBC is too.

      In conversation about 5 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.