shove70 / database Goto Github PK
View Code? Open in Web Editor NEWLightweight native MySQL/MariaDB & PostgreSQL driver
License: MIT License
Lightweight native MySQL/MariaDB & PostgreSQL driver
License: MIT License
Hi, I currently work on ddbc which supports MySQL (via mysql-native), PostgreSQL (via derelict-pq), SQLite and SQL Server (via etc.c.odbc
). I'd be interested to know if this project will eventually support other databases.
I like using sqlite for testing locally and mysql/postgressql for personal projects but absolutely need MS-SQL / Oracle support to be able to use D for any workplace projects.
With etc.c.odbc
now being removed in feb 2022, I need to find an alternative and I don't really have the time to overhaul ddbc by that date. Is odbc support something you plan to do?
These are initial errors when I tried using your database dub package on the latest dmd compiler.
C:\Users\boqsc\Desktop\database\database_postgresql>dub run
Fetching database 1.1.27 (getting selected version)...
Performing "debug" build using C:\Program Files\LDC 1.28\bin\ldc2.exe for x86_64.
database:postgresql 1.1.27: building configuration "library"...
C:\Users\boqsc\AppData\Local\dub\packages\database-1.1.27\database\postgresql\database\postgresql\socket.d(56,72): Error: variable `core.stdc.errno.EWOULDBLOCK` at C:\Program Files\LDC 1.28\bin\..\import\core\stdc\errno.d(251,10) conflicts with enum member `core.sys.windows.winsock2.EWOULDBLOCK` at C:\Program Files\LDC 1.28\bin\..\import\core\sys\windows\winsock2.d(181,5)
C:\Users\boqsc\AppData\Local\dub\packages\database-1.1.27\database\postgresql\database\postgresql\socket.d(85,72): Error: variable `core.stdc.errno.EWOULDBLOCK` at C:\Program Files\LDC 1.28\bin\..\import\core\stdc\errno.d(251,10) conflicts with enum member `core.sys.windows.winsock2.EWOULDBLOCK` at C:\Program Files\LDC 1.28\bin\..\import\core\sys\windows\winsock2.d(181,5)
C:\Program Files\LDC 1.28\bin\ldc2.exe failed with exit code 1.
This is my setup on Windows operating system:
@ECHO OFF
IF NOT EXIST ".\database_postgresql\" (
mkdir ".\database_postgresql\"
cd ".\database_postgresql\"
dub init --non-interactive
dub add database:postgresql
cmd.exe
)
C:\Users\boqsc\Desktop\database>dub run
Non-optional dependency 'database:postgresql' of 'database' not found in dependency tree!?.
All I did is made a dub run
command after dub add database:postgresql
command.
Whole script of setup for Windows operating systems
@ECHO OFF
IF NOT EXIST ".\database\" (
mkdir ".\database\"
cd ".\database\"
dub init --non-interactive
dub add database:postgresql
cmd.exe
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.