update
This commit is contained in:
+7
-1
@@ -1057,7 +1057,13 @@ julia> ddl = GeneralUtils.get_db_table_schema_simple(conn, "wine")
|
|||||||
);"
|
);"
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
function get_db_table_schema_simple(conn, table_name::String, schema_name::String="public")
|
function get_db_table_schema_simple(pg_conn_str::String, table_name::String;
|
||||||
|
schema_name::String="public")
|
||||||
|
conn = LibPQ.Connection(pg_conn_str)
|
||||||
|
return get_db_table_schema_simple(conn, table_name; schema_name=schema_name)
|
||||||
|
end
|
||||||
|
|
||||||
|
function get_db_table_schema_simple(conn, table_name::String; schema_name::String="public")
|
||||||
# 1. SQL query tailored to omit nullability checks
|
# 1. SQL query tailored to omit nullability checks
|
||||||
sql = """
|
sql = """
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user