Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request / search: Trace log #131

Open
leocasarsa opened this issue May 6, 2016 · 4 comments
Open

Feature request / search: Trace log #131

leocasarsa opened this issue May 6, 2016 · 4 comments

Comments

@leocasarsa
Copy link

leocasarsa commented May 6, 2016

Is there any way to list all the - mutation - BQL commands that have been executed in a specific bdb file? I don't need to know about SELECT * FROM %t, but I would like to know things like CREATE TABLE foo or ANALYZE 24 MODELS FOR foo.

@riastradh-probcomp
Copy link
Contributor

Can't quite report ANALYZE, but you can get an approximation with:

echo .dump | sqlite3 ./foo.bdb

@BelhalK
Copy link

BelhalK commented May 6, 2016

q('''SELECT iterations FROM bayesdb_generator_model
                           WHERE generator_id = (
                            SELECT id FROM bayesdb_generator WHERE name = %g)''')

is what you want I believe for ANALYZE

for CREATE your request #129 is relevant

@leocasarsa
Copy link
Author

Thanks, both of you. Maybe we can integrate these two answers into a bdb.trace_log() method?

@gregory-marton
Copy link
Contributor

I agree that we should be able to replay various views of a user's history to them to some extent. This is one way that session capture could be made to directly help users. One view should absolutely be times that tables got created or modified, and indeed how generators have been created and modified. Good idea!

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

No branches or pull requests

4 participants