feat(cli): add synced column support to experiment commands

Update experiment creation to track sync status:
- Insert experiments with synced=0 (not synced to server)
- Align with schema update in db.zig for offline tracking

Part of offline run synchronization feature.
This commit is contained in:
Jeremie Fraeys 2026-03-04 20:23:06 -05:00
parent 303f17d3b2
commit 8ae0875800
No known key found for this signature in database

View file

@ -92,7 +92,7 @@ fn createExperiment(allocator: std.mem.Allocator, args: []const []const u8, json
var database = try db.DB.init(allocator, db_path);
defer database.close();
// TODO: Add synced column to schema - required for server sync
// Insert experiment with synced=0 (not synced to server yet)
const sql = "INSERT INTO ml_experiments (experiment_id, name, description, status, synced) VALUES (?, ?, ?, 'active', 0);";
const stmt = try database.prepare(sql);
defer db.DB.finalize(stmt);