@pgxsinkit/pgwasm
Version:
14 lines • 804 B
TypeScript
export declare function encodedUtf8Length(value: string): number;
export declare function validatePathComponent(component: string): number;
/**
* Validate a symbolic link's target and report its UTF-8 byte length.
*
* Targets are ABSOLUTE ONLY, and deliberately so: an absolute target resolves by restarting the
* walk at the store root, which needs no notion of "the directory the link lives in" and therefore
* survives a rename of the link. It is also all a Postgres datadir ever writes — `CREATE TABLESPACE`
* links `pg_tblspc/<oid>` at the absolute `LOCATION`. A relative target is `EINVAL`, not silently
* reinterpreted.
*/
export declare function validateSymlinkTarget(target: string): number;
export declare function parsePath(path: string): string[];
//# sourceMappingURL=path.d.ts.map