| |
 | Posted by Talha Zekeriya Durmuş (zekeriyadurmus) in reply to Salih Dinçer | Permalink Reply |
|
Talha Zekeriya Durmuş (zekeriyadurmus) 
Posted in reply to Salih Dinçer
| Alıntı (Salih Dinçer):
> MySQL konusunda şuradaki modül daha basit bir kullanım içeriyor: https://github.com/simendsjo/mysqln/
> import vibe.vibe;
> import mysql.db;
> import std.stdio;
>
> void main() {
> auto mdb = new MysqlDB("localhost", "user", "password", "database");
>
> auto c = mdb.lockConnection();
> MetaData md = MetaData(c);
> string[] dbList = md.databases();
>
> foreach(string db; dbList) {
> c.selectDB(db);
> auto curTables = md.tables();
> writefln("Database '%s' has %s table%s.", db, curTables.length,
> curTables.length == 1?"":"s");
> foreach(tbls; curTables) {
> writefln("\t%s", tbls);
> }
> }
> c.close();
> }
> ```
>
çalıştırdım ama hata verdi.
Error 1 Error: module net is in file 'vibe\core\net.d' which cannot be read C:\Users\Zekeriya\documents\visual studio 2012\Projects\test\test\mysql\connection.d 59
vibe.d nin içerisine de baktım orada da bulamadım malesef
--
[ Bu gönderi, <http://ddili.org/forum>'dan dönüştürülmüştür. ]
|