This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10648|Reply: 0

php database access tool Medoo

[Copy link]
Posted on 7/16/2017 5:15:25 PM | | | |



edoo is an ultra-lightweight PHP SQL database framework developed by the founders of the social networking site Catfan and the open-source project Qatrix. It provides a simple, easy-to-learn, and flexible API to improve the efficiency and performance of developing web applications, and the size is less than 22KB.

Compatible: Supports various data: MySQL, MSSQL, SQLite, MariaDB, Oracle, Sybase, PostgreSQL, etc
Secure: Prevent SQL injection
Free: MIT Agreement, you can make any modifications.
We know that in C#, there is a ado.net we encapsulate commonly used operations into a DbHelper class, edoo is dbhelp in php


Official website: https://medoo.in/

Today, when I was writing the PHP interface, I introduced the db object operation that came with dz, and it would prompt me that it contained illegal characters. (Actually, it's a json string, it's intercepted by dz and can't be inserted into the database)

So, found edoo from the internet to access the database.


1: Download and install first


https://github.com/catfan/Medoo/archive/master.zip

Medoo-master.zip (11.41 KB, Number of downloads: 0, 售价: 1 粒MB)

2: Install the PHP extension

MySQL, MariaDB -> php_pdo_mysql
MSSQL (Windows) -> php_pdo_sqlsrv
MSSQL (Linux/UNIX) -> php_pdo_dblib
Oracle -> php_pdo_oci
Oracle version 8 -> php_pdo_oci8
SQLite -> php_pdo_sqlite
PostgreSQL -> php_pdo_pgsql
Sybase -> php_pdo_dblib


Find the php.ini configuration file under linux and uncomment extension=php_pdo_mysql.dll or extension=php_pdo_mysql.so




3: Initialize the configuration

Upload Medoo.php to the directory of your interface





4: Simple query to add update code:
--Inquire
--increase
--update







Previous:The difference between engine=innodb and engine=myisam in mysql
Next:Pangu word segmentation assistant
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com