home / kengdb / noteTb

noteTb: 271

This data as json

id user_id content tags created_at updated_at enable pinned folder_id comment position visibility
271 1 1 home-project-testdb - 版本:2.0.0 - 2026-05-13:goose - 重写为记忆系统格式 - 2026-05-13:goose - 初始记录 # SQLite testdb 数据库 在 /home/project/test/ 下创建 testdb.db,用来练习数据库操作。 **数据库信息** - 路径:`/home/project/test/testdb.db` - 类型:SQLite(Python 自带,零配置) - 表结构:students(id, name, age, gender, class_name, score) - 数据:8 名学生记录 - 一键创建:`python3 /home/project/test/one_click.py` **查看数据的 3 种方法** 1. 命令行:`sqlite3 /home/project/test/testdb.db` → `.headers on` / `.mode column` / `SELECT * FROM students;` 2. 浏览器:`python3 /home/project/autoNote/dbbrowser.py` → `http://8.219.6.216:8899`(需放行安全组) 3. Python 直读:一行脚本 **未完成的集成** - 写了 dbrowser_integ.py 模块(提供 /testdb 和 /testdb/data 路由) - 但因 shell 环境故障,未能成功修改 transNote.py 加入路由 - 下次可通过 edit 在 transNote.py 的 do_GET 中加入 /testdb 路由 ["goose", "testdb", "sqlite"] 2026-05-13 02:11:14 2026-05-13 02:36:31 F F     10 public

Links from other tables

  • 0 rows from note_id in noteShareTb
  • 0 rows from note_id in shareLinkTb
Powered by Datasette · Queries took 4.344ms