mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Releasing 0.9
This commit is contained in:
parent
50589f8523
commit
79a0f9cc96
2 changed files with 17 additions and 1 deletions
|
|
@ -2,6 +2,22 @@
|
|||
Changelog
|
||||
===========
|
||||
|
||||
.. _v0_9:
|
||||
|
||||
0.9 (2019-01-27)
|
||||
----------------
|
||||
|
||||
Improved support for newline-delimited JSON.
|
||||
|
||||
``sqlite-utils insert`` has two new command-line options:
|
||||
|
||||
* ``--nl`` means "expect newline-delimited JSON". This is an extremely efficient way of loading in large amounts of data, especially if you pipe it into standard input.
|
||||
* ``--batch-size=1000`` lets you increase the batch size (default is 100). A commit will be issued every X records. This also control how many initial records are considered when detecting the desired SQL table schema for the data.
|
||||
|
||||
In the Python API, the ``table.insert_all(...)`` method can now accept a generator as well as a list of objects. This will be efficiently used to populate the table no matter how many records are produced by the generator.
|
||||
|
||||
The ``Database()`` constructor can now accept a ``pathlib.Path`` object in addition to a string or an existing SQLite connection object.
|
||||
|
||||
.. _v0_8:
|
||||
|
||||
0.8 (2019-01-25)
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||
import io
|
||||
import os
|
||||
|
||||
VERSION = "0.8.1"
|
||||
VERSION = "0.9"
|
||||
|
||||
|
||||
def get_long_description():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue