Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 release with some minor breaking changes #194

Closed
simonw opened this issue Nov 3, 2020 · 3 comments
Closed

3.0 release with some minor breaking changes #194

simonw opened this issue Nov 3, 2020 · 3 comments
Milestone

Comments

@simonw
Copy link
Owner

simonw commented Nov 3, 2020

While working on search (#192) I've spotted a few small changes I would like to make that would break backwards compatibility in minor ways, hence requiring a 3.x release.

db[table].search() - I would like this to default to sorting by rank

Also I'd like to free up the -c and -f options for other purposes from the standard output formats here:

click.option("-c", "--csv", is_flag=True, help="Output CSV"),
click.option("--no-headers", is_flag=True, help="Omit CSV headers"),
click.option("-t", "--table", is_flag=True, help="Output as a table"),
click.option(
"-f",
"--fmt",
help="Table format - one of {}".format(
", ".join(tabulate.tabulate_formats)
),
default="simple",
),

I'd like -f to be used to indicate a full-text search column during an insert and -c to indicate a column (so you can specify which columns you want to output).

@simonw simonw changed the title Consider a 3.0 release with some minor breaking changes 3.0 release with some minor breaking changes Nov 6, 2020
@simonw
Copy link
Owner Author

simonw commented Nov 6, 2020

The breaking changes will be:

  • table.search() now returns a generator that produces dictionaries, similar to table.rows_where()
  • The -c shortcut no longer works, use --csv instead.
  • The -f shortcut no longer works, use --fmt instead.

@simonw simonw added this to the 3.0 milestone Nov 6, 2020
@simonw
Copy link
Owner Author

simonw commented Nov 7, 2020

I'm going to release this as an alpha first and sit on it for a few days, since I don't want to ship any mistakes that would result in having to bump straight to 4.0!

simonw added a commit that referenced this issue Nov 7, 2020
@simonw
Copy link
Owner Author

simonw commented Nov 7, 2020

Here's the alpha release: https://github.com/simonw/sqlite-utils/releases/tag/3.0a0

simonw added a commit that referenced this issue Nov 7, 2020
That way you can see the changelog for alpha releases. Refs #194.
simonw added a commit that referenced this issue Nov 8, 2020
@simonw simonw closed this as completed in 6863773 Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant