<FromGitter>
<Blacksmoke16> @robacarp but if the methods are user defined and called what would Granite have to do with them?
<FromGitter>
<robacarp> Good point. In ruby you can do that, this would have to be a macrospace lib
<FromGitter>
<Blacksmoke16> for the general idea of fixtures using yaml files is prob enough to at least get the feature out there imo
<FromGitter>
<Blacksmoke16> but would be helpful if we had some use cases vs just generally implementing fixtures
<FromGitter>
<Blacksmoke16> afaik fixtures just allow you to define test data for db without writing much/any code
snsei has quit [Remote host closed the connection]
<robacarp>
well, it's code regardless of it being in yaml or crystal
<robacarp>
it's just code in an additional language
<FromGitter>
<Blacksmoke16> true
snsei has joined #amber
<FromGitter>
<anamba> personally i do not use hardcoded fixtures. they can work if your models never change and are not interconnected (e.g. a library w/limited scope), but for an app, once you add relationships/associations, start changing schema, adding validations, etc. it gets messy fast. i figure at some point (probably a month or 2 from now) i'm going to need shards in the style of FactoryBot and Faker. if no one has made them by
<FromGitter>
... then, I will probably go for it. oh wait... i just checked, someone did make Faker. and there is a shard called Factory, which does indeed seem to be sort of like FactoryBot. neat!
snsei has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> hmm
<FromGitter>
<Blacksmoke16> if those libs are up to date and maintained would it be worth including that functionality at all?
<FromGitter>
<Blacksmoke16> vs just using those libs
<FromGitter>
<dscottboggs_gitlab> is there any way to insert multiple values using Granite or do I need to use a custom query to do that?
snsei has joined #amber
<FromGitter>
<Blacksmoke16> like save multiple objects at once?
snsei has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> `CREATE TABLE "parents"("uuid" UUID PRIMARY KEY NOT NULL,"name" VARCHAR(255) NULL,"income" REAL NULL);` working on the annotation prototype, got migrator to set nullable/ non nullable columns 💯