You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use ``pg8000.connect()`` to use credentials directly or ``wr.postgresql.connect()`` to fetch it from the Glue Catalog.
535
+
table: str
536
536
Table name
537
-
schema: str
537
+
schema: str
538
538
Schema name
539
-
mode: str
539
+
mode: str
540
540
Append, overwrite or upsert.
541
-
append: Inserts new records into table.
542
-
overwrite: Drops table and recreates.
543
-
upsert: Perform an upsert which checks for conflicts on columns given by `upsert_conflict_columns` and
544
-
sets the new values on conflicts. Note that `upsert_conflict_columns` is required for this mode.
545
-
overwrite_method : str
541
+
542
+
- append: Inserts new records into table.
543
+
- overwrite: Drops table and recreates.
544
+
- upsert: Perform an upsert which checks for conflicts on columns given by ``upsert_conflict_columns`` and
545
+
sets the new values on conflicts. Note that ``upsert_conflict_columns`` is required for this mode.
546
+
547
+
overwrite_method: str
546
548
Drop, cascade, truncate, or truncate cascade. Only applicable in overwrite mode.
547
549
548
-
"drop" - ``DROP ... RESTRICT`` - drops the table. Fails if there are any views that depend on it.
549
-
"cascade" - ``DROP ... CASCADE`` - drops the table, and all views that depend on it.
550
-
"truncate" - ``TRUNCATE ... RESTRICT`` - truncates the table. Fails if any of the tables have foreign-key references from tables that are not listed in the command.
551
-
"truncate cascade" - ``TRUNCATE ... CASCADE`` - truncates the table, and all tables that have foreign-key references to any of the named tables.
552
-
index : bool
550
+
- "drop" - ``DROP ... RESTRICT`` - drops the table. Fails if there are any views that depend on it.
551
+
- "cascade" - ``DROP ... CASCADE`` - drops the table, and all views that depend on it.
552
+
- "truncate" - ``TRUNCATE ... RESTRICT`` - truncates the table.
553
+
Fails if any of the tables have foreign-key references from tables that are not listed in the command.
554
+
- "truncate cascade" - ``TRUNCATE ... CASCADE`` - truncates the table, and all tables that have
555
+
foreign-key references to any of the named tables.
556
+
557
+
index: bool
553
558
True to store the DataFrame index as a column in the table,
554
559
otherwise False to ignore it.
555
560
dtype: Dict[str, str], optional
556
561
Dictionary of columns names and PostgreSQL types to be casted.
557
562
Useful when you have columns with undetermined or mixed data types.
558
-
(e.g. {'col name': 'TEXT', 'col2 name': 'FLOAT'})
559
-
varchar_lengths: Dict[str, int], optional
560
-
Dict of VARCHAR length by columns. (e.g. {"col1": 10, "col5": 200}).
0 commit comments