Comments (2)
Could you write up an example? I know nothing of Python, so rely on readers to do the coding for me on things like this.
from bobby-tables.
It is effectively the same as the MySQLdb module API-wise (they are both DB-API compliant), they just work differently in the background. oursql
speaks the binary protocol (allowing for actual parameterization), whereas MySQLdb escapes the parameters and interpolates (presumably using the older protocol). The example therefore shouldn't really need changing.
That being said, it does use a different parameter style from MySQLdb
:
>>> import oursql; print oursql.paramstyle
qmark
Thus the last sentence probably also needs changing.
from bobby-tables.
Related Issues (20)
- Switch to another module than File::Slurp HOT 4
- PHP example addition HOT 1
- 404 Link HOT 2
- Add Django article
- In golang, add safesql
- New page: Articles about SQL injection HOT 1
- Move to Universal Analytics HOT 1
- Consolidate C#, .NET, and ASP pages into single .NET page (with or without subpages) HOT 9
- Add a page for ActiveX Data Objects HOT 5
- Covert to github pages HOT 4
- Add a page for Node
- HTTPS Certificate Mismatch HOT 5
- "Entity Framework" label wrapping
- EF: method list render bug HOT 1
- Internal links on C# page are broken; refer to .md files
- Heading ids not generated
- Add page for Microsoft Access
- Links to ADO.NET ORM page seem to be broken HOT 2
- Add page describing database-layer SQL injection
- Delphi example better be changed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bobby-tables.