mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-02 13:04:08 +01:00
Proxy storage: flows table, bodies in blobs.sqlite, settings (#751)
This commit is contained in:
1 parent
694c0272cd
commit
b5508e6bb1
25 files changed
+942
-289
No files matched your search
@@ -0,0 +1,27 @@
|
||||
DROP TABLE http_exchanges;
|
||||
|
||||
CREATE TABLE flows
|
||||
(
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
started_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
method TEXT NOT NULL DEFAULT '',
|
||||
url TEXT NOT NULL DEFAULT '',
|
||||
client_http_version TEXT NOT NULL DEFAULT '',
|
||||
upstream_http_version TEXT,
|
||||
remote_addr TEXT,
|
||||
status INTEGER,
|
||||
content_type TEXT,
|
||||
request_headers TEXT NOT NULL DEFAULT '[]',
|
||||
response_headers TEXT NOT NULL DEFAULT '[]',
|
||||
request_size INTEGER NOT NULL DEFAULT 0,
|
||||
response_size INTEGER NOT NULL DEFAULT 0,
|
||||
request_truncated BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
response_truncated BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
elapsed_headers_ms INTEGER,
|
||||
elapsed_ms INTEGER,
|
||||
error TEXT
|
||||
);
|
||||
|
||||
CREATE INDEX idx_flows_started_at ON flows (started_at);
|
||||
Reference in new issue
Block a user