@@ -1179,10 +1179,29 @@ class PythonRelAPIDetails:
11791179β created_timestamp β TIMESTAMP WITH TIME ZONE β YES β NULL β NULL β NULL β
11801180βββββββββββββββββββββ΄βββββββββββββββββββββββββββ΄ββββββββββ΄ββββββββββ΄ββββββββββ΄ββββββββββ
11811181""" ,
1182+ parameters = [
1183+ PythonRelAPIParamDetails (
1184+ parameter_name = "virtual_table_name" ,
1185+ parameter_type = ["str" ],
1186+ parameter_description = "The name to assign to the current relation when referenced in the SQL query." ,
1187+ ),
1188+ PythonRelAPIParamDetails (
1189+ parameter_name = "sql_query" ,
1190+ parameter_type = ["str" ],
1191+ parameter_description = "The SQL query string that uses the virtual table name to query the relation." ,
1192+ ),
1193+ ],
11821194 ),
11831195 'set_alias' : PythonRelAPIDetails (
11841196 example = "rel.set_alias('abc').select('abc.id')" ,
11851197 result = 'In the SQL query, the alias will be `abc`' ,
1198+ parameters = [
1199+ PythonRelAPIParamDetails (
1200+ parameter_name = "alias" ,
1201+ parameter_type = ["str" ],
1202+ parameter_description = "The alias name to assign to the relation." ,
1203+ )
1204+ ],
11861205 ),
11871206 'alias' : PythonRelAPIDetails (
11881207 example = 'rel.alias' , result = 'unnamed_relation_43c808c247431be5'
@@ -1206,6 +1225,33 @@ class PythonRelAPIDetails:
12061225β 08fdcbf8-4e53-4290-9e81-423af263b518 β value is uneven β 9 β 2025-04-09 15:49:20.642+02 β
12071226ββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββ΄ββββββββ΄βββββββββββββββββββββββββββββ
12081227""" ,
1228+ parameters = [
1229+ PythonRelAPIParamDetails (
1230+ parameter_name = "max_width" ,
1231+ parameter_type = ["int" ],
1232+ parameter_description = "Maximum display width for the entire output in characters." ,
1233+ ),
1234+ PythonRelAPIParamDetails (
1235+ parameter_name = "max_rows" ,
1236+ parameter_type = ["int" ],
1237+ parameter_description = "Maximum number of rows to display." ,
1238+ ),
1239+ PythonRelAPIParamDetails (
1240+ parameter_name = "max_col_width" ,
1241+ parameter_type = ["int" ],
1242+ parameter_description = "Maximum number of characters to display per column." ,
1243+ ),
1244+ PythonRelAPIParamDetails (
1245+ parameter_name = "null_value" ,
1246+ parameter_type = ["str" ],
1247+ parameter_description = "String to display in place of NULL values." ,
1248+ ),
1249+ PythonRelAPIParamDetails (
1250+ parameter_name = "render_mode" ,
1251+ parameter_type = ["object" ],
1252+ parameter_description = "Render mode for displaying the output." ,
1253+ ),
1254+ ],
12091255 ),
12101256 'sql_query' : PythonRelAPIDetails (
12111257 example = 'rel.sql_query()' ,
0 commit comments