flexi-mysql


Nameflexi-mysql JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryPython package for simplyfying querying process of mysql
upload_time2025-02-03 18:50:49
maintainerNone
docs_urlNone
authorimEternity
requires_pythonNone
licenseMIT License Copyright (c) 2025 Eternity Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords mysql simple database sql
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Flexi MySQL
<p>Flexi MySQL is a Python module designed to streamline the process of interacting with MySQL databases. This module offers a variety of functions that significantly reduce the need for manually typing queries, executing them, and handling the results or committing data to the database. Additionally, for scenarios requiring raw SQL queries, the module provides support for creating such queries using MySQL

## Examples
### Fetching results from the database
```py
from flexi_mysql import flexi_mysql
myobj = simple_mysql.connect(host="localhost", user = "root",database="test", password="")
print(myobj.fetch_result(tables = ["t1"], where="id = 2"))
```

## Documentation

| Name | Description |
|:--|:--|
| `create_database` | Create New Database |
| `drop_database` | Delete Database |
| `create_table` | Create a new table |
| `drop_table` | Deletes the specified table |
| `truncate_table` | Deletes the contents from the specified table |
| `show_tables` | Shows all tables in the connected database |
| `show_databases` | Shows all databases |
| `add_column` | Adds a new column to the specified table |
| `drop_column` | Deletes the specified column from the table |
| `modify_column` | Modify the colummn of a table |
| `drop_primarykey` | Delete the primary key from the table specfied |
| `drop_foreignkey` | Delete the foriegn key from the table specified |
| `describe_table` | Shows the structure of the specified table |
| `fetch_result` | Used to fetch results from the database |
| `update_value` | Update the values in the specified table. |
| `insert_value` | Used to insert a single set of values to the specified table. |
| `insert_values` | Used to insert multiple sets of values to the specified table. |
| `delete_value` | Deletes value(s) from the specified table |
| `inner_join` | Used for INNER JOIN of two tables |
| `left_join` | Used for LEFT JOIN of two tables |
| `right_join` | Used for RIGHT JOIN of two tables |
| `cross_join` | Used for CROSS JOIN of two tables |
| `raw_query` | Used for fetching results from a table using MySQL Query |
| `raw_update` | Used for updating values to a table using MySQL Query |
| `raw_delete` | Used for deleting values from a table using MySQL Query |
| `close_connection` | Used to close the connection to the database. |



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "flexi-mysql",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "mysql, simple, database, sql",
    "author": "imEternity",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/58/22/2a96dec914994f88dbbf8f31befa5c2982b0c8e6e22941ebff7c622fc830/flexi_mysql-0.1.1.tar.gz",
    "platform": null,
    "description": "# Flexi MySQL\n<p>Flexi MySQL is a Python module designed to streamline the process of interacting with MySQL databases. This module offers a variety of functions that significantly reduce the need for manually typing queries, executing them, and handling the results or committing data to the database. Additionally, for scenarios requiring raw SQL queries, the module provides support for creating such queries using MySQL\n\n## Examples\n### Fetching results from the database\n```py\nfrom flexi_mysql import flexi_mysql\nmyobj = simple_mysql.connect(host=\"localhost\", user = \"root\",database=\"test\", password=\"\")\nprint(myobj.fetch_result(tables = [\"t1\"], where=\"id = 2\"))\n```\n\n## Documentation\n\n| Name | Description |\n|:--|:--|\n| `create_database` | Create New Database |\n| `drop_database` | Delete Database |\n| `create_table` | Create a new table |\n| `drop_table` | Deletes the specified table |\n| `truncate_table` | Deletes the contents from the specified table |\n| `show_tables` | Shows all tables in the connected database |\n| `show_databases` | Shows all databases |\n| `add_column` | Adds a new column to the specified table |\n| `drop_column` | Deletes the specified column from the table |\n| `modify_column` | Modify the colummn of a table |\n| `drop_primarykey` | Delete the primary key from the table specfied |\n| `drop_foreignkey` | Delete the foriegn key from the table specified |\n| `describe_table` | Shows the structure of the specified table |\n| `fetch_result` | Used to fetch results from the database |\n| `update_value` | Update the values in the specified table. |\n| `insert_value` | Used to insert a single set of values to the specified table. |\n| `insert_values` | Used to insert multiple sets of values to the specified table. |\n| `delete_value` | Deletes value(s) from the specified table |\n| `inner_join` | Used for INNER JOIN of two tables |\n| `left_join` | Used for LEFT JOIN of two tables |\n| `right_join` | Used for RIGHT JOIN of two tables |\n| `cross_join` | Used for CROSS JOIN of two tables |\n| `raw_query` | Used for fetching results from a table using MySQL Query |\n| `raw_update` | Used for updating values to a table using MySQL Query |\n| `raw_delete` | Used for deleting values from a table using MySQL Query |\n| `close_connection` | Used to close the connection to the database. |\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 Eternity\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n        ",
    "summary": "Python package for simplyfying querying process of mysql",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/eternity2745/flexi-mysql#readme",
        "Repository": "https://github.com/eternity2745/flexi-mysql"
    },
    "split_keywords": [
        "mysql",
        " simple",
        " database",
        " sql"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "983525f737ecc847f42f31b87a6725252de0dff420aededb78650850c2ad4a17",
                "md5": "0b5d3c757c29097c8251347e3e90f571",
                "sha256": "f484ec65f8acd930e1c601202bd4e837ee0561a2da852e890a58453728277e20"
            },
            "downloads": -1,
            "filename": "flexi_mysql-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0b5d3c757c29097c8251347e3e90f571",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7322,
            "upload_time": "2025-02-03T18:50:46",
            "upload_time_iso_8601": "2025-02-03T18:50:46.895478Z",
            "url": "https://files.pythonhosted.org/packages/98/35/25f737ecc847f42f31b87a6725252de0dff420aededb78650850c2ad4a17/flexi_mysql-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "58222a96dec914994f88dbbf8f31befa5c2982b0c8e6e22941ebff7c622fc830",
                "md5": "82cf26b0a2246150eb259a0ea1df5201",
                "sha256": "84239fc519769a759efb6df4c732fc11f233484b5e0f4a084a6d853c224d9fe5"
            },
            "downloads": -1,
            "filename": "flexi_mysql-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "82cf26b0a2246150eb259a0ea1df5201",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7000,
            "upload_time": "2025-02-03T18:50:49",
            "upload_time_iso_8601": "2025-02-03T18:50:49.779212Z",
            "url": "https://files.pythonhosted.org/packages/58/22/2a96dec914994f88dbbf8f31befa5c2982b0c8e6e22941ebff7c622fc830/flexi_mysql-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-03 18:50:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "eternity2745",
    "github_project": "flexi-mysql#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "flexi-mysql"
}
        
Elapsed time: 2.39302s