Merge pull request #198 from andre2007/sql

dub.json changes for database modules
This commit is contained in:
Adam D. Ruppe 2019-06-28 08:53:46 -04:00 committed by GitHub
commit 730a5af7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 10 deletions

View File

@ -120,38 +120,46 @@
{
"name": "mysql",
"description": "MySQL client library. Wraps the official C library with my database.d interface.",
"targetType": "sourceLibrary",
"targetType": "library",
"dependencies": {"arsd-official:database_base":"*"},
"libs-posix": ["mysqlclient"],
"libs-windows": ["libmysql"],
"sourceFiles": ["mysql.d"]
"sourceFiles": ["mysql.d"],
"importPaths": ["."],
"dflags": ["-mv=arsd.mysql=mysql.d"]
},
{
"name": "postgres",
"description": "Postgresql client library. Wraps the libpq C library with my database.d interface.",
"targetType": "sourceLibrary",
"targetType": "library",
"dependencies": {"arsd-official:database_base":"*"},
"libs": ["pq"],
"sourceFiles": ["postgres.d"]
"sourceFiles": ["postgres.d"],
"importPaths": ["."],
"dflags": ["-mv=arsd.postgres=postgres.d"]
},
{
"name": "sqlite",
"description": "sqlite wrapper. Wraps the official C library with my database.d interface.",
"targetType": "sourceLibrary",
"targetType": "library",
"dependencies": {"arsd-official:database_base":"*"},
"libs": ["sqlite3"],
"libs-posix": ["dl"],
"sourceFiles": ["sqlite.d"]
"sourceFiles": ["sqlite.d"],
"importPaths": ["."],
"dflags": ["-mv=arsd.sqlite=sqlite.d"]
},
{
"name": "mssql",
"description": "Microsoft SQL Server client library. Wraps the official ODBC library with my database.d interface.",
"targetType": "sourceLibrary",
"targetType": "library",
"dependencies": {"arsd-official:database_base":"*"},
"libs-windows": ["odbc32"],
"sourceFiles": ["mssql.d"]
"sourceFiles": ["mssql.d"],
"importPaths": ["."],
"dflags": ["-mv=arsd.mssql=mssql.d"]
},
{
@ -200,8 +208,10 @@
{
"name": "database_base",
"description": "Basic database interface definitions. Use one (or more) of the drivers like arsd-official:mysql or arsd-official:postgres instead",
"targetType": "sourceLibrary",
"sourceFiles": ["database.d"]
"targetType": "library",
"sourceFiles": ["database.d"],
"importPaths": ["."],
"dflags": ["-mv=arsd.database=database.d"]
}
]
}