• Complain

Jesper Wisborg Krogh - MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers

Here you can read online Jesper Wisborg Krogh - MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Jesper Wisborg Krogh MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers
  • Book:
    MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2018
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Move data back and forth between database and application. The must-have knowledge in this book helps programmers learn how to use the official driver, MySQL Connector/Python, by which Python programs communicate with the MySQL database.

This book takes you from the initial installation of the connector through basic query execution, then through more advanced topics, error handing, and troubleshooting. The book covers both the traditional API as well as the new X DevAPI. The X DevAPI is part of MySQL 8.0 and is an API that can be used with connectors for several programming languages and is used from the command-line interface known as MySQL Shell. You will learn to use the connector by working through code examples and following a discussion of how the API calls work.

By the end of the book, you will be able to use MySQL as the back-end storage for your Python programs, and youll even have the option of choosing between SQL and NoSQL interfaces.

What Youll Learn

  • Install MySQL Connector/Python

  • Connect to MySQL and configure database access

  • Execute SQL and NoSQL queries from your Python program

  • Trap errors and troubleshoot problems

  • Store data from different languages using MySQLs character set support

  • Work in the X DevAPI that underlies all of MySQLs language connectors

Who This Book Is For

Developers familiar with Python who are looking at using MySQL as the back-end database. No prior knowledge of Connector/Python is assumed, but readers should be familiar with databases and the Python programming language.

Jesper Wisborg Krogh: author's other books


Who wrote MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers? Find out the surname, the name of the author of the book and a list of all author's works by series.

MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents
Landmarks
Jesper Wisborg Krogh MySQL ConnectorPython Revealed SQL and NoSQL Data - photo 1
Jesper Wisborg Krogh
MySQL Connector/Python Revealed SQL and NoSQL Data Storage Using MySQL for Python Programmers
Jesper Wisborg Krogh Hornsby New South Wales Australia Any source code or - photo 2
Jesper Wisborg Krogh
Hornsby, New South Wales, Australia

Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the books product page, located at www.apress.com/9781484236932 . For more detailed information, please visit www.apress.com/source-code .

ISBN 978-1-4842-3693-2 e-ISBN 978-1-4842-3694-9
https://doi.org/10.1007/978-1-4842-3694-9
Library of Congress Control Number: 2018952522
Jesper Wisborg Krogh 2018
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

To my wife, Ann-Margrete, and my parents.

Introduction

MySQL Connector/Python is the official driver used by Python programs to communicate with MySQL. It is maintained by Oracle and is part of the MySQL suite of products. It allows you to connect to a MySQL database from your Python program and execute queries. You have a choice of several APIs including the option of using SQL statements or a NoSQL interface.

This book goes through the high-level usage as well as the low-level details. When you have read all ten chapters of this book, you will be able to decide which API is the best for your project and youll be able to use it to execute your MySQL queries, handle errors, and troubleshoot when things go wrong.

Book Audience

The book was written for developers who need to use MySQL as a backend data store or are otherwise interested in learning about the capabilities of MySQL Connector/Python and how to use it. No prior knowledge of MySQL Connector/Python is required. It is, however, an advantage to be familiar with databases in general and with SQL and Python.

Book Structure

The chapters are divided into four parts. The journey starts out with some general background information, the installation of MySQL Connector/Python and MySQL Server, and the preparation for the example programs that are included throughout the book. The next two parts are dedicated to each of the main APIs included in MySQL Connector/Python: the legacy (classic) API and the new X DevAPI. The final part discusses how to handle errors and how to troubleshoot.

Part I - Getting Ready
The first part consists of just one chapter:
  1. Introduction and Installation - This chapter starts out with an introduction to MySQL Connector/Python. It then goes through the process of downloading and installing it. The chapter finishes off with instructions for getting a MySQL Server instance set up for the example programs that are included throughout the rest of the book.

Part II - The Legacy APIs
The second part goes through the details of the MySQL Connector/Python APIs based on the Python Database API specification (PEP 249), which is the API traditionally used when connecting from Python to MySQL. The four chapters are as follows:
  1. Connecting to MySQL The first task when using MySQL Connector/Python is to connect to the database instance. This chapter covers how to create and configure the connection. This chapter also includes a discussion of character sets and collations.

  2. Basic Query Execution In this chapter, you start executing queries. The discussion is split over two chapters; this chapter covers the basic parts including simple queries returning a single result set, using cursors, and the important topic of handling user input.

  3. Advanced Query Execution This chapter continues where the previous one ended. It goes through more advanced concepts of executing queries such as handling multiple result sets and loading data from a CSV file. The topic of connection properties is also revisited with a focus on the options that affect how transactions work, the behavior of queries, etc. Then there is a discussion of utilities, for example to test whether the connection is still alive. Finally, there is a discussion of the C Extension.

  4. Connection Pooling and Failover MySQL Connector/Python has built-in support for connection pooling and failover. This chapter discusses how to set up and use a connection pool as well as how to fail over to a different MySQL instance should the current become unavailable.

Part III - The X DevAPI
The third part switches the focus to the new API called the X DevAPI. This API has reached general available status with MySQL 8.0 and provides uniform access from several programming languages. It includes support for both NoSQL and SQL access as well as native support for working with JSON documents in the MySQL Document Store. The three chapters are as follows:
  1. The X DevAPI This chapter introduces the X DevAPI, including details of the parts that are shared between using MySQL as a document store and using SQL tables. It covers how to create connections and how to work with schemas, statements, and results.

  2. The MySQL Document Store While MySQL traditionally has been a relational SQL database, the MySQL Document Store allows you to use it to store JSON documents. This chapter goes through the details of how to use the X DevAPI to work with collections and documents.

  3. SQL Tables The X DevAPI also supports using MySQL with SQL tables, both using a NoSQL interface and to execute SQL statements. This chapter explains how to use the X DevAPI with SQL tables.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers»

Look at similar books to MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers»

Discussion, reviews of the book MySQL Connector/Python Revealed: SQL and NoSQL Data Storage Using MySQL for Python Programmers and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.