add tql pragma for log-level sql-thread-lock #297
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and refactoring changes across multiple files, focusing on adding experimental features, improving regex usage, and adding new functionality. The most important changes include the introduction of the
LockOSThread
feature, refactoring regex usage, and adding a newVector
type in thenums
package.Experimental Features:
api/commands.go
: AddedLockOSThread
field toCommandHandler
struct and updatedrunSql
method to set this field in theQuery
object. [1] [2]api/do_query.go
: AddedlockOSThread
field toQuery
struct and implementedSetLockOSThread
method. ModifiedExecute
method to lock the OS thread iflockOSThread
is set. [1] [2] [3] [4] [5]Regex Refactoring:
api/commands.go
: Replaced inline regex compilation with precompiled regex variables forparseCommandLineRegex
andexplainFullRegex
. [1] [2] [3]api/options.go
: RefactoredSqlTidyWidth
function to use a precompiled regex variablesqlTidyWidthRegexp
.mods/server/http.go
: RefactoredhandleMarkdown
method to use precompiled regex variablesmdFileRootRegexp
,mdFilePathRegexp
,mdFileNameRegexp
, andmdFileDirRegexp
. [1] [2]New Functionality:
mods/nums/vectors.go
: Added a newVector
type with methods for dimension calculation, JSON marshaling/unmarshaling, and binary marshaling/unmarshaling.mods/nums/vectors_test.go
: Added tests for the newVector
type, covering various methods and functionalities.Miscellaneous Improvements:
magefiles/magefile.go
: Added debug build tags for Linux targets when thestrip
flag is not set.mods/server/http_opts.go
: Added a newWithHttpKeepAlive
option to configure the keep-alive period for HTTP connections.These changes improve the codebase by adding new features, optimizing performance, and enhancing maintainability.