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.2.tar.gz (4.2 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.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for orm_database_sqlite-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1eba55352fbb9365ba61472b7594e05f459be0430fe741d51d9219fc613928ad
MD5 ef97c968dcddbf697b0fdf9af41c8783
BLAKE2b-256 6912c0354b13d703b235effa2c2bd7803d1263faee6ca6f841011d3f5b2d5234

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for orm_database_sqlite-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59caa5ecfc8c9bd3b8d2e6fca0961b702234c7e36736d2d616f8a049e333f48a
MD5 19f19e324c5b8d40424cde6f38015482
BLAKE2b-256 5aee54598b103d17f5b84fb04fb3faf9c6291e8917139be84673c95d4def4067

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