Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread Vadim Lopatin

On Wednesday, 3 April 2013 at 14:28:37 UTC, Vadim Lopatin wrote:

Hello!

I've started implemetation of ORM in D, with annotations and 
interfaces similar to Hibernate.


As DB abstraction layer I wrote DDBC - library with interface 
similar to JDBC. Only MySQL driver is implemented. PostgreSQL - 
in progress.


Project is hosted on SourceForge: 
https://sourceforge.net/p/hibernated/wiki/HibernateD/ License 
is Boost



...

Look at project wiki and unittests for more info.




Project status update:
PostgreSQL support is added to DDBC and HibernateD.

Does anyone have an idea what to do next?


Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread Rory McGuire
:) nuodb.

On Fri, Apr 12, 2013 at 9:08 AM, Vadim Lopatin coolreader@gmail.comwrote:

 On Wednesday, 3 April 2013 at 14:28:37 UTC, Vadim Lopatin wrote:

 Hello!

 I've started implemetation of ORM in D, with annotations and interfaces
 similar to Hibernate.

 As DB abstraction layer I wrote DDBC - library with interface similar to
 JDBC. Only MySQL driver is implemented. PostgreSQL - in progress.

 Project is hosted on SourceForge: https://sourceforge.net/p/**
 hibernated/wiki/HibernateD/https://sourceforge.net/p/hibernated/wiki/HibernateD/License
  is Boost

  ...

  Look at project wiki and unittests for more info.




 Project status update:
 PostgreSQL support is added to DDBC and HibernateD.

 Does anyone have an idea what to do next?



Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread kdmult

Hi Vadim,


Does anyone have an idea what to do next?


It would be great if you publish the DUB package.
Please refer to http://registry.vibed.org/publish.

There is a hint.
Page http://registry.vibed.org/ lists registered DUB packages. To 
see them you have to register and sign in there. Otherwise, you 
will see some product info page.


Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread kdmult

There is a hint.
Page http://registry.vibed.org/ lists registered DUB packages. 
To see them you have to register and sign in there. Otherwise, 
you will see some product info page.


Oops. It looks fixed. :-)


Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread Vadim Lopatin

On Friday, 12 April 2013 at 09:03:56 UTC, kdmult wrote:

Hi Vadim,


Does anyone have an idea what to do next?


It would be great if you publish the DUB package.
Please refer to http://registry.vibed.org/publish.

There is a hint.
Page http://registry.vibed.org/ lists registered DUB packages. 
To see them you have to register and sign in there. Otherwise, 
you will see some product info page.


Trying to package DDBC.

https://github.com/buggins/ddbc

dub build fails.
It looks like it tries to build application instead of library, 
although I specified targetType: staticLibrary,



Checking dependencies in '/home/lve/src/ddbc'
Building configuration MySQL, build type debug
Running dmd (compile)...
Linking...
/usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_47f_1a5.o): In 
function `main':

src/rt/dmain2.d:(.text.main+0xa): undefined reference to `_Dmain'
/usr/lib/x86_64-linux-gnu/libphobos2.a(thread_1a1_1b8.o): In 
function `_D4core6thread6Thread6__ctorMFZC4core6thread6Thread':
src/core/thread.d:(.text._D4core6thread6Thread6__ctorMFZC4core6thread6Thread+0x26): 
undefined reference to `_tlsend'
src/core/thread.d:(.text._D4core6thread6Thread6__ctorMFZC4core6thread6Thread+0x31): 
undefined reference to `_tlsstart'
/usr/lib/x86_64-linux-gnu/libphobos2.a(deh2_45f_525.o): In 
function `_D2rt4deh213__eh_finddataFPvZPS2rt4deh29FuncTable':


