Code Monkey home page Code Monkey logo

python-quickstart's Introduction

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 src/tasks.py create
  • Drop the database (and table).

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

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

    $ python3 src/tasks.py updateStatus 3 1
  • Select and print all tasks.

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

    $ python3 src/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

python-quickstart's People

Contributors

alejandro-du avatar rhedgpeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.