Code Monkey home page Code Monkey logo

roles's People

Contributors

appellation avatar tipaka avatar

Stargazers

 avatar

Watchers

 avatar

roles's Issues

issue

uhm im trying to selfhost it but I get this error while building it

   Compiling roles v0.1.0 (C:\Users\legen\OneDrive\Desktop\Roles-master)
error: `DATABASE_URL` must be set to use query macros
  --> src\commands\config\add.rs:73:3
   |
73 | /   sqlx::query!(
74 | |     r#"
75 | |       INSERT INTO roles VALUES (?, ?, ?, ?)
76 | |       ON CONFLICT (role_id) DO UPDATE SET
...  |
84 | |     p_description
85 | |   )
   | |___^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `DATABASE_URL` must be set to use query macros
  --> src\commands\config\remove.rs:26:26
   |
26 |     let count: Option<_> = sqlx::query!(
   |  __________________________^
27 | |     "DELETE FROM roles WHERE guild_id = ? AND role_id = ? RETURNING *",
28 | |     guild_id,
29 | |     role_id
30 | |   )
   | |___^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `DATABASE_URL` must be set to use query macros
  --> src\commands\roles\select.rs:20:35
   |
20 |     let self_roles: Vec<RoleData> = sqlx::query_as!(
   |  ___________________________________^
21 | |     RoleData,
22 | |     "SELECT role_id, label, description FROM roles WHERE guild_id = ?",
23 | |     guild_id
24 | |   )
   | |___^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `DATABASE_URL` must be set to use query macros
  --> src\commands\roles.rs:28:35
   |
28 |     let self_roles: Vec<RoleData> = sqlx::query_as!(
   |  ___________________________________^
29 | |     RoleData,
30 | |     "SELECT role_id, label, description FROM roles WHERE guild_id = ?",
31 | |     guild_id_string,
32 | |   )
   | |___^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `roles` due to 4 previous errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.