1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon skript-db 0.1.1

Sensible SQL support for Skript

Tags:
  1. btk5h
    Supported Minecraft Versions:
    • 1.7, 1.8, 1.9, 1.10, 1.11, 1.12
    What makes skript-db different from other SQL addons?
    • Automatic SQL injection protection
    • Support for connections to multiple databases
    • An amazingly intuitive list variable system for reading query outputs
    Documentation/Source - Releases

    Quickstart
    Code (Skript):
    1. on script load:
    2.   set {sql} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false"
    3.  
    4. command /dbtest:
    5.   trigger:
    6.     execute "select * from table" in {sql} and store the result in {output::*}

Recent Updates

  1. skript-db 0.1.1

Recent Reviews

  1. Revelationage
    Revelationage
    5/5,
    Version: 0.1.1
    Really good for MySQL management. Can you make it to where we can use variables for table names in the syntax?

    ex. set {_table} to "data"
    execute "SELECT * FROM %{_table}%"
    returns <none> every time unfortunately but if you put "data" instead of %{_table}%, it works...
    1. btk5h
      Author's Response
      You can already do this. Just use %unsafe {_table}% instead of %{_table}% to acknowledge that you're sidestepping skript-mirror's SQL injection safety.
  2. iStopcontact
    iStopcontact
    5/5,
    Version: 0.1.1
    Seems good, but can there be a tutorial about like how I can create a SqlCoins system so i can use that for my minecraft server network for a global coins currency thru my bungecord
  3. Spartan9802
    Spartan9802
    5/5,
    Version: 0.1.0
    Very good addon, could you add sqlite support?
    Good job
    1. btk5h
      Author's Response
      skript-db should already support sqlite. You just need to connect using sqlite's jdbc url and drivers
  4. mel_instagibson
    mel_instagibson
    5/5,
    Version: 0.1.0
    Does what its supposed to do. and i love this:

    [the] [last] (sql|db|data(base|[ ]source)) error

    :)