当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

sqlite-web

授权协议 MIT License
开发语言 Python
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 邹缪文
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

sqlite-web is a web-based SQLite database browser written in Python.

Project dependencies:

Installation

$ pip install sqlite-web

Usage

$ sqlite_web /path/to/database.db

Features

  • Works with your existing SQLite databases, or can be used to create new databases.
  • Add or drop:
    • Tables
    • Columns (yes, you can drop and rename columns!)
    • Indexes
  • Export data as JSON or CSV.
  • Import JSON or CSV files.
  • Browse table data.

Screenshots

The index page shows some basic information about the database, including the number of tables and indexes, as well as its size on disk:

The structure tab displays information about the structure of the table, including columns, indexes, and foreign keys (if any exist). From this page you can also create, rename or drop columns and indexes.

The content tab displays all the table data. Links in the table header can be used to sort the data:

The query tab allows you to execute arbitrary SQL queries on a table. The query results are displayed in a table and can be exported to either JSON or CSV:

The import tab supports importing CSV and JSON files into a table. There is an option to automatically create columns for any unrecognized keys in the import file:

Command-line options

The syntax for invoking sqlite-web is:

$ sqlite_web [options] /path/to/database-file.db

The following options are available:

  • -p, --port: default is 8080
  • -H, --host: default is 127.0.0.1
  • -d, --debug: default is false
  • -x, --no-browser: do not open a web-browser when sqlite-web starts.
  • -P, --password: prompt for password to access sqlite-web.Alternatively, the password can be stored in the "SQLITE_WEB_PASSWORD"environment variable, in which case the application will not prompt for apassword, but will use the value from the environment.
  • -r, --read-only: open database in read-only mode.
  • -u, --url-prefix: URL prefix for application, e.g. "/sqlite-web".
  • -c, --cert and -k, --key - specify SSL cert and private key.
  • -a, --ad-hoc - run using an ad-hoc SSL context.

Using docker

A Dockerfile is provided with sqlite-web. To use:

$ cd docker/  # Change dirs to the dir containing Dockerfile
$ docker build -t coleifer/sqlite-web .
$ docker run -it --rm \
    -p 8080:8080 \
    -v /path/to/your-data:/data \
    -e SQLITE_DATABASE=db_filename.db \
    coleifer/sqlite-web
  • 编译步骤: 1   ./configure  --disable-tcl --prefix=/home/adminn/sqlite-hisi --host=arm-hisiv100nptl-linux 2   make 3   make install 问题一: sudo make install时 arm-hisiv100nptl-linux-ranlib:command not found a

 相关资料
  • SQLite是一种基于模式的轻量级关系数据库引擎。 它是用于Web浏览器中本地存储的嵌入式数据库软件的流行选择。 与许多其他数据库管理系统不同,SQLite不是客户端 - 服务器数据库引擎。 有关更多信息,请阅读我们的 SQLite教程 在本章中,您将学习如何使用CoffeeScript与SQLite数据库进行通信。 安装 (Installation) 可以使用node-sqlite3模块将SQL

  • SQLite 是一个实现了自给自足的、无服务器的、零配置的、事务性的 SQL 数据库引擎。 简介 优点 SQLite 是自给自足的,这意味着不需要任何外部的依赖。 SQLite 是无服务器的、零配置的,这意味着不需要安装或管理。 SQLite 事务是完全兼容 ACID 的,允许从多个进程或线程安全访问。 SQLite 是非常小的,是轻量级的,完全配置时小于 400KiB,省略可选功能配置时小于 2

  • 问题 你需要 Node.js 内部与 SQLite 数据库连接的接口。 解决方案 使用 SQLite 模块。 sqlite = require 'sqlite' db = new sqlite.Database # The module uses asynchronous methods, # so we chain the calls the db.execute exampleCreate

  • Python有一个内置的SQlite支持。 SQlite3模块附带Python发行版。 有关在Python中使用SQLite数据库的详细教程,请参阅此链接 。 在本节中,我们将了解Flask应用程序如何与SQLite交互。 创建一个SQLite数据库'database.db'并在其中创建学生表。 import sqlite3 conn = sqlite3.connect('database.db'

  • Support for the SQLite database. The following table summarizes current support levels for database release versions. 支持的SQLite版本 The following dialect/DBAPI options are available. Please refer to ind

  • 如果需要一个类似于mysql之类的小型关系数据库服务器,这个就是了。 来看代码: #include <mongols/sqlite_server.hpp> int main(int, char**) { int port = 9090; const char* host = "127.0.0.1"; mongols::sqlite_server server(ho