src/core/thread.d:(.text.thread_entryPoint+0xb0): undefined 
reference to `_tlsstart'

collect2: error: ld returned 1 exit status
--- errorlevel 1
Error: no main function specified
Error: Link command failed with exit code 1


{
name: DDBC,
description: DB Connector for D language, similar to JDBC,
authors: [Vadim Lopatin],
homepage: http://sourceforge.net/projects/ddbc;,
license: Boost Software License (BSL 1.0),
dependencies: {
},
targetType: staticLibrary,
configurations: [
{
name: MySQL,
versions: [USE_MYSQL]
},
{
name: SQLite,
versions: [USE_SQLITE],
libs-posix: [sqlite3],
libs-windows: [sqlite3.lib]
},
{
name: PGSQL,
versions: [USE_PGSQL],
libs-posix: [pq],
libs-windows: [libpq.lib]
}
]
}


Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread Vadim Lopatin

Still cannot build library using DUB.

Tried different changes in package.json

dub -v
...
[7F6FC283306F: INF] Running dmd (compile)...
[7F6FC283306F: dbg] dmd -w -g -debug -c -oftemp.o 
-version=USE_MYSQL -I/home/lve/src/ddbc/source 
source/drivers/sha1.d source/drivers/pgsqlddbc.d 
source/drivers/pgsql.d source/drivers/mysqlddbc.d 
source/drivers/mysql.d source/drivers/utils.d 
source/drivers/sqliteddbc.d source/common.d source/core.d

[7F6FC283306F: INF] Linking...
[7F6FC283306F: dbg] dmd -of/tmp/dub/2946988246/libddbc.a 
temp.o
/usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_47f_1a5.o): In 
function `main':



Why does it try to link app executable instead of just link 
library?



package.json:

{
name: DDBC,
description: DB Connector for D language, similar to JDBC,
authors: [Vadim Lopatin],
homepage: http://sourceforge.net/projects/ddbc;,
license: Boost Software License (BSL 1.0),
sourcePaths: [source, source/drivers],
configurations: [
{
name: MySQL,
versions: [USE_MYSQL],
targetType: staticLibrary,
targetPath: bin,
targetName: ddbc,
}
]
}


Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread David
Am 12.04.2013 15:17, schrieb Vadim Lopatin:
 Still cannot build library using DUB.
 
 Tried different changes in package.json
 
 dub -v
 ...
 [7F6FC283306F: INF] Running dmd (compile)...
 [7F6FC283306F: dbg] dmd -w -g -debug -c -oftemp.o
 -version=USE_MYSQL -I/home/lve/src/ddbc/source source/drivers/sha1.d
 source/drivers/pgsqlddbc.d source/drivers/pgsql.d
 source/drivers/mysqlddbc.d source/drivers/mysql.d source/drivers/utils.d
 source/drivers/sqliteddbc.d source/common.d source/core.d
 [7F6FC283306F: INF] Linking...
 [7F6FC283306F: dbg] dmd -of/tmp/dub/2946988246/libddbc.a temp.o
 /usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_47f_1a5.o): In function
 `main':
 
 
 Why does it try to link app executable instead of just link library?
 
 
 package.json:
 
 {
 name: DDBC,
 description: DB Connector for D language, similar to JDBC,
 authors: [Vadim Lopatin],
 homepage: http://sourceforge.net/projects/ddbc;,
 license: Boost Software License (BSL 1.0),
 sourcePaths: [source, source/drivers],
 configurations: [
 {
 name: MySQL,
 versions: [USE_MYSQL],
 targetType: staticLibrary,
 targetPath: bin,
 targetName: ddbc,
 }
 ]
 }

Try to move targetType one level higher?


Re: HibernateD and DDBC - ORM and DB abstraction layer for D

2013-04-12 Thread Vadim Lopatin

On Friday, 12 April 2013 at 13:22:41 UTC, David wrote:

[7F6FC283306F: INF] Linking...
[7F6FC283306F: dbg] dmd 
-of/tmp/dub/2946988246/libddbc.a temp.o




Why does it try to link app executable instead of just link 
library?




Try to move targetType one level higher?


Tried. Doesn't help. Changing of targetType to library instead 
of staticLibrary doesn't help, too.

Link command is always the same:
dmd -of/tmp/dub/2946988246/libddbc.a temp.o


Vote started for std.process

2013-04-12 Thread Jesse Phillips
Go here: 
http://forum.dlang.org/post/mgstnugckomjpvdgp...@forum.dlang.org