Skip to main content

This module is written to launch your programs with any database you want in the shortest time

Project description

ORM-DATABASE-sqlite

write example code

from orm_database_sqlite import Sqlite
import asyncio
from pydantic import BaseModel

class users(BaseModel):
    users_rt: str
    password_rt : str
    email: str


sqlite =  Sqlite("example.db")



async def main():
    data = {"users_rt":"test1","password_rt":"1234","email":"test1@mail.com"}
    data1 = [{"users_rt":"test1","password_rt":"1234","email":"test1@mail.com"},
            {"users_rt":"test2","password_rt":"1234","email":"test2@mail.com"},
            {"users_rt":"test3","password_rt":"1234","email":"test3@mail.com"}]
    await sqlite.start()
    #await sqlite.teble_create_BaseModel("users",users)
    #await sqlite.insert("users",data1)
    #result = await  sqlite.select("users",["users_rt","email"])
    #print(result)
    #await sqlite.delete("users",{"users_rt":"test2"})
    await sqlite.update("users",{"users_rt":"test1"},{"users_rt":"test2"})
asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orm_database_sqlite-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orm_database_sqlite-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file orm_database_sqlite-0.0.1.tar.gz.

File metadata

  • Download URL: orm_database_sqlite-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for orm_database_sqlite-0.0.1.tar.gz
Algorithm Hash digest
SHA256 89cef5e8c7690cc80b45df01eeb4d51d885a0c140d4e9c48e96ec2167656e54b
MD5 acc28546ea9f87544dfbc5060e4b9915
BLAKE2b-256 6738333d32b94c8ac4b7bf58e1c55bdce281a34fb36ddcfbe892b8fb042e07cd

See more details on using hashes here.

File details

Details for the file orm_database_sqlite-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for orm_database_sqlite-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b542e07bab515cae99f35f781b666f4223156bd9a591b90ad1fcaa9d2f0bd0d3
MD5 a2c84f504de48f9112e6ad339cff8ec8
BLAKE2b-256 88783c104d685580f429d4869e32115102df5c3d40741257d99bcf1b55073c00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page