Dagger
Search

Databasely

Internal Demo Application that Mocks a webscale Production Database

Installation

dagger install gitlab.com/levlaz/databasely@e4ad019ff7b2aaff433992d1de2d53cd53b00dbc

Entrypoint

Return Type
Databasely
Example
dagger -m gitlab.com/levlaz/databasely@e4ad019ff7b2aaff433992d1de2d53cd53b00dbc call \
func (m *myModule) example() *Databasely  {
	return dag.
			Databasely()
}
@function
def example() -> dag.Databasely:
	return (
		dag.databasely()
	)
@func()
example(): Databasely {
	return dag
		.databasely()
}

Types

Databasely 🔗

serve() 🔗

Return a production database that scales

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
appNameString !"enterprise-app"No description provided
replicasInteger !10No description provided
storageString !"nvme"No description provided
regionString !"us-west-2"No description provided
environmentString !"production"No description provided
Example
dagger -m gitlab.com/levlaz/databasely@e4ad019ff7b2aaff433992d1de2d53cd53b00dbc call \
 serve --app-name string --replicas integer --storage string --region string --environment string
func (m *myModule) example(appName string, replicas int, storage string, region string, environment string) *Service  {
	return dag.
			Databasely().
			Serve(appName, replicas, storage, region, environment)
}
@function
def example(app_name: str, replicas: int, storage: str, region: str, environment: str) -> dagger.Service:
	return (
		dag.databasely()
		.serve(app_name, replicas, storage, region, environment)
	)
@func()
example(appName: string, replicas: number, storage: string, region: string, environment: string): Service {
	return dag
		.databasely()
		.serve(appName, replicas, storage, region, environment)
}