withDatabase
Method
interface LogtoResource { // ... omitted for brevity withDatabase( postgres: PostgresServerResource, databaseName?: string): LogtoResource;}Signature
method
withDatabasebuilderConfigures the Logto resource to connect to the specified PostgreSQL database.
withDatabase( postgres: PostgresServerResource, databaseName?: string): LogtoResourceParameters
postgresPostgresServerResourcedatabaseNamestringoptional= logto_dbReturns
LogtoResourceApplies to
This method applies to the following types: