Dagger
Search

prisma

No long description provided.

Installation

dagger install github.com/fluent-ci-templates/prisma-pipeline@30c999558d83d1f8fd23a8c88901a10c0b2e0886

Entrypoint

Return Type
Prisma
Example
func (m *myModule) example() *Prisma  {
	return dag.
			Prisma()
}
@function
def example() -> dag.Prisma:
	return (
		dag.prisma()
	)
@func()
example(): Prisma {
	return dag
		.prisma()
}

Types

Prisma

validate()

Validate prisma schema

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
databaseUrlSecret !-No description provided
Example
dagger -m github.com/fluent-ci-templates/prisma-pipeline@30c999558d83d1f8fd23a8c88901a10c0b2e0886 call \
 validate --src DIR_PATH --database-url env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, databaseUrl *Secret) string  {
	return dag.
			Prisma().
			Validate(ctx, src, databaseUrl)
}
@function
async def example(src: dagger.Directory, database_url: dagger.Secret) -> str:
	return await (
		dag.prisma()
		.validate(src, database_url)
	)
@func()
async example(src: Directory, databaseUrl: Secret): Promise<string> {
	return dag
		.prisma()
		.validate(src, databaseUrl)
}

deploy()

Deploy all migrations

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
databaseUrlSecret !-No description provided
Example
dagger -m github.com/fluent-ci-templates/prisma-pipeline@30c999558d83d1f8fd23a8c88901a10c0b2e0886 call \
 deploy --src DIR_PATH --database-url env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, databaseUrl *Secret) string  {
	return dag.
			Prisma().
			Deploy(ctx, src, databaseUrl)
}
@function
async def example(src: dagger.Directory, database_url: dagger.Secret) -> str:
	return await (
		dag.prisma()
		.deploy(src, database_url)
	)
@func()
async example(src: Directory, databaseUrl: Secret): Promise<string> {
	return dag
		.prisma()
		.deploy(src, databaseUrl)
}

push()

Apply schema changes

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
databaseUrlSecret !-No description provided
Example
dagger -m github.com/fluent-ci-templates/prisma-pipeline@30c999558d83d1f8fd23a8c88901a10c0b2e0886 call \
 push --src DIR_PATH --database-url env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, databaseUrl *Secret) string  {
	return dag.
			Prisma().
			Push(ctx, src, databaseUrl)
}
@function
async def example(src: dagger.Directory, database_url: dagger.Secret) -> str:
	return await (
		dag.prisma()
		.push(src, database_url)
	)
@func()
async example(src: Directory, databaseUrl: Secret): Promise<string> {
	return dag
		.prisma()
		.push(src, databaseUrl)
}