platform overview
Platform detection and mapping utilities for @effect-native/libcrsql.
Added in v0.16.300
Table of contents
utils
Platform (type alias)
Supported platform-arch identifiers.
Signature
export type Platform = "darwin-aarch64" | "darwin-x86_64" | "linux-aarch64" | "linux-x86_64" | "win-x86_64" | "win-i686"
Added in v0.16.300
SUPPORTED_PLATFORMS
List of supported platforms.
Signature
export declare const SUPPORTED_PLATFORMS: readonly Platform[]
Added in v0.16.300
buildRelativeLibraryPath
Build relative path to the cr-sqlite binary within the package.
Signature
export declare const buildRelativeLibraryPath: (platform: Platform) => string
Added in v0.16.300
detectPlatform
Detect current platform string.
Signature
export declare const detectPlatform: () => string
Added in v0.16.300
isSupportedPlatform
True if the given string is a supported platform.
Signature
export declare const isSupportedPlatform: (p: string) => p is Platform
Added in v0.16.300