zcat sqlite-3.6.21.tar.gz |tar xfv -
mkdir sqlite_build
cd sqlite_build
../sqlite-3.6.21/configure
make
make install
- .database
- .tables
- .quit
- .help
example[edit]
sqlite3 /var/lib/jupyterhub/jupyterhub.sqlite
sqlite> .tables
alembic_version oauth_clients service_role_map spawners
api_tokens oauth_codes services user_group_map
group_role_map roles share_codes user_role_map
groups servers shares users
sqlite> .schema users
CREATE TABLE users (
id INTEGER NOT NULL,
name VARCHAR(255),
admin BOOLEAN,
created DATETIME,
last_activity DATETIME,
cookie_id VARCHAR(255) NOT NULL,
state TEXT,
encrypted_auth_state BLOB,
CONSTRAINT pk_users PRIMARY KEY (id),
CONSTRAINT uq_users_name UNIQUE (name),
CONSTRAINT uq_users_cookie_id UNIQUE (cookie_id)
);
sqlite> .mode line
sqlite> select * from users;
.....
Troubleshooting†[edit]