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-postgres

write example code

from orm_database_postgres 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_postgres-0.0.1.tar.gz (4.3 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_postgres-0.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for orm_database_postgres-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d1bda1859609ed111e14c6ea153d2a95f226edda2d910a23e3c74ffa8759bee6
MD5 b91c0352de362a4c9827243e0e3f53a4
BLAKE2b-256 a35f7053f0fa4be946e0245c4a4c7b0700906dd2b12bf0ab40339bacc31be01f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for orm_database_postgres-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd6ccbaf53bd6e8112eaf501576827d66401995780cca68e2a87e0a9a6140458
MD5 df849b940c88449127800dcabcb6f070
BLAKE2b-256 e8d3763ed38b10be9e05ec2bb56e21ce4b7fb7ab7b9be80cc2c20c0c0b7d1d91

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