cmd/racedb: program to load races into an sqlite db
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
INSERT OR ROLLBACK INTO race (
|
||||
config_id,
|
||||
seed,
|
||||
distance_diff_max,
|
||||
frame_count,
|
||||
horse_1,
|
||||
horse_2,
|
||||
horse_3,
|
||||
horse_4,
|
||||
horse_5,
|
||||
horse_6,
|
||||
horse_7,
|
||||
horse_8,
|
||||
horse_9,
|
||||
horse_10,
|
||||
horse_11,
|
||||
horse_12,
|
||||
horse_13,
|
||||
horse_14,
|
||||
horse_15,
|
||||
horse_16,
|
||||
horse_17,
|
||||
horse_18
|
||||
)
|
||||
VALUES (
|
||||
$config_id,
|
||||
$seed,
|
||||
$distance_diff_max,
|
||||
$frame_count,
|
||||
$horse_1,
|
||||
$horse_2,
|
||||
$horse_3,
|
||||
$horse_4,
|
||||
$horse_5,
|
||||
$horse_6,
|
||||
$horse_7,
|
||||
$horse_8,
|
||||
$horse_9,
|
||||
$horse_10,
|
||||
$horse_11,
|
||||
$horse_12,
|
||||
$horse_13,
|
||||
$horse_14,
|
||||
$horse_15,
|
||||
$horse_16,
|
||||
$horse_17,
|
||||
$horse_18
|
||||
)
|
||||
RETURNING id
|
||||
Reference in New Issue
Block a user