{"_id":"aoi.mysql","_rev":"46-79385f563142fc3156989545cafca4b5","name":"aoi.mysql","dist-tags":{"latest":"1.1.3-beta"},"versions":{"1.1.0-beta":{"name":"aoi.mysql","version":"1.1.0-beta","license":"ISC","_id":"aoi.mysql@1.1.0-beta","maintainers":[{"name":"st333in","email":"oliveiiraamail@gmail.com"}],"dist":{"shasum":"fa797156d06a3a13ddcc941a933c57663e16081c","tarball":"https://registry.npmjs.org/aoi.mysql/-/aoi.mysql-1.1.0-beta.tgz","fileCount":24,"integrity":"sha512-bN5B0plAyuOmdvAWjK3bpu6wlRA67phlUFOFKVHoZ6kfzcf5NgSMVrKvUfRUqurBdZlSrb6qe8lceOj+fu/NMw==","signatures":[{"sig":"MEUCIE7IprBf2ms3VVM7mqcWKFVvSDyB36IP2fwe+cr/TJWYAiEAyK78BOjBVd3Lmb9PmukhQFZele3au4C4XhX/vRRZioY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55812},"main":"./classes/Database.js","gitHead":"3f1571f75305ede54ba85585eb21458ec6a3d6b0","_npmUser":{"name":"st333in","email":"oliveiiraamail@gmail.com"},"_npmVersion":"10.8.2","description":"Package which brings MySQL support to aoi.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"ora":"^5.4.1","mysql2":"^3.12.0","mongodb":"^6.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aoi.mysql_1.1.0-beta_1735405544258_0.5635415088928746","host":"s3://npm-registry-packages-npm-production"}},"1.1.1-beta":{"name":"aoi.mysql","version":"1.1.1-beta","license":"ISC","_id":"aoi.mysql@1.1.1-beta","maintainers":[{"name":"st333in","email":"oliveiiraamail@gmail.com"}],"dist":{"shasum":"ed549d1f73eaac4d7bcc9c7d481a0dfc95b6e178","tarball":"https://registry.npmjs.org/aoi.mysql/-/aoi.mysql-1.1.1-beta.tgz","fileCount":25,"integrity":"sha512-SoWS8AB3pD9BCrHsAyjeegphFbJQKwNmcug4gan6FH4duMJ8OXXgjJ2p3g2s059mD/VfQqinBipqQJZ2Pk6+MQ==","signatures":[{"sig":"MEUCICw0mqYU3YqO5j2mi3+bQiZNktgZxVC7xf+gIFBVi0VwAiEAmwSwppZN33NH81tvUOWiG+dRb4S89/5KhiuStQoBNGw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61149},"main":"./classes/Database.js","gitHead":"2f2024ab5e4cb5092e55ee388f843255f8d03316","_npmUser":{"name":"st333in","email":"oliveiiraamail@gmail.com"},"_npmVersion":"10.8.2","description":"Package which brings MySQL support to aoi.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"ora":"^5.4.1","mysql2":"^3.12.0","mongodb":"^6.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aoi.mysql_1.1.1-beta_1735408843778_0.9748437036148627","host":"s3://npm-registry-packages-npm-production"}},"1.1.2-beta":{"name":"aoi.mysql","version":"1.1.2-beta","license":"ISC","_id":"aoi.mysql@1.1.2-beta","maintainers":[{"name":"st333in","email":"oliveiiraamail@gmail.com"}],"dist":{"shasum":"80acd919d9f94b7f8af5bb45ea5b1c7abe8f023b","tarball":"https://registry.npmjs.org/aoi.mysql/-/aoi.mysql-1.1.2-beta.tgz","fileCount":26,"integrity":"sha512-4/P/97Gg/5gqCGUfJ2Zvif1pkJKyQTloAiUWAFAiw4c6dpDs4HeTd3mBIF93UpA1/SWIL45mG8woEpOxZDkEMA==","signatures":[{"sig":"MEUCIFG1lS1rhRMSNbQ/oSRIxghXwvLujZBZMxQjoWvtLcUVAiEAk6nj/D6tk2InRLVX2rkB6SjNaMOzEQz+nWb+5bVhpNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68229},"main":"./classes/Database.js","gitHead":"189f1bd17b4f3b577f141f96f9e6462644820743","_npmUser":{"name":"st333in","email":"oliveiiraamail@gmail.com"},"_npmVersion":"10.8.2","description":"Package which brings MySQL support to aoi.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"ora":"^5.4.1","mysql2":"^3.12.0","mongodb":"^6.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aoi.mysql_1.1.2-beta_1735410773350_0.7665855547321017","host":"s3://npm-registry-packages-npm-production"}},"1.1.3-beta":{"name":"aoi.mysql","version":"1.1.3-beta","description":"Package which brings MySQL support to aoi.js","main":"./classes/Database.js","license":"ISC","dependencies":{"mysql2":"^3.12.0","mongodb":"^6.3.0","ora":"^5.4.1"},"_id":"aoi.mysql@1.1.3-beta","gitHead":"2e84b9ff4c8533a04489387a9070b57e438637b3","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-sPyvVVNwRTYDw0NWpFVfCMuRKyP4sPYJnZCA7NdYXovOGW+C1PdKP12D7pZEiK6fH8zJAp7/8LoedkCMl7RwbA==","shasum":"aa0a2b0fe2878bf5228475f5fcf809fc14688c1f","tarball":"https://registry.npmjs.org/aoi.mysql/-/aoi.mysql-1.1.3-beta.tgz","fileCount":28,"unpackedSize":70488,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKDq46sGr0q3TKGLXaf4AXlvQ4SN8bCKe/PZ6g6Wgl/AiEArNUFQV3umEssTJJ2vjTf2jjvETa9aIVGw4JX+lhUDzQ="}]},"_npmUser":{"name":"st333in","email":"oliveiiraamail@gmail.com"},"directories":{},"maintainers":[{"name":"st333in","email":"oliveiiraamail@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aoi.mysql_1.1.3-beta_1735411713753_0.4342240417739194"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-28T17:05:44.257Z","modified":"2024-12-28T18:48:34.122Z","0.0.1":"2024-07-04T09:03:59.407Z","0.0.2":"2024-07-04T11:04:48.164Z","0.0.3":"2024-07-09T02:14:21.649Z","0.0.4":"2024-09-04T14:12:34.657Z","0.0.5":"2024-10-01T08:38:27.732Z","1.0.0":"2024-10-01T09:02:52.741Z","1.0.1":"2024-10-07T13:58:27.189Z","1.0.2":"2024-10-12T09:59:50.512Z","1.0.3":"2024-10-12T10:25:51.871Z","2.0.0":"2024-10-12T13:20:51.218Z","2.0.1":"2024-10-13T03:22:01.222Z","2.0.2":"2024-10-13T07:56:25.241Z","2.0.5":"2024-10-13T14:21:39.899Z","2.0.6-dev.1":"2024-10-14T02:51:10.257Z","2.0.6-dev.5":"2024-10-14T02:53:48.958Z","3.0.0":"2024-10-14T03:58:13.848Z","3.5.0":"2024-11-14T14:13:51.659Z","3.6.0":"2024-11-20T02:44:18.117Z","1.0.0-beta":"2024-12-26T16:32:34.134Z","1.1.0-beta":"2024-12-28T17:05:44.465Z","1.1.1-beta":"2024-12-28T18:00:43.951Z","1.1.2-beta":"2024-12-28T18:32:53.605Z","1.1.3-beta":"2024-12-28T18:48:33.959Z"},"license":"ISC","description":"Package which brings MySQL support to aoi.js","maintainers":[{"name":"st333in","email":"oliveiiraamail@gmail.com"}],"readme":"## aoi.js-mysql\n\n- Easy to use package for the implementation of MySQL (MariaDB) in aoi.js with minimal changes.\n\n### Setup\n\nTo get started with aoi.js-mysql, we have to do a couple things.\n\n- Install the package.\n```bash\nnpm install github:st333in/aoi.mysql\n```\n\n- Update your index.js file.\n\n```js\nconst { AoiClient, LoadCommands } = require(\"aoi.js\");\nconst { Database } = require(\"aoi.mysql\");\n\nconst client = new AoiClient({\n  token: \"DISCORD BOT TOKEN\",\n  prefix: \"DISCORD BOT PREFIX\",\n  intents: [\"Guilds\", \"GuildMessages\", \"GuildMembers\", \"MessageContent\"],\n  events: [\"onInteractionCreate\", \"onMessage\"],\n  disableAoiDB: true // This is important, ensure it's set to true. You can't use both at once.\n});\n\nconst database = new Database(client, {\n  host: \"\", //192.168.256.253 (DON'T PUT PORT HERE)\n  user: \"\", //root \n  password: \"\", //mypassword123\n  database: \"\", //s5_test\n  port: 3306, //If your port is 3306, you can remove this\n  connectionLimit: 20,\n  tables: [\"main\"],\n  autoUpdate: true\n});\n\n//OR\n\nconst database = new Database(client, {\n  url: \"\",  //jdbc:mysql://s5_test:mypassword123@192.168.256.253:3306/s5_test\n  connectionLimit: 20,\n  tables: [\"main\"],\n  autoUpdate: true\n});\n\nclient.variables({\n    variable: \"value\"\n});\n\n// rest of your index.js..\n```\n\n## Transfer aoi.db database\n\nYou can indeed transfer your database!\n\n```js\nconst { AoiClient, LoadCommands } = require(\"aoi.js\");\nconst { Database } = require(\"aoi.mongo\");\n\nconst client = new AoiClient({\n  token: \"DISCORD BOT TOKEN\",\n  prefix: \"DISCORD BOT PREFIX\",\n  intents: [\"Guilds\", \"GuildMessages\", \"GuildMembers\", \"MessageContent\"],\n  events: [\"onInteractionCreate\", \"onMessage\"],\n  disableAoiDB: true // This is important, ensure it's set to true. You can't use both at once.\n});\n\nconst database = new Database(client, {\n  host: \"\", //192.168.256.253 (DON'T PUT PORT HERE)\n  user: \"\", //root \n  password: \"\", //mypassword123\n  database: \"\", //s5_test\n  port: 3306, //If your port is 3306, you can remove this\n  connectionLimit: 20,\n  tables: [\"main\"],\n    convertOldData: {\n      enabled: true,\n      dir: \"./database\"\n    },\n  autoUpdate: true\n});\n\n//OR\n\nconst database = new Database(client, {\n  url: \"\",  //jdbc:mysql://s5_test:mypassword123@192.168.256.253:3306/s5_test\n  connectionLimit: 20,\n  tables: [\"main\"],\n    convertOldData: {\n      enabled: true,\n      dir: \"./database\"\n    },\n  autoUpdate: true\n});\n\nclient.variables({\n    variable: \"value\"\n});\n\n// rest of your index.js..\n```\n\n### Uninstalling\n\naoi.mysql modifies certain functions of aoi.js, however, when you uninstall this package, make sure you reinstall aoi.js so that everything works perfectly. Follow the example below:\n\n```js\nnpm r aoi.mysql\n```\n```js\nnpm i aoi.js\n```\n","readmeFilename":"README.md"}