Databasely
Internal Demo Application that Mocks a webscale Production Database
Installation
dagger install gitlab.com/levlaz/databasely@deb799cb44a7338ce027b35f961f044f8bd73832
Entrypoint
Return Type
Databasely
Example
dagger -m gitlab.com/levlaz/databasely@deb799cb44a7338ce027b35f961f044f8bd73832 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 ! | - | 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@deb799cb44a7338ce027b35f961f044f8bd73832 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)
}