@@ -71,7 +71,7 @@ fn ident_to_string(ident: &Ident) -> String {
7171 normalize_ident ( ident. to_owned ( ) )
7272}
7373
74- fn object_name_to_string ( object_name : & ObjectName ) -> String {
74+ pub fn object_name_to_string ( object_name : & ObjectName ) -> String {
7575 object_name
7676 . 0
7777 . iter ( )
@@ -94,7 +94,9 @@ fn get_schema_name(schema_name: &SchemaName) -> String {
9494
9595/// Construct `TableConstraint`(s) for the given columns by iterating over
9696/// `columns` and extracting individual inline constraint definitions.
97- fn calc_inline_constraints_from_columns ( columns : & [ ColumnDef ] ) -> Vec < TableConstraint > {
97+ pub fn calc_inline_constraints_from_columns (
98+ columns : & [ ColumnDef ] ,
99+ ) -> Vec < TableConstraint > {
98100 let mut constraints = vec ! [ ] ;
99101 for column in columns {
100102 for ast:: ColumnOptionDef { name, option } in & column. options {
@@ -1484,7 +1486,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
14841486 }
14851487
14861488 /// Convert each [TableConstraint] to corresponding [Constraint]
1487- fn new_constraint_from_table_constraints (
1489+ pub fn new_constraint_from_table_constraints (
14881490 & self ,
14891491 constraints : & [ TableConstraint ] ,
14901492 df_schema : & DFSchemaRef ,
@@ -2160,7 +2162,7 @@ ON p.function_name = r.routine_name
21602162 }
21612163
21622164 /// Return true if there is a table provider available for "schema.table"
2163- fn has_table ( & self , schema : & str , table : & str ) -> bool {
2165+ pub fn has_table ( & self , schema : & str , table : & str ) -> bool {
21642166 let tables_reference = TableReference :: Partial {
21652167 schema : schema. into ( ) ,
21662168 table : table. into ( ) ,
0 commit comments