Skip to content

This repository will walk you through the process of quickly getting started with Node.js and MariaDB using the MariaDB Python connector.

License

Notifications You must be signed in to change notification settings

mariadb-developers/python-quickstart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Quick Start: Python and MariaDB

This repository will walk you through the process of quickly getting started with Node.js and MariaDB using the MariaDB Python connector.

Requirements

This sample requires the following to be installed/enabled on your machine:

Installing MariaDB Connector/Python

To run the sample code in this repository you'll first need to install the MariaDB Python connector (driver).

Running these samples

Once you've installed the MariaDB Python connector you're ready to run the tasks.py sample.

The tasks.py sample can be used to:

  • Create a database and table (necessary for the subsequent CRUD operations).

    $ python3 tasks.py create
  • Drop the database (and table).

    $ python3 tasks.py drop
  • Insert a new tasks record.

    $ python3 tasks.py add 'New Task Description'
  • Update a task record's completion field (by specifying the id and completion value).

    $ python3 tasks.py update 3 1
  • Select and print all tasks.

    $ python3 tasks.py show
  • Delete a task record (by id).

    $ python3 tasks.py delete 3

Helpful Resources

Support and Contribution

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:

License

License

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages