Category talk:Wren-sql: Difference between revisions

m
→‎Source code (Wren): Now uses Wren S/H lexer.
(Added blurb and source code for new 'Wren-sql' module.)
 
m (→‎Source code (Wren): Now uses Wren S/H lexer.)
 
(3 intermediate revisions by the same user not shown)
Line 14:
 
==Source code (Wren)==
<langsyntaxhighlight ecmascriptlang="wren">/* Module "sql.wren" */
 
/*
Line 212:
foreign remaining
foreign pageCount
}</langsyntaxhighlight>
 
==Source code (C)==
<langsyntaxhighlight lang="c">/* gcc -O3 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_THREADSAFE=0 wren-sql.c -o wren-sql -lsqlite3 -lwren -lm */
 
#include <stdio.h>
Line 222 ⟶ 223:
#include "wren.h"
 
/* Sql functionfunctions */
 
void Sql_errStr(WrenVM* vm) {
Line 919 ⟶ 920:
sqlite3_shutdown();
return 0;
}</langsyntaxhighlight>
9,479

edits