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 GlobalCacheDir() string
- func GlobalTempDir() string
- func PrismaCLIName() string
Constants ¶
const EngineVersion = "76857c35ba1e1764dd5473656ecbbb2f739e1822"
EngineVersion is a hardcoded version of the Prisma Engine. The versions can be found under https://github.com/prisma/prisma-engine/commits/master.
const PrismaVersion = "2.0.0-beta.2"
PrismaVersion is a hardcoded version of the Prisma CLI.
Variables ¶
var EngineURL = "https://binaries.prisma.sh/master/%s/%s/%s.gz"
EngineURL points to an S3 bucket URL where the Prisma engines are stored.
var PrismaURL = "https://prisma-photongo.s3-eu-west-1.amazonaws.com/%s-%s-%s.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 GlobalCacheDir ¶
func GlobalCacheDir() string
GlobalCacheDir returns the path of where the CLI lives internally, this is the global temp dir
func GlobalTempDir ¶
func GlobalTempDir() string
GlobalTempDir returns the path of where the engines live internally, this is the global temp dir
func PrismaCLIName ¶
func PrismaCLIName() string
PrismaCLIName returns the local file path of where the CLI lives
Types ¶
This section is empty.