The Ultimate Guide to Professional Database Programming with Python and PostgreSQL

The Ultimate Guide to Professional Database Programming with Python and PostgreSQL
Author :
Publisher : SPARTA Publishing
Total Pages : 215
Release :
ISBN-10 :
ISBN-13 :
Rating : 4/5 ( Downloads)

Book Synopsis The Ultimate Guide to Professional Database Programming with Python and PostgreSQL by : Vivian Siahaan

Download or read book The Ultimate Guide to Professional Database Programming with Python and PostgreSQL written by Vivian Siahaan and published by SPARTA Publishing. This book was released on 2019-01-15 with total page 215 pages. Available in PDF, EPUB and Kindle. Book excerpt: Python has various database drivers for PostgreSQL. Currently, the psycopg is the most popular PostgreSQL database adapter for the Python language. The psycopg fully implements the Python DB-API 2.0 specification. The current version of the psycopg is 2 or psycopg2. The psycopg2 database adapter implemented in C as a libpq wrapper resulting in both fast and secure. The psycopg2 provides many useful features such as client-side and server-side cursors, asynchronous notification and communication, COPY command support, etc. PostgreSQL was designed to run on UNIX-like platforms. However, PostgreSQL was then also designed to be portable so that it could run on various platforms such as Mac OS X, Solaris, and Windows. PostgreSQL is free and open source software. Its source code is available under PostgreSQL license, a liberal open source license. You are free to use, modify and distribute PostgreSQL in any form. PostgreSQL requires very minimum maintained efforts because of its stability. Therefore, if you develop applications based on PostgreSQL, the total cost of ownership is low in comparison with other database management systems. In Chapter 2, you will learn querying data from the postgresql using Python including establishing a database connection, creating a statement object, executing the query, processing the resultset object, querying data using a statement that returns multiple rows, querying data using a statement that has parameters, inserting data into a table using Python, updating data in postgresql database using Python, calling postgresql stored function using Python, deleting data from a postgresql table using Python, and postgresql Python transaction. In Chapter 3, you will learn managing table structure and views including postgresql data types, postgresql create table, postgresql select into statement, postgresql create table as, using postgresql serial to create auto-increment column, identity column, alter table, drop table, truncate table, check constraint, not-null constraint, foreign key, primary key, unique constraint, managing postgresql views, creating updatable views, materialized views, creating updatable views using the with check option clause, and recursive view. In Chapter 4, you will learn statements, operators, and clauses including select, order by, select distinct, limit, fetch, in, between, postgresql like, is null, alias, joins, inner join, postgresql left join, self-join, full outer join, cross join, natural join, group by, having, intersect operator, except operator, grouping sets, cube, and rollup. In Chapter 5, you will learn postgresql trigger, aggregate, and string functions including creating the first trigger in postgresql, managing postgresql trigger, aggregate functions, avg function, max function, min function, sum function, postgresql concat function, ascii function, trim function, length function, substring function, regexp_matches function, regexp_replace function, replace function, to_number function, and to_char function.


The Ultimate Guide to Professional Database Programming with Python and PostgreSQL Related Books

The Ultimate Guide to Professional Database Programming with Python and PostgreSQL
Language: en
Pages: 215
Authors: Vivian Siahaan
Categories: Computers
Type: BOOK - Published: 2019-01-15 - Publisher: SPARTA Publishing

DOWNLOAD EBOOK

Python has various database drivers for PostgreSQL. Currently, the psycopg is the most popular PostgreSQL database adapter for the Python language. The psycopg
PostgreSQL Server Programming
Language: en
Pages: 405
Authors: Hannu Krosing
Categories: Computers
Type: BOOK - Published: 2013-01-01 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

This practical guide leads you through numerous aspects of working with PostgreSQL. Step by step examples allow you to easily set up and extend PostgreSQL. "Pos
Beginning Databases with PostgreSQL
Language: en
Pages: 650
Authors: Richard Stones
Categories: Computers
Type: BOOK - Published: 2006-11-03 - Publisher: Apress

DOWNLOAD EBOOK

*The most updated PostgreSQL book on the market, covering version 8.0 *Highlights the most popular PostgreSQL APIs, including C, Perl, PHP, and Java *This is tw
PostGIS in Action, Third Edition
Language: en
Pages: 662
Authors: Regina Obe
Categories: Computers
Type: BOOK - Published: 2021-09-21 - Publisher: Simon and Schuster

DOWNLOAD EBOOK

PostGIS in Action, Third Edition shows you how to solve real-world geodata problems. You’ll go beyond basic mapping, and explore custom functions for your app
SQL Cookbook
Language: en
Pages: 632
Authors: Anthony Molinaro
Categories: Computers
Type: BOOK - Published: 2006 - Publisher: "O'Reilly Media, Inc."

DOWNLOAD EBOOK

A guide to SQL covers such topics as retrieving records, metadata queries, working with strings, data arithmetic, date manipulation, reporting and warehousing,