It's definitely not ActiveRecord, but my goal is just to take some
inspiration from it, not to duplicate it. I'm very concerned about
efficiency, which is why I'm using structs, and I like hard-coding the
fields into the structure so there's some documentation of what the
record is supposed to hold and so the compiler can optimize it more
heavily. It will probably be a little less pretty, but it'll work, and
that's what really matters. At some point, I might implement an
interface to generate SQL queries with function calls, but for now, just
manually writing the queries really isn't hard, and it provides a
significant speed boost for systems like Sqlite that compile queries
down to bytecode because it's easier to reuse the query object.

My point was just that you removed the key features and soul of ActiveRecord. Without these features it's just like any other ORM library.

--
/Jacob Carlborg

Reply via email to