Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
sqlite-utils-move-tables
Advanced tools
Command for sqlite-utils to move tables from one database to another
Install this plugin in the same environment as sqlite-utils
.
sqlite-utils install sqlite-utils-move-tables
This plugin adds a single command, sqlite-utils move-tables
. The command can be used to move one or more tables from one database file to another.
sqlite-utils move-tables origin.db destination.db tablename
You can pass multiple tables to the command to move multiple tables in one go:
sqlite-utils move-tables origin.db destination.db table1 table2
A moved table will have its columns and primary keys recreated and all data copied across to the new database. The original table will then be dropped.
Foreign key constraints, indexes and triggers will not be copied across.
To keep the original table, use --keep
:
sqlite-utils move-tables origin.db destination.db tablename --keep
The command checks for the existence of all of the tables in the first database, and ensures they do not yet exist in the second database. It will show an error if either of these conditions are not meant.
To ignore that error and fail silently if a table is missing or already created, use --ignore
.
To over-write and replace a table in the destination database with a name that matches one of the tables to be moved, use --replace
.
It is advisable to create a copy of your origin database before running this command!
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd sqlite-utils-move-tables
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
FAQs
Command for sqlite-utils to move tables from one database to another
We found that sqlite-utils-move-tables demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.