November 07, 2012 Re: Abstract Database Interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to BLM768 | Am Mon, 29 Oct 2012 08:50:19 +0100 schrieb "BLM768" <blm768@gmail.com>: > > > I am working on similar project, named SQLd[1]. If you are interested, we can join forces and work togheder :) > > > > IRC Nick: Robik > > [1]: http://github.com/robik/SQLd > > That might be a good idea. I haven't done much for supporting different databases, so getting more backend support would be quite nice. What might work well is for me to just refactor my code to sit on top of your existing database classes. So far, I've really just been playing around, but if people show enough interest, I'd like to play with the idea a while longer. :) I would use such an ORM library, too. It is definitely worth the effort. Currently I use something that just helps me a bit with fetching and updating entries in tables, but goes in the same direction of using only structs for table rows. Here are some database bindings from wiki4d that others have written: http://mleise.dnsd.info/#DatabaseDrivers Some are for D1 though. But now that you are team you may want to look at those bindings for some inspiration, so you don't get locked in on SQLite3 too much :p -- Marco |
December 23, 2012 Re: Abstract Database Interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to Philippe Sigaud | On 10/31/2012 05:54 PM, Philippe Sigaud wrote: > Timon: > >> From higher to lower, where relational ops are unordered with respect to >> bitwise ops (this is the reason comparisons would have to be wrapped in >> parentheses in D as well): >> >> ! >> => (not a real operator, occurs twice this is binding power to the left) >> . ++ -- ( [ >> ^^ (right-associative) >> & ++ -- * - + ! ~ (prefix) >> * / % >> + - ~ >> << >> >>> >> == != > < >= <= !> !< !>= !<= <> !<> <>= !<>= in !in is !is >> & >> ^ >> | >> && >> || >> ? (right-associative) >> /= &= |= -= += <<= >>= >>>= = *= %= ^= ^^= ~= (right-associative) >> => (not a real operator, occurs twice, this is binding power to the right) >> , >> .. (not a real operator) > > Thanks a lot Timon! > > => is indeed a strange beast. > Any possibility to put that on a wiki page or the dlang.org on > operator overloading? > http://wiki.dlang.org/DWiki:Operator_precedence |
December 24, 2012 Re: Abstract Database Interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr Attachments:
| On Sun, Dec 23, 2012 at 7:37 PM, Timon Gehr <timon.gehr@gmx.ch> wrote:
> On 10/31/2012 05:54 PM, Philippe Sigaud wrote:
>
>>
>>> => is indeed a strange beast.
>> Any possibility to put that on a wiki page or the dlang.org on operator overloading?
>>
>>
> http://wiki.dlang.org/DWiki:**Operator_precedence<http://wiki.dlang.org/DWiki:Operator_precedence>
>
Seems good. I remember levels 6-8 from the online grammar. I guess it feels natural when we use them.
The wiki has a much better appearance, I'll try to participate and fill some parts.
|
December 24, 2012 Re: Abstract Database Interface | ||||
---|---|---|---|---|
| ||||
Posted in reply to Philippe Sigaud | I was kind of shocked to find this thread at the top of the list again; I thought it had died. :) This is a very interesting time for the thread to revive because I was just thinking about the project this morning... Now that my interest has revived a bit, I'm trying to figure out how to get SQLite working on Windows; the only real options I've seen so far are to compile SQLite with DMC or to use GDC instead of DMD. Creating a .lib from sqlite3.dll looks like too much of a pain. I'm also thinking about adding a PosgreSQL driver; I'll probably use code from SQLd for that. |
Copyright © 1999-2021 by the D Language Foundation