feat: 🎸 Add sqlite support for session recordings (#2974)

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-17419
This commit is contained in:
Zhihe Li committed 2025-09-03 11:41:42 -04:00
1 parent 47c1beadcd
commit cb8b21c10c
4 files changed
+96 -7

No files matched your search

+17
View File
@@ -83,6 +83,22 @@ export const modelMapping = {
scope_id: 'scope.scope_id',
created_time: 'created_time',
},
'session-recording': {
id: 'id',
type: 'type',
state: 'state',
start_time: 'start_time',
end_time: 'end_time',
duration: 'duration',
scope_id: 'scope.scope_id',
user_id: 'create_time_values.user.id',
user_name: 'create_time_values.user.name',
target_id: 'create_time_values.target.id',
target_name: 'create_time_values.target.name',
target_scope_id: 'create_time_values.target.scope.id',
target_scope_name: 'create_time_values.target.scope.name',
created_time: 'created_time',
},
};
// A list of tables that we support searching using FTS5 in SQLite.
@@ -96,6 +112,7 @@ export const searchTables = new Set([
'scope',
'auth-method',
'host-catalog',
'session-recording',
]);
export default class SqliteDbService extends Service {