TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

C database connection pool library

57 pointsby sovandeover 13 years ago

8 comments

jrmgover 13 years ago
<i>Can I use libzdb in my iOS or Mac OS X app?</i><p><i>Yes[...]</i><p>Except it's GPLed, so it can't be used in any closed-source apps, or any apps that you want to distribute on the App Store, without an explicit exception.<p>If you're not married to the license for philosophical reasons (which I would respect, it's your right), I'd suggest a change to something simple like BSD.<p>This would, of course, allow someone to take your code, change it, and not release their changes, but it would also make it usable to the majority of programmers.
评论 #3662696 未加载
评论 #3662448 未加载
评论 #3662693 未加载
评论 #3662488 未加载
saurikover 13 years ago
FWIW, I went to the website, clicked Documentation, and when nothing changed on the site except the button I started to wonder if the site was offline or my web browser had locked up. Then I clicked another link, noticed my scrollbar changed size, and realized you were updating content below the bottom of my screen due to the unusually enormous header.
评论 #3662422 未加载
yarpaover 13 years ago
Showing example code on the home page is a great idea, having the small thumbnail with the expand icon made it easy to jump in and see what their API looks like. Going to give this library a try soon :)
andrewcookeover 13 years ago
have you considered a varargs call for setting parameters with type codes? so something like<p><pre><code> PreparedStatement_setArgs(p, 's', "a string", 'i', 42, 'f', 3.1415926); </code></pre> would set arguments 1-3. i know it's not "OO", but i have done something similar in an internal lib for work and it's very useful and easy to use.<p>[edit] the number of parameters is assumed equal to the number of '?' in the query. i also have something similar for reading results from the ResultSet, but that required pointers and a count, and was much more likely to lead to errors.
评论 #3662802 未加载
zxoqover 13 years ago
Look good, but does it work on Windows? It's not on the operating system list.<p>If it does, I might very well use this in the future.<p>Edit: Saw it was GPL. Well it looks good at least.
signa11over 13 years ago
i have a <i>fundamental</i> question regarding this: instead of a pool of connections, is it possible to have an event-loop based aysnc-io in place ? this is with little experience with db's...
atjoslinover 13 years ago
Great presentation, and implementation looks good too.
abcd_fover 13 years ago
Good presentation (among other things).