Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou 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

7 Commits
 
 
 
 
 
 

Repository files navigation

This repository will walk you through the process of quickly getting started withNode.js andMariaDB using theMariaDB 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 toinstall the MariaDB Python connector (driver).

Running these samples

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

Thetasks.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 theid andcompletion value).

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

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

    $ 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

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

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp