Skip to content

A custom python database engine intended for client-side use.

License

Notifications You must be signed in to change notification settings

ProFoxyfy/DarkDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you've installed through the DarkDB Installer, the import line is the same.

Recent Changes in 1.1

  • Added 3 new functions
  • Fixed bug where reading as a table could cause a row with None to appear
  • Added cachebust to updater (fixes certain issues)

=======

Why?

Because why not! I originally created this project for future things.

How?

This database engine was originally made in Python, these are the languages for which bindings exist:

  • C#

How do i use it?

Its simple. You also need to put the DarkDB source files in your source directory,

import darkdb
darkdb.makeDatabase("mydatabase.db")
# add some example
darkdb.addRow("MyRowName","MyRowValue","mydatabase.db")
# remove that example
darkdb.removeRow("MyRowName","mydatabase.db")
# read all lines as string
print(darkdb.dbAsString("mydatabase.db"))

If you want to delete a database simply just rm -rf the whole thing! Its not hard.

Pros and Cons

Pros

  • Can support server side, if client-to-server model is used
  • Easy to use
  • Automatically saves beetween actions
  • Can save to a file
  • Supports Python and C#

Cons

  • No snapshot beetween saves