extract kills from raw logs

This commit is contained in:
Robin Appelman 2026-11-14 16:44:41 +01:00
commit 6b1662222a
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
12 changed files with 1660 additions and 566 deletions

View file

@ -0,0 +1,153 @@
{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO kills(\n log_id, time, attacker, attacker_class, assister, assister_class, victim, victim_class,\n charge, weapon_id, kind, attacker_position, assister_position, victim_position\n )\n VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Int4",
"Int8",
{
"Custom": {
"name": "class_type",
"kind": {
"Enum": [
"scout",
"soldier",
"pyro",
"demoman",
"heavyweapons",
"engineer",
"medic",
"sniper",
"spy",
"unknown"
]
}
}
},
"Int8",
{
"Custom": {
"name": "class_type",
"kind": {
"Enum": [
"scout",
"soldier",
"pyro",
"demoman",
"heavyweapons",
"engineer",
"medic",
"sniper",
"spy",
"unknown"
]
}
}
},
"Int8",
{
"Custom": {
"name": "class_type",
"kind": {
"Enum": [
"scout",
"soldier",
"pyro",
"demoman",
"heavyweapons",
"engineer",
"medic",
"sniper",
"spy",
"unknown"
]
}
}
},
"Int2",
"Int4",
{
"Custom": {
"name": "kill_kind",
"kind": {
"Enum": [
"normal",
"backstab",
"headshot",
"death-ringer"
]
}
}
},
{
"Custom": {
"name": "point3",
"kind": {
"Composite": [
[
"x",
"Int4"
],
[
"y",
"Int4"
],
[
"z",
"Int4"
]
]
}
}
},
{
"Custom": {
"name": "point3",
"kind": {
"Composite": [
[
"x",
"Int4"
],
[
"y",
"Int4"
],
[
"z",
"Int4"
]
]
}
}
},
{
"Custom": {
"name": "point3",
"kind": {
"Composite": [
[
"x",
"Int4"
],
[
"y",
"Int4"
],
[
"z",
"Int4"
]
]
}
}
}
]
},
"nullable": []
},
"hash": "c1fb466bd6a8a5ced6a2de0506c32abac008ca8a89a2272e9fccef35a872bc16"
}