Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadCLI(toDir string) error
- func DownloadEngine(name string, toDir string) (file string, err error)
- func FetchEngine(toDir string, engineName string, binaryPlatformName string) error
- func FetchNative(toDir string) error
- func GetEnginePath(dir, engine, 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 = "272861e07ab64f234d3ffc4094e32bd61775599c"
EngineVersion is a hardcoded version of the Prisma Engine. The versions can be found under https://github.com/prisma/prisma-engines/commits/master
View Source
const PrismaVersion = "4.7.1"
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",
}, {
"migration-engine",
"PRISMA_MIGRATION_ENGINE_BINARY",
}, {
"introspection-engine",
"PRISMA_INTROSPECTION_ENGINE_BINARY",
}, {
"prisma-fmt",
"PRISMA_FMT_BINARY",
}}
View Source
var PrismaURL = "https://packaged-cli.prisma.sh/%s-%s-%s-x64.gz"
PrismaURL points to an S3 bucket URL where the CLI binaries are stored.
Functions ¶
func DownloadCLI ¶
func FetchEngine ¶
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.