Re: Best SQL library to use with local desktop app

2018-01-04 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-04 15:39, Jacob Carlborg wrote: Looks like the readme is wrong. It should be: rdmd build base swt -m32mscoff I've corrected the readme now. -- /Jacob Carlborg

Re: Best SQL library to use with local desktop app

2018-01-04 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-04 13:48, wakhshti wrote: it is not compiling: C:\Users\wakhshti\Downloads\dwt-master>rdmd base swt -m32mscoff Error: module base is in file 'base.d' which cannot be read import path[0] = . import path[1] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[2] =

Re: Best SQL library to use with local desktop app

2018-01-04 Thread wakhshti via Digitalmars-d
On Thursday, 4 January 2018 at 09:59:08 UTC, Jacob Carlborg wrote: On 2018-01-03 13:14, wakhshti wrote: and also what about a simple GUI library ? (once there was a library named DFL, but i never could get it to run). For a GUI library you can give DWT [1] a try. Works on Linux and Windows

Re: Best SQL library to use with local desktop app

2018-01-04 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-03 13:14, wakhshti wrote: and also what about a simple GUI library ? (once there was a library named DFL, but i never could get it to run). For a GUI library you can give DWT [1] a try. Works on Linux and Windows and is using native drawing operations. [1]

Re: Best SQL library to use with local desktop app

2018-01-03 Thread wakhshti via Digitalmars-d
On Wednesday, 3 January 2018 at 23:51:23 UTC, Craig Dillabaugh wrote: Looks like you are up and running with Adam's stuff, but if you wanted to use the sqlite3 library I would suggest you use 'dub' to do the build as sqlite3 is in code.dlang.org. An example form my own project: dub.sdl

Re: Best SQL library to use with local desktop app

2018-01-03 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 3 January 2018 at 21:12:54 UTC, wakhshti wrote: On Wednesday, 3 January 2018 at 16:38:27 UTC, Craig Dillabaugh wrote: On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote: clip this is main.d content: import std.stdio; import sqlite; void main(string[] args){

Re: Best SQL library to use with local desktop app

2018-01-03 Thread wakhshti via Digitalmars-d
On Wednesday, 3 January 2018 at 20:54:50 UTC, Adam D. Ruppe wrote: These are just for Windows btw (and for that, only 32 bit. if you are building 64 bit that is different, I have never used sqlite on 64 bit windows. but 32 bit is usually good enough anyway) On Linux, you just need to make

Re: Best SQL library to use with local desktop app

2018-01-03 Thread wakhshti via Digitalmars-d
On Wednesday, 3 January 2018 at 20:52:49 UTC, Adam D. Ruppe wrote: That means you didn't link in the module. The way I recommend doing it is listing them all on the command line: dmd yourfile.d database.d sqlite.d or if you put them in an arsd folder (optional) dmd yourfile.d

Re: Best SQL library to use with local desktop app

2018-01-03 Thread wakhshti via Digitalmars-d
On Wednesday, 3 January 2018 at 16:38:27 UTC, Craig Dillabaugh wrote: On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote: what is best (SQLite?) @small @local @offline database library to use in D? and also what about a simple GUI library ? (once there was a library named DFL,

Re: Best SQL library to use with local desktop app

2018-01-03 Thread bauss via Digitalmars-d
On Wednesday, 3 January 2018 at 20:39:59 UTC, wakhshti wrote: On Wednesday, 3 January 2018 at 12:45:51 UTC, Andre Pany wrote: As you proposed SQLite makes sense. My personal preference is the wrapper from Adam you can find here https://github.com/adamdruppe/arsd/blob/master/sqlite.d Do you

Re: Best SQL library to use with local desktop app

2018-01-03 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 3 January 2018 at 19:08:44 UTC, H. S. Teoh wrote: Recently, though, I decided to write my own bindings due to certain design decisions in Adam's sqlite.d that made it a little awkward to use for my particular application. I'm open to extensions and PRs... I don't remember if we

Re: Best SQL library to use with local desktop app

2018-01-03 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 3 January 2018 at 20:39:59 UTC, wakhshti wrote: Error 42: Symbol Undefined _D4arsd6sqlite6Sqlite6__ctorMFAyaiZCQBiQBgQBc That means you didn't link in the module. The way I recommend doing it is listing them all on the command line: dmd yourfile.d database.d sqlite.d or if

Re: Best SQL library to use with local desktop app

2018-01-03 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 3 January 2018 at 20:52:49 UTC, Adam D. Ruppe wrote: Here's the sqlite3.lib and dll too if you don't already have them: These are just for Windows btw (and for that, only 32 bit. if you are building 64 bit that is different, I have never used sqlite on 64 bit windows. but 32

Re: Best SQL library to use with local desktop app

2018-01-03 Thread wakhshti via Digitalmars-d
On Wednesday, 3 January 2018 at 12:45:51 UTC, Andre Pany wrote: As you proposed SQLite makes sense. My personal preference is the wrapper from Adam you can find here https://github.com/adamdruppe/arsd/blob/master/sqlite.d Do you want to run on a specific OS only or should it run on

Re: Best SQL library to use with local desktop app

2018-01-03 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 03, 2018 at 12:14:19PM +, wakhshti via Digitalmars-d wrote: > > what is best (SQLite?) @small @local @offline database library to use > in D? [...] I've been using SQLite for this type of usage, and it's served me pretty well. I've been using Adam Ruppe's SQLite bindings:

Re: Best SQL library to use with local desktop app

2018-01-03 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote: what is best (SQLite?) @small @local @offline database library to use in D? and also what about a simple GUI library ? (once there was a library named DFL, but i never could get it to run). I've used sqlite3 library:

Re: Best SQL library to use with local desktop app

2018-01-03 Thread Andre Pany via Digitalmars-d
On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote: what is best (SQLite?) @small @local @offline database library to use in D? and also what about a simple GUI library ? (once there was a library named DFL, but i never could get it to run). As you proposed SQLite makes sense.

Best SQL library to use with local desktop app

2018-01-03 Thread wakhshti via Digitalmars-d
what is best (SQLite?) @small @local @offline database library to use in D? and also what about a simple GUI library ? (once there was a library named DFL, but i never could get it to run).