DbLib

DbLib 0.2.3

No permission to download

fromgate

Administrator
Пользователь fromgate разместил новый ресурс:

DbLib - Library that includes ORMlite engine, SQLite and MySQL drivers

DbLib — это библиотека, позволяющая получить простой доступ к базам данных.

Особенности
  • Обеспечивает доступ к самым популярным хранилищам - SQLite и MySQL;
  • Включает в себя популярную библиотеку ORMLite, обеспечивающую возможность доступа к базе данных без использования SQL-запросов;
  • Позволяет организовать единое хранилище для всех плагинов, при этом ни пользователям достаточно будет один раз настроить DbLib, а не настраивать все плагины, работающие с базами...
Узнать больше об этом ресурсе...
 

fromgate

Administrator
fromgate updated DbLib with a new update entry:

Minor changes in config, fixed mysql bug

v0.0.4
  • Minor changes in config. Parameter "MySQL. url" changed to "MySQL.host" (old settings will imported).
  • Fixed connecting to MySQL bug.
v0.0.4
  • Небольшие правки в конфиге. Параметр "MySQL. url" изменился на "MySQL.host". Старая настройка подгрузится автоматически.
  • Исправлена ошибка из-за которой не удавалось создать соединение с MySQL при работе с ORMLite.
Read the rest of this update entry...
 

fromgate

Administrator
What are the Import statements?
Here is example plugin, I think could be useful for you: DbExample


If you working with MySQL (or SQLIte) using JDBC - you will be able to work like it defined in tons for example around the net.

If you going to use ORMLite - you can use method DbLib.getConnectionSource() to obtain default ORMLite connection. DbLib - is singleton, so you can just add DbLib.jar.
 

Andrey

Пользователь
Yes but what are the import statements if I want to use the MySQL part of it?
 

Andrey

Пользователь
Can you help me begin developing plugins for Nukkit? I already know the PocketMine API, I just need to know how to set up IntelliJ for developing plugins, such as what modules and libraries to use. Perhaps you could make a tutorial for people to show them how to set up IntelliJ for Nukkit Plugin Development?
 

M4Gn1T

Developer (Level 2)
Can you help me begin developing plugins for Nukkit? I already know the PocketMine API, I just need to know how to set up IntelliJ for developing plugins, such as what modules and libraries to use. Perhaps you could make a tutorial for people to show them how to set up IntelliJ for Nukkit Plugin Development?
He has already written but it's in Russian (http://nukkit.ru/threads/s-chego-nachat-pervyj-plagin.81/)
 
Last edited:

MrPowerGamerBR

Developer
@fromgate just a FYI

When loading the plugin for the first time, this error happens:

Code:
2016-3-11 18:19:07 [INFO] [DbLib] DbLib 0.0.6 created by fromgate for nukkit.ru
2016-3-11 18:19:07 [ALERT] java.lang.NullPointerException
	at ru.nukkit.dblib.util.Message.getText(Message.java:174)
	at ru.nukkit.dblib.util.Message.log(Message.java:58)
	at ru.nukkit.dblib.DbLibPlugin.initDb(DbLibPlugin.java:37)
	at ru.nukkit.dblib.DbLibPlugin.onEnable(DbLibPlugin.java:31)
	at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:89)
	at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:117)
	at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:452)
	at cn.nukkit.Server.enablePlugin(Server.java:600)
	at cn.nukkit.Server.enablePlugins(Server.java:589)
	at cn.nukkit.Server.reload(Server.java:659)
	at cn.nukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27)
	at cn.nukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151)
	at cn.nukkit.Server.dispatchCommand(Server.java:612)
	at cn.nukkit.command.CommandReader.run(CommandReader.java:66)
This error didn't happen after restarting the server.

Anyway, awesome plugin, I needed it because I wanted to create a economy plugin, but Nukkit doesn't provide the default MySQL drivers, this plugin fixes it :)
 
Top