??DB
HadiDB? Python?? ??? ??? ?? ???? ??? ?????????.
???? ????
pip install hadidb
??? HadiDB ??
createUser()? ???? ?? ??? ?? admin ? ?? ???? admin? ???? ? ???? ?????. ?? ?? ??() ???? ???? ??? ???? ?????.
from HadiDB.operation import User user = User("admin", "admin") user.createUser() # Creating a new user in the HadiDB user.authentication() # Authenticating the HadiDB user
??:
{'status': 200, 'message': 'Database user Created'}
??????, ??? ? ??? ??
? ??? ?????? ???? ?? ??? ?? ??? ???? ?????. ??? ??? ??, ????, ?????? ? ???? ?? Operation ???? ???? ?????? ??? ??????. ????? ??? ???? ???? ???? ??? ?????.
from HadiDB.operation import Operation username = "admin" password = "admin" database = "mefiz.com" collection = "authUser" schema = { "username":"Unique", "password":"Hash", "cnic":"Unique", "picture":"Image", "bio":"Text" } db = Operation(username,password,database,collection) db.create_database(schema)
??? ??
???? ??? ?? db.insert(data)? ???? ??? ?????? ???? ???? ?????.
from HadiDB.operation import Operation username = "admin" password = "admin" database = "mefiz.com" collection = "authUser" db = Operation(username,password,database,collection) data = { "username":"hadidb", "password":"12345", "cnic":"123232442", "picture":"user/my/hadidb.jpg", "bio":"HadiDB is the Best ;)" } result = db.insert(data) print(result)
??:
{ 'status': 200, 'message': 'Data insert successfully', 'data': { 'username': 'hadidb', 'password': '12345', 'cnic': '123232442', 'picture': 'user/my/hadidb.jpg', 'bio': 'HadiDB is the Best ;)', 'id': 1 } }
??? ????
??? ???? db.update(1, update_data)? ??? update_data? ???? ???????? ID? 1? ???? ???????.
from HadiDB.operation import Operation username = "admin" password = "admin" database = "mefiz.com" collection = "authUser" db = Operation(username,password,database,collection) update_data = { "username": "hadidb_update", "password": "123455", "cnic": "1232324423", "picture": "user/my/hadidb1.jpg", "bio": "HadiDB is the Best ;) update bio" } result = db.update(1,update_data) print(result)
??:
{ 'status': 200, 'message': 'Data Update successfully', 'data': { 'username': 'hadidb_update', 'password': '123455', 'cnic': '1232324423', 'picture': 'user/my/hadidb1.jpg', 'bio': 'HadiDB is the Best ;) update bio', 'id': 1 } }
GetByID
?? ??? ????? ??? ?? ???(ID) ?? ??? ???? ?? ?? ??? ?????.
result = db.getbyID(1) print(result)
?? ?? ????
getAll ???? ??????? ??? ????? ?? ??? ?????.
result = db.getAll() print(result)
GetByKey
getbykey ???? ??? ?-? ?? ???? ???????? ?? ??? ?????. ?? ? ? ?? ???? ??
result = db.getbykey({ "username":"momin" }) print(result)
GetByKeys
getbykeys ??? ??? AND(&&) ??? ?????. ? ?? ?(cnic ? bio) ??????? ? ?? ???? ???? ??? ?????.
result = db.getbykeys({ "cnic":"123232442", "bio":"HadiDB is the Best ;) update bio" }) print(result)
??
count ???? ??????? ??? ???? ?? ? ??(?? ??) ?? ?????.
result = db.count() print(result)
??:
{'status': 200, 'count': 1}
GeyByKeyCount
getbykeyCount ???? ??? ?-? ?? ???? ???? ?? ?? ?????.
result = db.getbykeyCount({ "username":"momin" })
??
?? ???(id)? ???? ???????? ??? ?????
result = db.delete(1) print(result)
???:
{'status': 200, 'message': 'data delete successful'}
?? ?????? ????
Configuration ???? get_database() ???? ???? ?? ??? ?? ??????? ?????
pip install hadidb
?? ??? ????
Configuration ???? get_collection() ???? ???? ?? ???????? ?? ???? ?????.
from HadiDB.operation import User user = User("admin", "admin") user.createUser() # Creating a new user in the HadiDB user.authentication() # Authenticating the HadiDB user
?? ???? ??? ????
Configuration ???? get_schema()???? ???? ?? ???? ???? ?????.
{'status': 200, 'message': 'Database user Created'}
??? ??
DatabaseDeletionService ???? deleteCollection() ???? ???? ???????? ?? ???? ?????.
from HadiDB.operation import Operation username = "admin" password = "admin" database = "mefiz.com" collection = "authUser" schema = { "username":"Unique", "password":"Hash", "cnic":"Unique", "picture":"Image", "bio":"Text" } db = Operation(username,password,database,collection) db.create_database(schema)
?????? ??
DatabaseDeletionService ???? deleteDatabase() ???? ???? ??????? ?????.
from HadiDB.operation import Operation username = "admin" password = "admin" database = "mefiz.com" collection = "authUser" db = Operation(username,password,database,collection) data = { "username":"hadidb", "password":"12345", "cnic":"123232442", "picture":"user/my/hadidb.jpg", "bio":"HadiDB is the Best ;)" } result = db.insert(data) print(result)
GitHub : https://github.com/MominIqbal-1234/hadidb
??? ?? : https://mefiz.com
??? : Momin Iqbal
? ??? HadiDB: ??? ???? ?? ??? Python ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











