2016-09-18 ruki
tbox目前支持sqlite3、mysql两种关系型数据库(需要链接对应的libsqlite3.a和libmysql.a),并对其接口进行了封装,使用更加的方便简洁并且只需要换个url,就可以随时切换成其他数据库引擎,而不需要修改接口。 下面先看个简单的例子: ```c /* 初始化一个mysql数据库 * * localhost: 主机名,也可以是ip地址 * type: 数据库的类型,目前支持:mysql 和 sqlite3两种类型 * username: 数据库用户名 * password: 数据库用户密码 * databas 继续阅读 »
2016-09-18 ruki
tbox supports sqlite3 and mysql databases now(depends on libsqlite3.a and libmysql.a) and provides the unified api to access database. We only need pass a given url for connecting and accessing it. A simple example: ```c /* init a mysql database * * mysql database url: * * - "sql://localhost: 继续阅读 »
2016-08-29 ruki
新特性 在xmake.lua中添加原生shell支持,例如:add_ldflags("$(shell pkg-config --libs sqlite3)") 编译windows目标程序,默认默认启用pdb符号文件 在windows上添加调试器支持(vsjitdebugger, ollydbg, windbg ... ) 添加getenv接口到xmake.lua的全局作用域中 添加生成vstudio工程插件(支持:vs2002 - vs2015) 为option添加set_default接口 改进 增强内建变量的处理 支持字符串类型的选项option设置 Bugs修复 修复在linux下检测ld连接器失败,如果没装g++的话 继续阅读 »
2016-08-29 ruki
New features Add native shell support for xmake.lua. .e.g add_ldflags("$(shell pkg-config --libs sqlite3)") Enable pdb symbol files for windows Add debugger support on windows (vsjitdebugger, ollydbg, windbg ... ) Add getenv interface for the global scope of xmake.lua Add plugin for generating vstudio project file (vs 继续阅读 »