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 postgres

from orm_database_postgres import PostgreSQL
import asyncio
from pydantic import BaseModel

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


postgres = PostgreSQL(host="127.0.0.1",user="postgres",database="wallet",password="123412341234")



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.2.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.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orm_database_postgres-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 77e50a7d2e7452d2039d6f1b72e0162cea7fd872ed43a7d5d21b88f5c01bb708
MD5 879056ccd5705e14c6abb4ed031eafde
BLAKE2b-256 ab6082390efa649e49168046e0002057464c68cd41384190f5940dd214afeba3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for orm_database_postgres-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab939ab2754a334270a0b0f2d2ad4d4c1e3612bc70ed850b6eec9ddac5b1787c
MD5 a5dcd155d30d6f98577dae416a3f26e6
BLAKE2b-256 e7cc99dee55d925a3be98c2d48314fe27d0260fba43c35529e1bad1d72e5d564

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