question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No create index option - please create new release

See original GitHub issue

Hi Simon,

Love this wonderful tool! Thanks a million for using it and prompting sqlite!

The README shows an option for creating an index: https://github.com/simonw/csvs-to-sqlite/blob/master/README.md

-i, --index TEXT Add index on this column (or a compound index with -i col1,col2)

I don’t seem to have that version in my csvs-to-sqlite:

% csvs-to-sqlite --help
Usage: csvs-to-sqlite [OPTIONS] PATHS... DBNAME

  PATHS: paths to individual .csv files or to directories containing .csvs

  DBNAME: name of the SQLite database file to create

Options:
  -s, --separator TEXT       Field separator in input .csv
  --replace-tables           Replace tables if they already exist
  -c, --extract-column TEXT  One or more columns to 'extract' into a separate
                             lookup table. If you pass a simple column name
                             that column will be replaced with integer foreign
                             key references to a new table of that name. You
                             can customize the name of the table like so:

                                 --extract-column state:States:state_name

                             This will pull unique values from the 'state'
                             column and use them to populate a new 'States'
                             table, with an id column primary key and a
                             state_name column containing the strings from the
                             original column.
  -f, --fts TEXT             One or more columns to use to populate a full-
                             text index
  --version                  Show the version and exit.
  --help                     Show this message and exit.
% csvs-to-sqlite --version
csvs-to-sqlite, version 0.7

Is this an option in an unreleased build of csvs-to-sqlite? If so, when do you think it would be ready?

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

0reactions
jungle-boogiecommented, Feb 19, 2018

If you make a ‘beta’ release, I’d try it out! I’d like to play with the indexing option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create index API | Elasticsearch Guide [8.5] | Elastic
You can use the create index API to add a new index to an Elasticsearch cluster. When creating an index, you can specify...
Read more >
Add an index to a list or library column - Microsoft Support
On the Indexed Columns page, select Create a new index. Indexed columns page with Create a new index highlighted. Do the following: To...
Read more >
Newly defined index does not appear in Atlas shared cluster ...
I create an index and get a success message (“Index is being created” from the CLI and “{ }” from the API), but...
Read more >
Mongoose does not automatically create indexes after ...
"mongoose": "^6.0.2" is not creating indexes automaticly If the current behavior is a bug, please provide the steps to reproduce.
Read more >
13.1.15 CREATE INDEX Statement - MySQL :: Developer Zone
Normally, you create all indexes on a table at the time the table itself is created with CREATE TABLE . See Section 13.1.20,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found