curl installation approach

You can decide to install sqlx-ts independently using a simple curl command.

NOTE: This is not an usual way to install to use sqlx-ts. However, it can be used in an environment without NPM.

Examples:

# The following command will install sqlx-ts (v0.9.0) for MacOS (darwin) with M1 CPU (arm64)
# overwrite the existing sqlx-ts (-f) at the default installation location (pwd)
curl -LSfs https://jasonshin.github.io/sqlx-ts/install.sh | bash -s -- \
    --os darwin
    --cpu arm64
    --tag v0.9.0
    -f

You can find more information about the install.sh

curl -LSfs https://jasonshin.github.io/sqlx-ts/install.sh | bash -s -- \
    --help

You can find the latest releases of sqlx-ts here to find an appropriate value for --tag

FlagDescription
-h --helpHelp command to display all available
-f --forceForce overwriting an existing binary. Useful when you'd like to update or downgrade the binary
--osYour current OS, it's used to determine the type of binary to be installed (one of macos or win32 or linux)
--artifactSpecific artifact to install. Please find the artifact name from https://github.com/JasonShin/sqlx-ts/releases (e.g. sqlx_ts_v0.1.0_x86_64-apple-darwin.zip)
--tagTag (version) of the crate to install (default )
--toWhere to install the binary (default to . or pwd current diretory)