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,28 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO weapons(name) VALUES($1) RETURNING id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4",
"origin": {
"Table": {
"table": "weapons",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false
]
},
"hash": "47034e39cb7334f325c48989f2b3bea3fbb46310a3c58d39b5c6e5efcd8ea431"
}

View file

@ -0,0 +1,38 @@
{
"db_name": "PostgreSQL",
"query": "SELECT name, id FROM weapons",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "name",
"type_info": "Text",
"origin": {
"Table": {
"table": "weapons",
"name": "name"
}
}
},
{
"ordinal": 1,
"name": "id",
"type_info": "Int4",
"origin": {
"Table": {
"table": "weapons",
"name": "id"
}
}
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
false
]
},
"hash": "5c8c64f01e71a37c4d00494963fb99914a22b17521c24ae3e6b4ff8f24b2033e"
}

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"
}

View file

@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM weapons WHERE name = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4",
"origin": {
"Table": {
"table": "weapons",
"name": "id"
}
}
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false
]
},
"hash": "dff7423ae1947cd0771fbd895c073bdc81b394018c2edf7477eff36a311585dc"
}