dataflow.db.schema¶
Database schema management for the Haive Registry System.
This module provides functions for creating and managing the database schema for the registry system. It handles schema creation, migrations, and upgrades as needed.
Functions¶
|
Check if the registry schema exists. |
|
Check if a specific table exists. |
Generate the SQL schema definition for the registry system. |
|
|
Execute the schema SQL to set up the database. |
|
Initialize the database for the registry system. |
|
Set up the execute_sql function in the database. This function is needed. |
|
Set up the database schema for the registry system. |
Module Contents¶
- dataflow.db.schema.check_schema_exists(client=None)¶
Check if the registry schema exists.
- Parameters:
client – Optional Supabase client
- Returns:
True if the schema exists, False otherwise
- Return type:
- dataflow.db.schema.check_table_exists(table_name, schema='registry', client=None)¶
Check if a specific table exists.
- dataflow.db.schema.create_schema_sql()¶
Generate the SQL schema definition for the registry system.
- Returns:
SQL schema definition as a string
- Return type:
- dataflow.db.schema.execute_schema_sql(client=None, schema_sql=None)¶
Execute the schema SQL to set up the database.
- dataflow.db.schema.initialize_database(client=None)¶
Initialize the database for the registry system.
- Parameters:
client – Optional Supabase client
- Returns:
True if successful, False otherwise
- Return type:
- dataflow.db.schema.setup_execute_sql_function(client=None)¶
Set up the execute_sql function in the database. This function is needed. to execute arbitrary SQL statements.
- Parameters:
client – Optional Supabase client
- Returns:
True if successful, False otherwise
- Return type: