Generates the SQL schema for the given client. :param client: The DB client to generate Schema SQL for :param safe: When set to true, creates the table only when it does not already exist.
(client: BaseDBAsyncClient, safe: bool)
| 22 | |
| 23 | |
| 24 | def get_schema_sql(client: BaseDBAsyncClient, safe: bool) -> str: |
| 25 | """ |
| 26 | Generates the SQL schema for the given client. |
| 27 | |
| 28 | :param client: The DB client to generate Schema SQL for |
| 29 | :param safe: When set to true, creates the table only when it does not already exist. |
| 30 | """ |
| 31 | generator = client.schema_generator(client) |
| 32 | return generator.get_create_schema_sql(safe) |
| 33 | |
| 34 | |
| 35 | async def generate_schema_for_client(client: BaseDBAsyncClient, safe: bool) -> None: |
searching dependent graphs…