GTID (Global Transaction Identifier)? ? ????? ?? ? ??? ???? MySQL ???????? ?? ? ?? ??? ???? ?????. 1. ?? ??? ????? ?? ?? ? ??? ???? ???? ???? ??? ????? ?? ? GTID? ???? ????? ??? ? ????. 2. ?? ?? ???? ???? ? ????? ? ???? ? ?? ??????? ??? ???? ?????. 3. ?? ?? ???? ??????. GTID?? ?? UUID ? ?? ??? ???? ??? ???? ??? ???? ? ???? ??? ???? ????. ? ? ?? ?? ??? MySQL ????? ???? ???? ???? ??? ???? ??? ???? ?? ??????.

MySQL ?? ????? ?? ???? ?? 4 ??? ?????. 1. ?? ?? : ????? ? ????? ????, ?? ?? ? ??? ??? ????? ???? ?? ???? ??? ???? ?? ??? ??? ?? ? ?? ????? ???? MHA, ???????? ?? ??? ??? ? ??? ??? ??? ? ????. 2. ? ?? ?????? ?????? : ??? ??? ?? ?? (Seconds_Behind_master), Binlog ??? ???, ???? ?? ??? ??? ?? ?? ??? ???? ?????? ???? ??? ?? ??? ?? ?? ?? ??? ??????. 3. Switch Topology : ?? ???? ?????? ??? ??? ?????? ???, ?? ???? ????? GTID? ????? VIP, DNS ?? ??? ??? ????????.

MySQL ??????? ???? ??? ??? ????. 1. ?? ?? ??? ???? MySQL-U ??? ?? -P-H ??? ??? ????? ??? ??? ????? ???? ???????. 2. ??? ??????? ?? ?? ???? ?? MySQL-Uroot-PmyProject? ?? ?? ? ?????? ??? ?? ? ? ????. 3. ??? ?? 3306? ?? ?? MySQL-Uroot-P-H192.168.1.100-P3307? ?? ?? ??? ????? -p ?? ??? ???????. ?? ???? ??? ???? ?? ?? ? ? ????. ??? ???? ????, ??? ?? ?? ??? ??????. ?????? ?? ? ?? ??? ???? ?? Linux? MySQL-Client? ??? ? ????. ? ??? ???????

INdexESINMYSQLIMPROVEQUERYPEEDBYENABLEABERDATARETRIVEAL.1. THEYREDUCEDASCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCANCEND, WHERREORORDERBANTROWESINTROWSES, ?? ?? ??? ???? ?????

InnoDB? MySQL? ?? ?? ?????. ???, ??? ?? ? ?? ?? ???? MyISAM? ?? ?? ??? ???? ?????. 1. ???? ??? ????, ? ??? ???, ??? ???? ????, ?? ?? ?? ??? ??? ?? ?? ??? ????? ?????. 2. ?? ?? ?? ???? ??? ???? ???? ?? ??? ???? ?? ?? ?? ?? ?? ??? ?????. 3. ?? ?? ????? ?? ?? ??? ??? ??? ???? ?? ???? ???? ?? ? ??? ? ??? ???? ???? ?? ?? ?? ?? ??? ?????.

MySQL? ?? ???? ?? ??? ??? ? A??, ?? MVCC ? GAP ?? ??? ?? ??? ?? ? ?? ???? ??? ???? ???? ?? ?? ??? ????. ?? ?? ??? ??? ?? (??)? ????? ??? ??? ????? ?? ?? ??? ????? 1. ??? ??? (read committed)? ?? ? ???? ?? ? ??? ?? ? ??? ?? ? ?? ?? ?? ?? ? ? ????. ???, ??? ??? ????? ??? ??;

MySQL ????? ?? ??? ?? ?????? ????? ???? ???? ?????. ??, ???? ??? ???? ??? ????? ?????. ?? ?? ?? ?? ??? ?????. ?? ??, ?? ? ??? ?? ???? ??? ????? ??? ???? ??????. ??, ???? ????? ??????? ? ??? ???? ?? ??? ?? ? ? ????? ?? ?? ? ???? ?? ????? ?? ??? ??? ??? ?????. ??, ??? ?? ??? ?? ??? ???? ????, ??? ??, ?? ???? ?? ? ??? ??? ?????. MySQL? readuncommitted ? readcommi? ?????.

MySQL? ? ????? ??? ??? ????? ?? ?? ??? ?? ???????. 1. Windows ??? : MySQL ?? ?????? ? ??? ????? (?? ??? ????? C : \ programfiles \ mysql \ mysqlserverx.x \ bin), "? ???"→ "??"→ "Advanced System ??"→ "?? ??", "??? ??", MySQlb in wors in mysqlb in wors in mysqlb in world in that the the the the the seel worl ?? ????? ?? ???? MySQL? ??????-Version Versification; 2.Macos ? Linux ??? : Bash ??? ?? ~/.bashrc ?? ~/.bash_
