@tsdrivers/mssql / resolveLibraryPath
Function: resolveLibraryPath()
resolveLibraryPath(
ctx):string
Defined in: projects/ts-mssql/core/binary.ts:55
Resolve the path to the native library. Throws if not found.
Resolution order:
TSDRIVERS_MSSQL_LIB_PATHenv var (explicit path)node_modules/pkg/native/{filename}(Node/Bun postinstall)- Walk up from cwd — at each dir check:
{dir}/{filename},{dir}/lib/,{dir}/.lib/,{dir}/bin/,{dir}/.bin/ - Next to entry point
- Home directory:
~/lib/,~/.lib/,~/bin/,~/.bin/ ~/.cache/@tsdrivers/mssql/{version}/{filename}- Throw with install instructions
Parameters
ctx
Returns
string