{ "db": "SQLite", "00dd217f8d24b24349de60f70119c4c6d8636b98eabd6c3dab74a66433f31fff": { "query": "CREATE TABLE IF NOT EXISTS assets (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL UNIQUE,\n wkn TEXT UNIQUE,\n isin TEXT UNIQUE,\n note TEXT\n )", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "05bac0434b2b4a97ea9587291364d4b769772596bbf51f659d329c675b3e30eb": { "query": "CREATE TABLE IF NOT EXISTS transactions (\n id INTEGER PRIMARY KEY,\n trans_type TEXT NOT NULL,\n asset_id INTEGER,\n cash_amount REAL NOT NULL,\n cash_currency TEXT NOT NULL,\n cash_date TEXT NOT NULL,\n related_trans INTEGER,\n position REAL,\n note TEXT,\n time_stamp INTEGER NOT NULL,\n FOREIGN KEY(asset_id) REFERENCES assets(id),\n FOREIGN KEY(related_trans) REFERENCES transactions(id)\n )", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "08dc5d580f4e0ec42aa78837af1ed110b3a29768ba2a37d759cf5da635b66f52": { "query": "SELECT id, name, wkn, note FROM assets WHERE isin=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "name", "ordinal": 1, "type_info": "Text" }, { "name": "wkn", "ordinal": 2, "type_info": "Text" }, { "name": "note", "ordinal": 3, "type_info": "Text" } ], "parameters": { "Right": 1 }, "nullable": [ true, false, true, true ] } }, "093615a51e4e9abe1c792cc64297512fe32677232d40c7021a851d4eb4d0400f": { "query": "SELECT id FROM ticker WHERE name=? AND source=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 2 }, "nullable": [ false ] } }, "0c9e8192a07199a1834eab312334a3014f4695cfadcdeeb18c6b25d9429c5fed": { "query": "DROP TABLE IF EXISTS transactions", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "154bad46068ac5b0c33fe8a65ec17db39b34fd0bc5c39816c8de918d86fa7dd5": { "query": "SELECT name, wkn, isin, note FROM assets WHERE id=?", "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Text" }, { "name": "wkn", "ordinal": 1, "type_info": "Text" }, { "name": "isin", "ordinal": 2, "type_info": "Text" }, { "name": "note", "ordinal": 3, "type_info": "Text" } ], "parameters": { "Right": 1 }, "nullable": [ false, true, true, true ] } }, "196a3d2b72c123e0e44d56c7e49e5e8338b3f62a27bc53a80b553cc8f5473e62": { "query": "DELETE FROM quotes WHERE id=?1;", "describe": { "columns": [], "parameters": { "Right": 1 }, "nullable": [] } }, "197154e8ae16697c5ea7a2a4354c8a721f6668a98285c99eda30de82b227dd3d": { "query": "INSERT INTO rounding_digits (currency, digits) VALUES (?1, ?2)", "describe": { "columns": [], "parameters": { "Right": 2 }, "nullable": [] } }, "1c42bdacc8b65cd8a3ab0a6842bdbc29ff041c0a77b85640634feb1c778dbcf6": { "query": "UPDATE transactions SET \n trans_type=?2, \n asset_id=?3, \n cash_amount=?4, \n cash_currency=?5,\n cash_date=?6,\n related_trans=?7,\n position=?8,\n note=?9\n WHERE id=?1", "describe": { "columns": [], "parameters": { "Right": 9 }, "nullable": [] } }, "1eab5ce067f2f22e187919b2efa5b3ff3e080811b1ad27daa64aa086c719957c": { "query": "SELECT id FROM assets WHERE name=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 1 }, "nullable": [ true ] } }, "2726e8670e72c9c4b7c918dff77566dea83371623e18fb24c5fe2b9102c4a697": { "query": "DROP TABLE IF EXISTS rounding_digits", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "2e432b4eebd0e03c0719b401f003fc29a0cff32d707f1cac8256291b28f00eca": { "query": "INSERT INTO assets (name, wkn, isin, note) VALUES (?1, ?2, ?3, ?4)", "describe": { "columns": [], "parameters": { "Right": 4 }, "nullable": [] } }, "30a365d3e2058c995c25bb6ef622f0acd055d99d9e9d060cdcab6794189c2a54": { "query": "UPDATE ticker SET name=?2, asset_id=?3, source=?4, priority=?5, currency=?6, factor=?7\n WHERE id=?1", "describe": { "columns": [], "parameters": { "Right": 7 }, "nullable": [] } }, "3296b0aed45be6ec29ba78eac259728887e8c5f8a2cb0567353a89421cce4211": { "query": "UPDATE quotes SET ticker_id=?2, price=?3, time=?4, volume=?5\n WHERE id=?1", "describe": { "columns": [], "parameters": { "Right": 5 }, "nullable": [] } }, "33abcdf37ec8e081edb29fc4165d2f74a6decd9a96d15c18e4234496f9de3054": { "query": "UPDATE assets SET name=?2, wkn=?3, isin=?4, note=?5 \n WHERE id=?1", "describe": { "columns": [], "parameters": { "Right": 5 }, "nullable": [] } }, "364120eb186231904b1d79b6cc334163bdd1327a872020e15cb40e867951b26c": { "query": "CREATE TABLE IF NOT EXISTS quotes (\n id INTEGER PRIMARY KEY,\n ticker_id INTEGER NOT NULL,\n price REAL NOT NULL,\n time TEXT NOT NULL,\n volume REAL,\n FOREIGN KEY(ticker_id) REFERENCES ticker(id) \n )", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "37d2c467d5e29cad569040702127847d175e180325d812b3fce3f85e8212b088": { "query": "SELECT id, price, time, volume FROM quotes \n WHERE ticker_id=?1 ORDER BY time ASC", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "price", "ordinal": 1, "type_info": "Float" }, { "name": "time", "ordinal": 2, "type_info": "Text" }, { "name": "volume", "ordinal": 3, "type_info": "Float" } ], "parameters": { "Right": 1 }, "nullable": [ false, false, false, true ] } }, "3d75c2b7aebff5570727d0b94eced57fcc1418e960eab53b22b79af0a3011f51": { "query": "SELECT id FROM quotes WHERE ticker_id=? and time=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 2 }, "nullable": [ false ] } }, "477a18ebcdc948588d246043e085f67e58f6e28e02ab4ec1e0f019eb99dbedd9": { "query": "SELECT id, trans_type, asset_id, \n cash_amount, cash_currency, cash_date, related_trans, position, note \n FROM transactions", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "trans_type", "ordinal": 1, "type_info": "Text" }, { "name": "asset_id", "ordinal": 2, "type_info": "Int64" }, { "name": "cash_amount", "ordinal": 3, "type_info": "Float" }, { "name": "cash_currency", "ordinal": 4, "type_info": "Text" }, { "name": "cash_date", "ordinal": 5, "type_info": "Text" }, { "name": "related_trans", "ordinal": 6, "type_info": "Int64" }, { "name": "position", "ordinal": 7, "type_info": "Float" }, { "name": "note", "ordinal": 8, "type_info": "Text" } ], "parameters": { "Right": 0 }, "nullable": [ false, false, true, false, false, false, true, true, true ] } }, "4bea501bc04c9fe4e52b2d9da13114a279f8fe900644f9d3ddaa786917e148b7": { "query": "DELETE FROM assets WHERE id=?;", "describe": { "columns": [], "parameters": { "Right": 1 }, "nullable": [] } }, "4ebbf985db4da836a73afbd7504f08d31c4e79e0b6da5b3d5c0fb1be3ec869af": { "query": "SELECT id, name, source, priority, currency, factor FROM ticker WHERE asset_id=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "name", "ordinal": 1, "type_info": "Text" }, { "name": "source", "ordinal": 2, "type_info": "Text" }, { "name": "priority", "ordinal": 3, "type_info": "Int64" }, { "name": "currency", "ordinal": 4, "type_info": "Text" }, { "name": "factor", "ordinal": 5, "type_info": "Float" } ], "parameters": { "Right": 1 }, "nullable": [ false, false, false, false, false, false ] } }, "625df8d5eac7ec128ebf22096f4b4674aa39b7b675db2f2c9612d5549862b84e": { "query": "INSERT INTO quotes (ticker_id, price, time, volume) \n VALUES (?, ?, ?, ?)", "describe": { "columns": [], "parameters": { "Right": 4 }, "nullable": [] } }, "67593e25d89ac0c3ee0bc48184ef79effb31ccc63dce2caa5aae1c2a060c1dbb": { "query": "SELECT id, name, asset_id, priority, currency, factor FROM ticker WHERE source=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "name", "ordinal": 1, "type_info": "Text" }, { "name": "asset_id", "ordinal": 2, "type_info": "Int64" }, { "name": "priority", "ordinal": 3, "type_info": "Int64" }, { "name": "currency", "ordinal": 4, "type_info": "Text" }, { "name": "factor", "ordinal": 5, "type_info": "Float" } ], "parameters": { "Right": 1 }, "nullable": [ false, false, false, false, false, false ] } }, "6f3da4e9a48ffb70928cb3810a08a8edca4b01f9b7203a7db213736022833d6b": { "query": "SELECT id, name, asset_id, priority, source, currency, factor FROM ticker", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "name", "ordinal": 1, "type_info": "Text" }, { "name": "asset_id", "ordinal": 2, "type_info": "Int64" }, { "name": "priority", "ordinal": 3, "type_info": "Int64" }, { "name": "source", "ordinal": 4, "type_info": "Text" }, { "name": "currency", "ordinal": 5, "type_info": "Text" }, { "name": "factor", "ordinal": 6, "type_info": "Float" } ], "parameters": { "Right": 0 }, "nullable": [ false, false, false, false, false, false, false ] } }, "77bfa54342b8ccc1169241ee8d47280c8aecc762ed0667b1daa6396c9d9da73f": { "query": "DROP TABLE IF EXISTS quotes", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "8217460abb4cc71b811f9d72282e9042925bfad702e8a44537bc75d37a1ae1cd": { "query": "SELECT q.id, q.ticker_id, q.price, q.time, q.volume, t.currency, t.priority\n FROM quotes q, ticker t\n WHERE t.asset_id=?1 AND t.id=q.ticker_id AND q.time<= ?2\n ORDER BY q.time DESC, t.priority ASC LIMIT 1", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "ticker_id", "ordinal": 1, "type_info": "Int64" }, { "name": "price", "ordinal": 2, "type_info": "Float" }, { "name": "time", "ordinal": 3, "type_info": "Text" }, { "name": "volume", "ordinal": 4, "type_info": "Float" }, { "name": "currency", "ordinal": 5, "type_info": "Text" }, { "name": "priority", "ordinal": 6, "type_info": "Int64" } ], "parameters": { "Right": 2 }, "nullable": [ false, false, false, false, true, false, false ] } }, "862c0f517783d4e65d0b38e5947cf1d564a23287c3a91d3c88c75138db6e6e6a": { "query": "SELECT name, asset_id, source, priority, currency, factor FROM ticker WHERE id=?", "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Text" }, { "name": "asset_id", "ordinal": 1, "type_info": "Int64" }, { "name": "source", "ordinal": 2, "type_info": "Text" }, { "name": "priority", "ordinal": 3, "type_info": "Int64" }, { "name": "currency", "ordinal": 4, "type_info": "Text" }, { "name": "factor", "ordinal": 5, "type_info": "Float" } ], "parameters": { "Right": 1 }, "nullable": [ false, false, false, false, false, false ] } }, "86f426b15942101acfe34f71058095e3ab7fddf8eb5208ff997d9c4e15d149a8": { "query": "INSERT INTO ticker (name, asset_id, source, priority, currency, factor) \n VALUES (?1, ?2, ?3, ?4, ?5, ?6)", "describe": { "columns": [], "parameters": { "Right": 6 }, "nullable": [] } }, "8c34b6a8e831af2e778836dd72086be47100d72709e6c88c456537d04c64d28d": { "query": "SELECT id FROM assets WHERE isin=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 1 }, "nullable": [ true ] } }, "b43004a4421651c40e4af0e172c95c21dc86d26e1441a60d99a60478c680edd2": { "query": "DELETE FROM transactions WHERE id=?", "describe": { "columns": [], "parameters": { "Right": 1 }, "nullable": [] } }, "bd142e357d737fce06e20e457881d8ad55eede6b714ed3100f2675430d034e74": { "query": "CREATE TABLE IF NOT EXISTS rounding_digits (\n id INTEGER PRIMARY KEY,\n currency TEXT NOT NULL UNIQUE,\n digits INT NOT NULL\n )", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "c0f2ee69e780d4bf665114891fce41816bb921328608774255d7309ae2cc9010": { "query": "CREATE TABLE IF NOT EXISTS ticker (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL,\n asset_id INTEGER NOT NULL,\n source TEXT NOT NULL,\n priority INTEGER NOT NULL,\n currency TEXT NOT NULL,\n factor REAL NOT NULL DEFAULT 1.0,\n FOREIGN KEY(asset_id) REFERENCES assets(id) \n )", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "c3a2330b5f23f1c2afc8b3cfef3609459bee3e09c360a3f93218ee2c9ff3a4aa": { "query": "SELECT id FROM transactions \n WHERE \n trans_type=?\n AND cash_amount=?\n AND cash_currency=?\n AND cash_date=?\n AND time_stamp=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 5 }, "nullable": [ false ] } }, "cb82578b78eeeea5b249f94229a0f66762a9cd2688d886c5b408fec9393484d0": { "query": "DROP TABLE IF EXISTS assets", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "d49c67e45b501b3457a35246d908a01cb61dd2b9a990920fa197ce586f0366d1": { "query": "SELECT id FROM assets WHERE wkn=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 1 }, "nullable": [ true ] } }, "d5e7a726f438b9b446cc2fba8cc237821555d06a976612440c63d39a2de8c2ec": { "query": "DELETE FROM ticker WHERE id=?", "describe": { "columns": [], "parameters": { "Right": 1 }, "nullable": [] } }, "e2cc0a9a47d4fc49e5a2f131a99460b78f4133c99e7315f3457b3b58864935eb": { "query": "SELECT q.id, q.ticker_id, q.price, q.time, q.volume, t.currency, t.priority\n FROM quotes q, ticker t, assets a \n WHERE a.name=? AND t.asset_id=a.id AND t.id=q.ticker_id AND q.time<=?\n ORDER BY q.time DESC, t.priority ASC LIMIT 1", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "ticker_id", "ordinal": 1, "type_info": "Int64" }, { "name": "price", "ordinal": 2, "type_info": "Float" }, { "name": "time", "ordinal": 3, "type_info": "Text" }, { "name": "volume", "ordinal": 4, "type_info": "Float" }, { "name": "currency", "ordinal": 5, "type_info": "Text" }, { "name": "priority", "ordinal": 6, "type_info": "Int64" } ], "parameters": { "Right": 2 }, "nullable": [ false, false, false, false, true, false, false ] } }, "e9d31100181f5c13569111d928b5eaedc86766cb78ebdc1c443a374e4d5a0dad": { "query": "DROP TABLE IF EXISTS ticker", "describe": { "columns": [], "parameters": { "Right": 0 }, "nullable": [] } }, "ea62043d5db36607dc4f35788963d43fa3d56236ccfe9b1c60cb21ac75cbc1de": { "query": "INSERT INTO transactions (trans_type, asset_id, cash_amount, \n cash_currency, cash_date, related_trans, position,\n note, time_stamp) \n VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9)", "describe": { "columns": [], "parameters": { "Right": 9 }, "nullable": [] } }, "f1b76cf12cd213027fd62a546e6ad716e78484497a108dce3e2a07c5510cac8c": { "query": "SELECT id, name, wkn, isin, note FROM assets ORDER BY name", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" }, { "name": "name", "ordinal": 1, "type_info": "Text" }, { "name": "wkn", "ordinal": 2, "type_info": "Text" }, { "name": "isin", "ordinal": 3, "type_info": "Text" }, { "name": "note", "ordinal": 4, "type_info": "Text" } ], "parameters": { "Right": 0 }, "nullable": [ true, false, true, true, true ] } }, "f62aed1244150c3178f425582c1e443f481b609a885a3d71f1406d5f24311547": { "query": "SELECT name FROM assets WHERE isin IS NULL AND wkn IS NULL AND length(name)=3", "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Text" } ], "parameters": { "Right": 0 }, "nullable": [ false ] } }, "f7bf8f7ea961626c8913c4ee1f6eb81efc160d17cb89bd7e7c05e2e7f3a0ad72": { "query": "SELECT trans_type, asset_id, \n cash_amount, cash_currency, cash_date, related_trans, position, note \n FROM transactions\n WHERE id=?1", "describe": { "columns": [ { "name": "trans_type", "ordinal": 0, "type_info": "Text" }, { "name": "asset_id", "ordinal": 1, "type_info": "Int64" }, { "name": "cash_amount", "ordinal": 2, "type_info": "Float" }, { "name": "cash_currency", "ordinal": 3, "type_info": "Text" }, { "name": "cash_date", "ordinal": 4, "type_info": "Text" }, { "name": "related_trans", "ordinal": 5, "type_info": "Int64" }, { "name": "position", "ordinal": 6, "type_info": "Float" }, { "name": "note", "ordinal": 7, "type_info": "Text" } ], "parameters": { "Right": 1 }, "nullable": [ false, true, false, false, false, true, true, true ] } }, "fa689516926046a90d8a08c3fce89d284d544802f6d5cb302192cfed60c2441f": { "query": "SELECT digits FROM rounding_digits WHERE currency=?1;", "describe": { "columns": [ { "name": "digits", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 1 }, "nullable": [ false ] } }, "fdb41da5d730796ba4d7c7f39c6cf4cb615b8d848f263170ef6e4c0090d4efac": { "query": "SELECT id FROM ticker WHERE name=?", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int64" } ], "parameters": { "Right": 1 }, "nullable": [ false ] } } }