III Flask database [flask Sqlalchemy]
I database
1. Foundation
1.1 download
Format: PIP install flask Sqlalchemy
1.2 integrated configuration
app.config['SQLALCHEMY_DATABASE_URI']='mysql://root:root@127.0.0.1/jack'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
Special: import pymysql is required to import mysql; pymysql. install_ as_ MySQLdb()
1.3 instantiation
...
Added by acabrera on Thu, 20 Jan 2022 02:14:25 +0200
[Java][SQL Server][Tomcat] Java local server reads data and account password checks in SQL Server
Foreword: This small project uses Java Tomcat local server to realize the function of reading SQL Server data and comparing the input account password with the existing account password in the database. Java source code download link: (Resources pending review)
1 System overview
1.1 System Introduction
Based on the WeChat applet, we can easi ...
Added by Ashoar on Thu, 20 Jan 2022 01:35:21 +0200
Implementation of several locks in redis
1. redis lock classification
The locking commands that redis can use are INCR, SETNX and SET
2. The first lock command INCR
The idea of locking is that if the key does not exist, the value of the key will be initialized to 0 first, and then the INCR operation will be performed to add one. Then, other users add one hour when executing t ...
Added by wardmaestro on Thu, 20 Jan 2022 01:13:36 +0200
Redis 32: actual combat: redis cluster mode
In the last article, we talked about the construction of Redis cluster and the dynamic addition and deletion of nodes. Here we will briefly review. 30001 ~ 30006 are the clusters we built initially, and 30007 and 30008 are the master-slave nodes dynamically added later. We use the -- cluster info command to see the allocation of master nodes an ...
Added by snowman2344 on Thu, 20 Jan 2022 00:30:42 +0200
Wan a #20, how to filter data in index push down
The original content of GreatSQL community cannot be used without authorization. Please contact Xiaobian and indicate the source for reprint.Experimental environmentGreatSQL 8.0.25 InnoDB1. Introduction to index push down1. Index Condition Pushdown is short for ICP.2.MySQL5. Version 6 introduces the function for optimizing queries.3. Under some ...
Added by marc2000 on Wed, 19 Jan 2022 22:37:52 +0200
[tcaplus DB knowledge base] Tcaplus Go SDK manual
[tcaplus DB knowledge base] Tcaplus Go SDK manual (I)1 preparation for useThis API is the Go package of Tcaplus API and supports the addition, deletion, modification and query of Generic table1.1 list of codespack is a packaged scriptExample is an exampleaurotest is a testing toolOther directories are the source code of Tcaplus Go APIThe vendor ...
Added by pfchin on Wed, 19 Jan 2022 22:00:56 +0200
Database ---- Experiment 5: Topic: Experiment 5 database design and database programming
[purpose and requirements of the experiment] 1. Understand and master the methods and main steps of database design; 2. Master the establishment method of conceptual structure and common expression tools (E-R diagram); 3. Master the conversion principle from conceptual structure to logical structure; 3. Master the syntax of SQL process control ...
Added by smbkgeo1983 on Wed, 19 Jan 2022 21:04:45 +0200
springboot+shardingsphere review the old and know the new
We also analyzed the integration of shardingsphere component with spring boot to realize database and table division. Sub database and sub table are mainly used to solve IO problems and slow query caused by massive data. ShardingSphere is an ecosystem composed of a set of open-source distributed database middleware solutions. It is composed of ...
Added by Ambush Commander on Wed, 19 Jan 2022 20:33:25 +0200
PostgreSQl 12 master-slave stream replication and archiving configuration
WeChat official account: operation and development story, author: Jiang Zong
Hello, I'm Xiao Jiang. A low-level operation and maintenance engineer.
The previous article talked about the source code deployment of PostgreSQl 12. Here we talk about the master-slave stream replication and archiving configuration of PostgreSQl 12.
Two forms of ...
Added by private_guy on Wed, 19 Jan 2022 14:12:29 +0200
Database Experiment 4: view and database security
Database Experiment 4: view and database security
[purpose and requirements of the experiment] 1. Understand the SQL view and its difference from the basic table; 2. Master the definition, query and update of SQL view; 3. Master the management methods of users and permissions in SQL Server; 4. Master the control function of SQL language; 5. De ...
Added by Roberto on Wed, 19 Jan 2022 14:05:39 +0200