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:
parent
303f17d3b2
commit
8ae0875800
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue