Use exception instead return boolean
Sample code as below:
try {
// Do something here, which may throw exception
} catch (MyException& e) {
if (e.getError() == MyExceptionA) {
// Do another normal operation
}
}
JSON(Javascript Object Notation)
make coverage=yes
gcov source_file.cc
, see result with vim source_file.cc.gcov
lcov -c -d ./ -o app.info
and genhtml app.info -o cc_result
For multiple threads program, OS will allocate a stack for every threads.
malloc
for small block memory, address bellow 0x40000000, and extend by brk/sbrkmmap
, address upper 0x40000000.mcheck
mprotect
, set protection on a region of memory. For more see man mprotect
electric-fence
backtrac
libsigsegv
ps -aux |grep -E 'VSZ|2892.*firefox' |grep -v grep
watch -n 5 'ps -aux |grep -E "VSZ|2892.*firefox" |grep -v grep'
DDL
is Data Definition Language (DDL) statements are used to define the database
structure or schema. Some examples:
CREATE - to create table in the database
ALTER - alters the structure of the database
DROP - delete objects from the database
TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed
COMMENT - add comments to the data dictionary
RENAME - rename an object
DML
is Data Manipulation Language (DML) statements are used to managing data
with schema objects. Some examples:
SELECT - retrieve data from the a database
INSERT - insert data into a table
UPDATE - updates existing data within a table
DELETE - deletes all records from a table, the space for the records remain
MERGE - UPSERT operation (insert or update)
CALL - call a PL/SQL or Java subprogram
EXPLAIN PLAN - explain access path to data
LOCK TABLE - control concurrency
DCL
is Data Control Language (DCL) statements.
TCL
is Transaction Control Language (DCL) statements.