Skip to content

Instantly share code, notes, and snippets.

@cloose
cloose / oracle-idempotent-ddl.sql
Last active Nov 23, 2021
Idempotent Oracle SQL migrations
View oracle-idempotent-ddl.sql
--
-- create new table
--
declare
table_exists number;
begin
select count(1) into table_exists from USER_TABLES where table_name = 'PRODUCTS';
if (table_exists = 0) then
execute immediate 'create table PRODUCTS (ID number(19) not null ...';
@cloose
cloose / CuteMarkEd-refactoring.md
Last active Aug 29, 2015
CuteMarkEd Refactoring
View CuteMarkEd-refactoring.md

HtmlPreviewGenerator

MarkdownConverter

document = converter->createDocument(text, converterOptions());
QString htmlBody = converter->transformToHtml(document);

RenderRequest