Skip to content
GitLab
Explore
Sign in
Yuanle Song
libpyzy
Compare revisions
f06fdac6132f51acf15d52375b971b4c0322c881 to 254fd6d3a427a4221a7303076391574dcca6216a
Commits on Source (2)
move function comment to .h file
· 287003b3
Yuanle Song
authored
Apr 08, 2019
287003b3
update .gitignore file
· 254fd6d3
Yuanle Song
authored
Apr 08, 2019
254fd6d3
Hide whitespace changes
Inline
Side-by-side
src/.gitignore
View file @
254fd6d3
build/
build/
debug/
debug/
release/
release/
zero-pinyin-service/
src/sqlite3_util.c
View file @
254fd6d3
#include
"sqlite3_util.h"
#include
"sqlite3_util.h"
/**
* execute sql on sqlite3 db using sqlite3_exec().
*
* Returns: TRUE on success, FALSE otherwise. if FALSE, errmsg will be printed
* with g_warning().
*/
gboolean
gboolean
sqlite3_exec_simple
(
sqlite3
*
db
,
const
char
*
sql
)
sqlite3_exec_simple
(
sqlite3
*
db
,
const
char
*
sql
)
{
{
...
...
src/sqlite3_util.h
View file @
254fd6d3
...
@@ -9,8 +9,14 @@ extern "C"
...
@@ -9,8 +9,14 @@ extern "C"
{
{
#endif
#endif
/**
* execute sql on sqlite3 db using sqlite3_exec().
*
* Returns: TRUE on success, FALSE otherwise. if FALSE, errmsg will be printed
* with g_warning().
*/
gboolean
sqlite3_exec_simple
(
sqlite3
*
db
,
const
char
*
sql
);
gboolean
sqlite3_exec_simple
(
sqlite3
*
db
,
const
char
*
sql
);
/**
/**
* copy src_dbname to dest_dbname using sqlite3_backup_step().
* copy src_dbname to dest_dbname using sqlite3_backup_step().
*
*
...
...