Dagger
Search

atlas

No long description provided.

Installation

dagger install github.com/fluent-ci-templates/atlas-pipeline@bc6f64f9e7d99ff6ff8155d8af88abd69ab09bb0

Entrypoint

Return Type
Atlas
Example
dagger -m github.com/fluent-ci-templates/atlas-pipeline@bc6f64f9e7d99ff6ff8155d8af88abd69ab09bb0 call \
func (m *myModule) example() *Atlas  {
	return dag.
			Atlas()
}
@function
def example() -> dag.Atlas:
	return (
		dag.atlas()
	)
@func()
example(): Atlas {
	return dag
		.atlas()
}

Types

Atlas 🔗

migrate() 🔗

Run database migrations

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

dryRun() 🔗

Run database migrations in dry run mode

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