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="12341234")



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 postgres.start()
    #await postgres.teble_create_BaseModel("users",users)
    #await postgres.insert("users",data1)
    result = await  postgres.select("users",["users_rt","email"])
    print(result)
    #await postgres.delete("users",{"users_rt":"test2"})
    #await postgres.update("users",{"users_rt":"test1"},{"users_rt":"test2"})

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.8.tar.gz (4.4 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.8-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orm_database_postgres-0.0.8.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for orm_database_postgres-0.0.8.tar.gz
Algorithm Hash digest
SHA256 156b4d570b0681d39d19cbcb57cb8b0e4edbf7419144a33d650f2602e52603b0
MD5 6e3cb143ceceaaf8b69fd4b39d1cf63d
BLAKE2b-256 5af18d25bcb76da0256f0ef9a1125f3074f2a902a8c6cb5b0b9e76fb9df83d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for orm_database_postgres-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4fee929a198e13ce63a40461db8f821118c96c84f3528a635273c4ea3249ab5c
MD5 8ff0b6fc90ae30b93bd642c02508dd12
BLAKE2b-256 f63878f03381f04ec8061d4b1f224e3366c0cd6bbb7eee4278be3adf3ae9d665

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