Skip to content

Commit bf42ccf

Browse files
committed
Update docs for csvsql. Rev version number (overdue).
1 parent cdc484a commit bf42ccf

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

README

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Important links:
77
* Repository: https://github.com/onyxfish/csvkit
88
* Issues: https://github.com/onyxfish/csvkit/issues
99
* Documentation: http://csvkit.rtfd.org/
10-
* Schemas: https://github.com/onyxfish/ffs
10+
* Schemas: https://github.com/onyxfish/ffs
11+
* Buildbot: http://travis-ci.org/#!/onyxfish/csvkit

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
# built documents.
5555
#
5656
# The short X.Y version.
57-
version = '0.4.3'
57+
version = '0.4.4'
5858
# The full version, including alpha/beta/rc tags.
59-
release = '0.4.3 (beta)'
59+
release = '0.4.4 (beta)'
6060

6161
# The language for content autogenerated by Sphinx. Refer to documentation
6262
# for a list of supported languages.

docs/index.rst

+5
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ License
130130

131131
.. include:: ../COPYING
132132

133+
Changelog
134+
=========
135+
136+
.. include:: ../CHANGELOG
137+
133138
Indices and tables
134139
==================
135140

docs/scripts/csvsql.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Generate SQL statements for a CSV file or create execute those statements direct
2020
Generate a SQL CREATE TABLE statement for a CSV file.
2121

2222
positional arguments:
23-
FILE The CSV file to operate on. If omitted, will accept
23+
FILE The CSV file(s) to operate on. If omitted, will accept
2424
input on STDIN.
2525

2626
optional arguments:
@@ -41,6 +41,9 @@ Generate SQL statements for a CSV file or create execute those statements direct
4141
omitted, the filename (minus extension) will be used.
4242
--no-constraints Generate a schema without length limits or null
4343
checks. Useful when sampling big tables.
44+
--no-create Skip creating a table. Only valid when --insert is
45+
specified.
46+
--blanks Do not coerce empty strings to NULL values.
4447

4548
Also see: :doc:`common_arguments`.
4649

@@ -62,3 +65,8 @@ For large tables it may not be practical to process the entire table. One soluti
6265
6366
$ head -n 20 examples/realdata/FY09_EDU_Recipients_by_State.csv | csvsql --no-constraints --table fy09
6467

68+
Create tables for an entire folder of CSVs and import data from those files directly into Postgres::
69+
70+
$ createdb test
71+
$ csvsql --db postgresql:///test --insert examples/*.csv
72+

docs/scripts/in2csv.rst

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ Convert the 2000 census geo headers file from fixed-width to CSV and from latin-
5050

5151
$ in2csv -e iso-8859-1 -f fixed -s examples/realdata/census_2000/census2000_geo_schema.csv examples/realdata/census_2000/usgeo_excerpt.upl > usgeo.csv
5252

53+
.. note::
54+
55+
A library of fixed-width schemas is maintained in the ``ffs`` project:
56+
57+
https://github.com/onyxfish/ffs
58+
5359
Convert an Excel .xls file::
5460

5561
$ in2csv examples/test.xls

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='csvkit',
7-
version='0.4.3',
7+
version='0.4.4',
88
description='A library of utilities for working with CSV, the king of tabular file formats.',
99
long_description=open('README').read(),
1010
author='Christopher Groskopf',

0 commit comments

Comments
 (0)