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 language v It matches the capabilities of a relational database v Very widely used. You will be able to find all sorts of information about itExample Database Customers id INTEGER PRIMARY KEY name TEXT ing 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 database library0 码力 | 46 页 | 775.02 KB | 6 月前3
Delivering safe C++event in 1ms. • Allocation unpredictability: for example, ban on free store allocation “after the engine starts.” • Termination errors: a library that terminates in case of “unanticipated conditions” being break-ins • Spies (insider attacks) • Spear phishing • Door rattling • Denial of service attacks • SQL injection • Corrupted input/Data • Rule of thumb: always first attack the weakest link Stroustrup resource is something that must be acquired and released after use • E.g., files, memory, locks, database transactions, communication channels, GUI connections, threads • Explicit release is error-prone0 码力 | 74 页 | 2.72 MB | 6 月前3
Performance Matterssearch. gle glegle gle gle gle found 8,000,000 similar images Take a picture Add it to the database Send results Find similar pictures Send it to Ogle The Prototype� � � � � found 8,000,000 ░░░░░░░░░░▓▓▌▐ ▌ ▐█▓░░░░░░░░░░░░░░░░░░░░░░░░░░██▐ ▌█▓▌░░░░░░░░░░░░░░░░░░░░░░░░░░░▓█▐Searching database... found 4 results: catisgumpy.bmp funisawful.bmp catdoesnotlikefun.bmp from_dad.bmp OGLE Speedup Results � � � �gle gle found 8,000,000 similar images Take a picture Add it to the database Send results Find similar pictures Send it to Ogle gle glegle gle found 8,000,000 similar0 码力 | 197 页 | 11.90 MB | 6 月前3
Conan 2.0 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These Release 2.0.17 engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 2.1 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These Release 2.1.0 engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.5 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These of lockfiles. engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.3 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These of lockfiles. engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 748 页 | 4.65 MB | 1 年前3
Conan 2.2 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These of lockfiles. engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 718 页 | 4.46 MB | 1 年前3
Conan 2.4 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These of lockfiles. engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.10 Documentationconsisting in 3 packages: a matrix package, emulating some mathematical library, an engine package emulating some game engine, and a sound32 package, emulating a sound library for some 32bits systems. These Release 2.10.1 engine/1.0 matrix/1.0 sound32/1.0 if arch==x86 We will start by creating the first matrix/1.0 version: $ conan create matrix --version=1.0 Now we can check in the engine folder its recipe: recipe: class Engine(ConanFile): name = "engine" settings = "arch" def requirements(self): self.requires("matrix/[>=1.0 <2.0]") if self.settings.arch == "x86": self.requires("sound32/[>=1.0 <2.0]")0 码力 | 803 页 | 5.02 MB | 10 月前3
共 148 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15













