-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
support other SQLite wrappers, and various hooks needed by grist-static #516
Conversation
// dbstat compiled in. But it would be sad to disable | ||
// Grist entirely just because we can't track byte-count. | ||
// So return NaN in this case. | ||
return {totalSize: NaN}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point in the future, should we return something like null
instead? I realize doing it now will introduce a bunch of type errors (and the doc usage UI would need to be updated too) - just wondering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be nice. But it could also be easy to make a SQLite build with dbstat enabled.
if (sandboxProcess.dataFromSandboxDescriptor) { | ||
this._streamFromSandbox = | ||
(this.childProc.stdio as Stream[])[sandboxProcess.dataFromSandboxDescriptor]; | ||
if (this.childProc) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any easy changes we can make here to simplify things? (e.g. splitting up into methods, lowering conditional depth)
Ok if not - just flagging because it was a bit of a struggle to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I broke the constructor up somewhat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @paulfitz!
e6f014a
to
f991c3f
Compare
grist-static currently uses a hacky patched version of grist-core. In this PR, I'm working on cleaning up the changes, and consolidating them in general-purpose hooks.
credentialless
is useful in some situations)realpath
function orsetImmediate
function