Skip to content

Commit

Permalink
Save
Browse files Browse the repository at this point in the history
  • Loading branch information
gurminder71 committed Sep 22, 2024
1 parent 8de1109 commit e34dc0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
*/
@AutoValue
public abstract class DatabaseDefinition {
/**
* Create a database definition from the list of parsed DDL statements.
*
* @param statements List of parsed DDL statements
* @return DatabaseDefinition instance
*/
public static DatabaseDefinition create(List<ASTddl_statement> statements) {
// Use LinkedHashMap to preserve creation order in original DDL.
LinkedHashMap<String, ASTcreate_table_statement> tablesInCreationOrder = new LinkedHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ private static String getDatabaseNameFromAlterDatabase(List<ASTddl_statement> st
}

/**
* Parses the Cloud Spanner Schema (DDL) string to a list of AST DDL statements
* Parses the Cloud Spanner Schema (DDL) string to a list of AST DDL statements.
*
* @param original DDL to parse
* @return List of parsed DDL statements
Expand Down

0 comments on commit e34dc0a

Please sign in to comment.