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
Name | Type | Default Value | Description |
---|---|---|---|
appName | String ! | "enterprise-app" | No description provided |
replicas | Integer ! | 10 | No description provided |
storage | String ! | "nvme" | No description provided |
region | String ! | "us-west-2" | No description provided |
environment | String ! | "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)
}