Skip to main content

This is package where you can build databases importing (mysql and mariadb) in python as easy

Project description

let's go through each function and provide examples on how to use them.

  1. CD (Create Database): This function creates a new database.

    Example: CD("mydatabase", mydb)

  2. CT (Create Table): This function creates a new table.

    Example: CT("mytable (id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255))", mydb)

  3. IV (Insert Values): This function inserts values into a table.

    Example: IV("mytable", "name", ("John",),mydb)

  4. IVM (Insert Multiple Values): This function inserts multiple rows of values into a table.

    Example: IVM("mytable", "name", [("John",), ("Alice",), ("Bob",)],mydb)

  5. SA (Select All): This function selects all rows from a table and prints them.

    Example: SA("mytable", mydb)

  6. DB (Drop Database): This function drops a database.

    Example: DB("mydatabase", mydb)

  7. DT (Drop Table): This function drops a table.

    Example: DT("mytable", mydb)

  8. STBC (Select Text By Column): This function selects a specific column from a table and prints its contents.

    Example: STBC("name", "mytable", mydb)

  9. STBW (Select Text By Where): This function selects all columns from a table based on a given condition and prints the results.

    Example: STBW("mytable", "age > 18", mydb)

  10. STBWL (Select Text By Where Like): This function selects all columns from a table based on a LIKE condition and prints the results.

    Example: STBWL("mytable", "name", "J%", mydb)

  11. UTBW (Update Text By Where): This function updates values in a table based on a given condition.

    Example: UTBW("mytable", "name='Jane'", "id=1", mydb)

  12. STBR (Select Text By Row): This function selects all columns from a table based on a given condition and prints the results row by row.

    Example: STBR("mytable", mydb)

  13. STBO (Select Text By Order): This function selects all columns from a table and orders the results by a specified field.

    Example: STBO("mytable", "name", mydb)

  14. STBOAD (Select Text By Order And Direction): This function selects all columns from a table, orders the results by a specified field, and specifies the order direction (ascending or descending).

    Example: STBOAD("mytable", "age", "DESC", mydb)

  15. MCDT (Modify Column Data Type): This function modifies the data type of a column in a table.

    Example: MCDT("mytable", "age", "INT", mydb)

  16. MCP (Modify Column Position): This function modifies the position of a column in a table.

    Example: MCP("mytable", "name", "age", mydb)

  17. ATBF (Add Table Field): This function adds a new column to a table.

    Example: ATBF("mytable", "email", "VARCHAR(255)", mydb)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

PLCSQL-0.7-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file PLCSQL-0.7-py3-none-any.whl.

File metadata

  • Download URL: PLCSQL-0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for PLCSQL-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f07b9179d1cd2687abdf2cb4c4a09a8b8d8b9efd63545ad7f183dbf3ae01368b
MD5 ad414b3b7f41d5e15551f18d176149e8
BLAKE2b-256 61a7b3f581729019cf821bae3a21149dabf41b6fcdcfbc1d888e8b59f0ce0794

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