LogtoResource.withDatabase
Method
interface LogtoResource { // ... omitted for brevity withDatabase( postgres: PostgresServerResource, databaseName?: string): LogtoResource;}Signature
method
withDatabase builderConfigures the Logto resource to connect to the specified PostgreSQL database.
withDatabase( postgres: PostgresServerResource, databaseName?: string): LogtoResourceParameters
postgresPostgresServerResource The resource builder for the PostgreSQL server to connect to.databaseName stringoptional= logto_dbThe PostgreSQL database name Logto should use.Returns
LogtoResource Defined on
This method is defined on the following type: