Skip to content

Commit

Permalink
docs: Fix "An SQL" typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 12, 2024
1 parent 1ad27c2 commit d6a0233
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion csvkit/utilities/csvsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def main(self):
if self.args.unique_constraint:
self.unique_constraint = self.args.unique_constraint.split(',')

# Create an SQLite database in memory if no connection string is specified
# Create a SQLite database in memory if no connection string is specified
if self.args.queries and not self.args.connection_string:
self.args.connection_string = "sqlite:///:memory:"
self.args.insert = True
Expand Down
4 changes: 2 additions & 2 deletions csvkit/utilities/sql2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@


class SQL2CSV(CSVKitUtility):
description = 'Execute an SQL query on a database and output the result to a CSV file.'
description = 'Execute a SQL query on a database and output the result to a CSV file.'
# Overrides all flags except --linenumbers, --verbose, --version.
override_flags = 'f,b,d,e,H,K,L,p,q,S,t,u,z,blanks,date-format,datetime-format,zero'.split(',')

def add_arguments(self):
self.argparser.add_argument(
'--db', dest='connection_string', default='sqlite://',
help='An SQLAlchemy connection string to connect to a database.')
help='A SQLAlchemy connection string to connect to a database.')
self.argparser.add_argument(
'--engine-option', dest='engine_option', nargs=2, action='append', default=[],
help="A keyword argument to SQLAlchemy's create_engine(), as a space-separated pair. "
Expand Down
4 changes: 2 additions & 2 deletions docs/scripts/sql2csv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Executes arbitrary commands against a SQL database and outputs the results as a
[-e ENCODING] [-H]
[FILE]
Execute an SQL query on a database and output the result to a CSV file.
Execute a SQL query on a database and output the result to a CSV file.
positional arguments:
FILE The file to use as the SQL query. If FILE and --query
Expand All @@ -22,7 +22,7 @@ Executes arbitrary commands against a SQL database and outputs the results as a
optional arguments:
-h, --help show this help message and exit
--db CONNECTION_STRING
An SQLAlchemy connection string to connect to a
A SQLAlchemy connection string to connect to a
database.
--engine-option ENGINE_OPTION ENGINE_OPTION
A keyword argument to SQLAlchemy's create_engine(), as
Expand Down
4 changes: 2 additions & 2 deletions man/sql2csv.1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ usage: sql2csv [\-h] [\-v] [\-l] [\-V] [\-\-db CONNECTION_STRING] [\-\-query QUE
[\-e ENCODING] [\-H]
[FILE]

Execute an SQL query on a database and output the result to a CSV file.
Execute a SQL query on a database and output the result to a CSV file.

positional arguments:
FILE The file to use as the SQL query. If FILE and \-\-query
Expand All @@ -51,7 +51,7 @@ positional arguments:
optional arguments:
\-h, \-\-help show this help message and exit
\-\-db CONNECTION_STRING
An SQLAlchemy connection string to connect to a
A SQLAlchemy connection string to connect to a
database.
\-\-engine\-option ENGINE_OPTION ENGINE_OPTION
A keyword argument to SQLAlchemy\(aqs create_engine(), as
Expand Down

0 comments on commit d6a0233

Please sign in to comment.