C++20 镶 SQLC++20 ❤ SQL John R Bandela, MDOverview u SQL u C++ Example u Implementation techniques u fixed_string u meta_struct u Parsing compile time strings into meta_structsOverview v SQL v C++ Example {price_from_user};Avoiding SQL Injection Attacks SELECT orders.id, name, item, price, discount_code FROM orders JOIN customers ON customers.id = customerid WHERE price > ?;SQL Library Options u Traditional Lots of information available u Vulnerable to sql injection of developer not careful u Use dynamic typingDomain Specific Language u Use types to encode SQL u Looks more like regular C++ u Typically requires0 码力 | 46 页 | 775.02 KB | 6 月前3
⽤ egg 孵化你的 SQL 优化器 - 王润基第三届中国Rust开发者⼤会 ⽤ egg 孵化你的 SQL 优化器 王润基 RisingWave 内核开发⼯程师 ? Parser Binder Optimizer Executor SQL AST Logical Plan Physical Plan Table Catalog Storage RisingLight 查询引擎的整体结构 SELECT name, url url FROM t1 JOIN t2 WHERE t1.id = t2.id AND name = ‘Bob’ SQL Logical Plan Physical Plan Projection name, url Filter t1.id = t2.id name = “Bob” Join Scan t1(id, name) Scan t2(id, url) Filter #1 = “Bob” Hash Join #0 = #2 Scan $1.1, $1.2 Scan $2.1, $2.2 Projection #1, #3 ⼀个 SQL 语句优化的例⼦ 基于规则的优化 (RBO) 基于代价的优化 (CBO) 谓词下推 Join Filter A B Join Filter A B Filter Join A Join0 码力 | 39 页 | 6.48 MB | 1 年前3
[JavaSE实验] JDBC and MySQLtowards relational databases. From a technical point of view, the API is as a set of classes in the java.sql package. To use JDBC with a particular database, we need a JDBC driver for that database. 2 About server. package zetcode; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; Statement object for sending SQL statements to the database. rs = st.executeQuery("SELECT VERSION()"); The createStatement() method of the connection object executes the given SQL statement, which returns0 码力 | 23 页 | 2.52 MB | 1 年前3
Spring Framwork Data Access v5.3.36 SNAPSHOT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 3.3.4. Running Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . and Data Value Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . 126 3.8.1. Providing SQL Type Information for Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Executing Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 197 页 | 2.76 MB | 1 年前3
peewee Documentation Release 2.10.2records Counting records Aggregating records Retrieving Scalar Values SQL Functions, Subqueries and “Raw expressions” Security and SQL Injection Window functions Retrieving raw tuples / dictionaries Returning query: ... print person.name, person.birthday ... Herb 1950-05-05 One last query. This will use a SQL function to find all people whose names start with either an upper or lower-case G: >>> expression close() This is just the basics! You can make your queries as complex as you like. All the other SQL clauses are available as well, such as: group_by() having() limit() and offset() Check the documentation0 码力 | 275 页 | 276.96 KB | 1 年前3
Nim 2.0.8 Manualonto the stack. With this notation we can now easily de�ne the core of the grammar: A block of statements (simpli�ed example): Comments Comments start anywhere outside a string or character literal with (IND{=} 'else' ':' stmt)? simpleStmt = ifStmt / ... stmt = IND{>} stmt ^+ IND{=} DED # list of statements / simpleStmt # or a simple statement i = 0 # This is a single comment over be one of the two pre-de�ned values true and false . Conditions in while , if , elif , when -statements need to be of type bool . This condition holds: The operators not, and, or, xor, <, <=, >, >=0 码力 | 132 页 | 5.73 MB | 1 年前3
peewee Documentation
Release 2.10.2query: ... print person.name, person.birthday ... Herb 1950-05-05 One last query. This will use a SQL function to find all people whose names start with either an upper or lower-case G: >>> expression close() This is just the basics! You can make your queries as complex as you like. All the other SQL clauses are available as well, such as: • group_by() 1.2. Quickstart 9 peewee Documentation, Release for instructions on installing peewee. Every model has a create_table() classmethod which runs a SQL CREATE TABLE statement in the database. This method will create the table, including all columns, foreign-key0 码力 | 221 页 | 844.06 KB | 1 年前3
Reference guide for FCL units. Document version 3.2.2. . . . . . . . . . . . . . . . . . . . . . . . . . 790 34.6 Automatic generation of update SQL statements . . . . . . . . . . . . . . . . . . . . 790 34.7 Using parameters . . . . . . . . . . . . . 37TSQLQuery.ReadOnly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835 34.24.38TSQLQuery.SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835 34.24.39TSQLQuery.InsertSQL . TSQLStatement.ParseSQL . . . . . . . . . . . . . . . . . . . . . . . . . . . 855 34.27.10TSQLStatement.SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855 34.27.11TSQLStatement.Transaction0 码力 | 953 页 | 2.21 MB | 1 年前3
sqlalchemy tutorialAbout the Tutorial SQLAlchemy is a popular SQL toolkit and Object Relational Mapper. It is written in Python and gives full power and flexibility of SQL to an application developer. It is an open source understanding of the Python programming language. A basic understanding of relational databases, DB- API, and SQL is desired to understand this tutorial. Copyright & Disclaimer Copyright 2018 by Tutorials Point ........................................................................ 7 5. SQLAlchemy Core – SQL Expressions ......................................................................................0 码力 | 92 页 | 1.77 MB | 1 年前3
Build web application with Golangcommands Go development tools Summary Go basic knowledge Hello, Go Go foundation Control statements and functions struct Object-oriented interface Concurrency Summary Web foundation Web working Validation of inputs Cross site scripting Duplicate submissions File upload Summary Database database/sql interface How to use MySQL How to use SQLite How to use PostgreSQL How to use beedb ORM NOSQL WebSocket REST RPC Summary Security and encryption CSRF attacks Filter inputs XSS attacks SQL injection Password storage Encrypt and decrypt data Summary Internationalization and localization0 码力 | 327 页 | 1.63 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













