Skip to content

【Python】基於 SQLite 的 key-value 資料庫套件

License

Notifications You must be signed in to change notification settings

dada878/quick-sqlite-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick-sqlite

Overview

A lightweight key-value database basic sqlite.

Install

pip install quick-sqlite-database

Example

from quick_sqlite import Database

db = Database("example.db")

db.set("name", "Dada878")

db.get("name") #Dada878

Documentation

Database(path, tableName?)
Connect to database

db.set(key,value)
Set value by key and retune the value

db.get(key)
Return value by string key

db.append(key,more)
Add more to key's value

db.get_all()
Return all key and value as array

db.get_all_key()
Return all key as array

db.delete(key)
Delete item by key

db.exists(key)
Check if key exists, return boolean

db.change_name(name)
Change the table name

db.remove(key,more)
Remove some value from the key and retune the value

db.append(key,more)
Add some value from the key and retune the value

About

【Python】基於 SQLite 的 key-value 資料庫套件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages