"varchar not null", "age" => "integer", "num" => "integer", ]; function getItemValues($item): ?array { $item = cl::with($item); return [ "name" => cl::first($item), "age" => $item["age"] ?? null, "num" => rand(), ]; } } $capacitor = new SqliteCapacitor(__DIR__.'/test-sqlite.db'); $channel = $capacitor->newChannel(new MyChannel()); $channel->charge("hello world"); $channel->charge(["bonjour monde"]); $channel->charge(["gutten tag", "age" => 15]);