Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadCLI(toDir string) error
- func FetchEngine(dir string, engineName string, binaryName string) error
- func FetchNative(toDir string) error
- func GetEnginePath(dir, engineName, binaryName string) string
- func GlobalCacheDir() string
- func GlobalTempDir(version string) string
- func GlobalUnpackDir(version string) string
- func PrismaCLIName() string
- type Engine
Constants ¶
View Source
const EngineVersion = "aebc046ce8b88ebbcb45efe31cbe7d06fd6abc0a"
EngineVersion is a hardcoded version of the Prisma Engine. The versions can be found under https://github.com/prisma/prisma-engines/commits/main
View Source
const PrismaVersion = "5.5.2"
PrismaVersion is a hardcoded version of the Prisma CLI.
Variables ¶
View Source
var EngineURL = "https://binaries.prisma.sh/all_commits/%s/%s/%s.gz"
EngineURL points to an S3 bucket URL where the Prisma engines are stored.
View Source
var Engines = []Engine{{
"query-engine",
"PRISMA_QUERY_ENGINE_BINARY",
}, {
"schema-engine",
"PRISMA_SCHEMA_ENGINE_BINARY",
}}
View Source
var PrismaURL = "https://packaged-cli.prisma.sh/%s-%s-%s-%s.gz"
PrismaURL points to an S3 bucket URL where the CLI binaries are stored.
Functions ¶
func DownloadCLI ¶
func FetchNative ¶
FetchNative fetches the Prisma binaries needed for the generator to a given directory
func GetEnginePath ¶
func GlobalCacheDir ¶
func GlobalCacheDir() string
GlobalCacheDir returns the path of where the CLI lives internally, this is the global temp dir
func GlobalTempDir ¶
GlobalTempDir returns the path of where the engines live internally, this is the global temp dir
func GlobalUnpackDir ¶
func PrismaCLIName ¶
func PrismaCLIName() string
PrismaCLIName returns the local file path of where the CLI lives
Types ¶
Click to show internal directories.
Click to hide internal directories.