Skip to content

Conversation

@yearski
Copy link

@yearski yearski commented Sep 11, 2025

Sample code to create sqlalchemy models to store snss2 commands in a database.

create new SessionCommand classes: TabWindow, TabindexInWindow, NavigationIndex, TabInIndex, WindowType, PinnedState, WindowBounds3, WindowAppName, SessionStorageAssociated, ActiveWindow, LastActiveTime, WindowWorkspace, WindowWorkspace2, TabGroup, TabGroupMetadata2, TabExtraData, WindowExtraData

create process_cmd_entry() function and call from SnssFile where it previously dumped to Unprocessed
The sample data was useful for initial code implementation - if needed, it can be found in previous commit diff.
sqlalchemy models
db_from_cmd_list() function to populate database
@yearski
Copy link
Author

yearski commented Sep 11, 2025

Feel free to reject this PR if it doesn't fit the project. I created it for my own use and just thought I'd share it if anyone might benefit.

@AlexC-CCL AlexC-CCL self-assigned this Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants