Skip to content
56K

56K

Slow IT just 4 fun

Menu
Menu

📝 Berkeley DB desde python en Debian

Posted on 18/09/202318/09/2023 by fanta

Instalar dependencias en Debian 12

# apt install db5.3-doc db5.3-sql-util db5.3-util python3-bsddb3

Bajamos un ejemplo de base de datos:

curl -O -L https://github.com/linuxacademy/content-intro-to-databases-on-linux/raw/master/demo.db

Trabajamos con python:

import bsddb3
db = bsddb3.btopen('demo.db', 'r')
db.close()

Alguos comandos:

$ db5.3_sql
.help
.exit
.databases

Y esas son mis notas ahora mismo que quería dejar por aquí.

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
🍅 STREAMING
🍊 LINUX
🥝 GAMES
🥥 THREADS
🧅 SECURITY
🥑 RETRO
🍆 HARDWARE
🍇 MISC
📝 NOTES
©2023 56K | Built using WordPress and Responsive Blogily theme by Superb