- Notifications
You must be signed in to change notification settings - Fork5
This repository will walk you through the process of quickly getting started with Node.js and MariaDB using the MariaDB Python connector.
License
mariadb-developers/python-quickstart
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository will walk you through the process of quickly getting started withNode.js andMariaDB using theMariaDB Python connector.
This sample requires the following to be installed/enabled on your machine:
- Python (v. 3+)
- MariaDB Connector/C (v. 3.1.5+) (used by Connector/Python, find more informationhere)
To run the sample code in this repository you'll first need toinstall the MariaDB Python connector (driver).
Once you've installed the MariaDB Python connector you're ready to run thetasks.py sample.
Thetasks.py sample can be used to:
Createa database and table (necessary for the subsequent CRUD operations).$ python3 src/tasks.py create
Dropthe database (and table).$ python3 src/tasks.py drop
Inserta new tasks record.$ python3 src/tasks.py add'New Task Description'Updatea task record's completion field (by specifying theidandcompletionvalue).$ python3 src/tasks.py updateStatus 3 1
Selectand print all tasks.$ python3 src/tasks.py show
Deletea task record (byid).$ python3 src/tasks.py delete 3
- How to connect Python programs to MariaDB (blog)
- Official MariaDB Documentation
- MariaDB Quickstart Guide
Please feel free to submit PR's, issues or requests to this project directly.
If you have any other questions, comments, or looking for more information on MariaDB please check out:
Or reach out to us directly via:
About
This repository will walk you through the process of quickly getting started with Node.js and MariaDB using the MariaDB Python connector.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.