Skip to content

Commit

Permalink
adding a doc commit (this is to test gh action)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrozich committed May 5, 2024
1 parent 4014195 commit a131087
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions snowflake_dbml/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ def fetch_data(connection_params, included_schemas=None, excluded_schemas=None):
return data

def generate_dbml(data, connection_params=None, primary_key_hints=None, visualization_params=None):
"""
Generates a DBML representation of a Snowflake database based on the provided data.
Args:
data (dict): The data containing information about the tables, columns, primary keys, and foreign keys.
connection_params (dict, optional): The connection parameters for the Snowflake database. Defaults to None.
primary_key_hints (dict, optional): The primary key hints for inferring relationships. Defaults to None.
visualization_params (dict, optional): The visualization parameters for customizing the DBML output. Defaults to None.
Returns:
str: The DBML representation of the Snowflake database.
Raises:
None
"""
db = Database()

# Load visualization params, primary key hints, and connection params
Expand Down

0 comments on commit a131087

Please sign in to comment.