WithDatabase
Method
func (LogtoResource) WithDatabase( postgres PostgresServerResource, options ...*WithDatabaseOptions,) LogtoResourceSignature
method
WithDatabase builderConfigures the Logto resource to connect to the specified PostgreSQL database.
WithDatabase( postgres PostgresServerResource, options ...*WithDatabaseOptions,) LogtoResourceParameters
postgresPostgresServerResource The resource builder for the PostgreSQL server to connect to.options...*WithDatabaseOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDatabaseOptions argument.
DatabaseName *stringThe PostgreSQL database name Logto should use.Returns
LogtoResource The resource builder for the configured Logto resource.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: