dbcli / pgspecial

Python implementation of postgres meta commands (backslash commands)
BSD 3-Clause "New" or "Revised" License
74 stars 54 forks source link

Throw an exception if we cannot parse the filename in \copy command. #119

Closed amjith closed 3 years ago

amjith commented 3 years ago

Description

Fixes https://github.com/dbcli/pgcli/issues/1277

Parsing for filename in \copy command will throw an exception if the FROM/TO keyword is missing.

codecov-commenter commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@20dc99f). Click here to learn what that means. The diff coverage is 64.96%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #119   +/-   ##
=========================================
  Coverage          ?   29.28%           
=========================================
  Files             ?        6           
  Lines             ?     2500           
  Branches          ?        0           
=========================================
  Hits              ?      732           
  Misses            ?     1768           
  Partials          ?        0           
Impacted Files Coverage Δ
pgspecial/help/commands.py 0.20% <ø> (ø)
pgspecial/main.py 38.18% <52.17%> (ø)
pgspecial/iocommands.py 43.07% <59.64%> (ø)
pgspecial/dbcommands.py 33.60% <66.73%> (ø)
pgspecial/namedqueries.py 92.00% <75.00%> (ø)
pgspecial/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 20dc99f...6dc85eb. Read the comment docs.