girvo 3 days ago

I gave it a tool to execute to get that info if required, but it mostly doesn’t need to due to Kysely migration files and the database type definition being enough.

anonzzzies 3 days ago

Claude code figures that out at startup every time. Never had issues with it.

  • theshrike79 2 days ago

    You can save some precious context by having it somewhere without it having to figure it out from scratch every time.

HDThoreaun 3 days ago

Do you not use a model file for your orm?

  • wredcoll 3 days ago

    ORMs are generally a bad idea, so.. hopefully not?

    • girvo 3 days ago

      Even without the explicit magic ORMs, with data mapper style query builders like Kysely and similar, I still find I need to marshall selected rows into objects to, yknow, do things with them in a lot of cases.

      Perhaps a function of GraphQL though.

      • wredcoll 3 days ago

        Sure, but that's not the same thing. For example, whether or not you have to redeclare your entire database schema in a custom ORM language in a different repo.