GitHunt
OP

Asynchronous SQL support for BYOND

Build Status

forthebadge forinfinityandbyond

BSQL

This is a non-blocking SQL library for BYOND games

Building

Install the c++ build chain for your operating system as well as CMake. Remember that you must build the library as x86 (because BYOND)

Windows

  • Install the vcpkg package manager (Example done in powershell)

    • git clone https://github.com/Microsoft/vcpkg
    • cd vcpkg
    • .\bootstrap-vcpkg.bat
    • .\vcpkg.exe integrate install (Accept admin prompt. Must restart shell after this)
  • Install libmariadb with .\vcpkg.exe install libmariadb:x86-windows

  • Option 1: Visual Studio

    • Set up a CMakeSettings.json in the project root with the path to the vcpkg toolchain file
    • Open and build BSQL.sln
  • Option 2: VS Command Line Build Tools (Requires CMake 3.8 or higher)

    • Run cmake -DCMAKE_TOOLCHAIN_FILE=C:/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake path/to/code/root
    • Run C:/path/to/msbuild.exe BSQL.sln

Linux

  • Install the i386 libmariadbclient-dev package for your system. The includes are expected to be in /usr/include/mysql and the libraries in /usr/lib/i386-linux-gnu (See the travis build chain for an example)
  • Generate makefiles with cmake
  • Use make to build

Integrating

To integrate BSQL into your DM project, build it or download a windows release and drop the libmariadb and BSQL binaries in the root of your project folder. Then include the DMAPI (under src/DMAPI) in your project. Only include BSQL.dm and BSQL/includes.dm for maximum future compatibility. Modify the configuration options in BSQL.dm to your needs or create and include seperate config file. Follow the comments in BSQL.dm for further instructions

LICENSE

This project is licensed under the MIT license.

See LICENSE for more details.

Languages

C++53.8%DM26.8%CMake16.9%Shell2.5%

Contributors

MIT License
Created September 11, 2018
Updated September 11, 2018