Sender | Message | Time |
---|---|---|
18 Apr 2024 | ||
obsoleszenz | had one conflict in diesel_compile_tests/Cargo.lock, basically the version. So kept it at 2.1.5, i guess you bump that when you cut a release? | 18:14:21 |
weiznich | In reply to @obsoleszenz:gitter.imI always forget doing that, but that should not matter. | 18:35:35 |
weiznich | Thanks for opening this Pr. | 18:35:48 |
obsoleszenz | Thank you for all your efforts :) | 18:36:44 |
19 Apr 2024 | ||
@alfaex-5882bad4d73408ce4f44f7f6:gitter.im left the room. | 03:09:48 | |
silence_zhpf | I define a
but when I run the code, it said to me | 08:17:16 |
silence_zhpf | Why? | 08:17:24 |
weiznich | Well that means that no function with that name exists in your database. Did you define it there? | 08:18:31 |
silence_zhpf | In the database, I didn't define it. | 08:19:09 |
silence_zhpf | Do you mean that the method defined in sql_function must have a corresponding definition in the database? | 08:21:08 |
weiznich | Well, then it's not surprising that your database complains that this function is missing. You need to define it there as well.
| 08:21:33 |
silence_zhpf | Ok . I understand it now. Thanks. | 08:23:35 |
silence_zhpf | In reply to @weiznich-55bcb4c20fc9f982beabc3ad:gitter.imI tried one of the sql_function methods, but this one doesn't solve my problem, which one should I try with? | 08:27:33 |
weiznich | Well, maybe try one of the other variants listed there? | 08:28:56 |
weiznich | (sql_function! is not the solution to that problem) | 08:29:08 |
silence_zhpf | But I don't have an idea right now, can you point me in the right direction? | 08:30:31 |
weiznich | I do not have the capacity to guide you step by step through your problems. I suggest that you really sit down and try to read the guide until the end and try to understand how you can apply that what's shown there to your problem. It's explained quite well there and I fear I cannot explain it better in the limited amount of time I can spend on supporting you here. | 08:40:27 |
silence_zhpf | Thanks, I'll ask you again if I come across a specific question | 08:43:03 |
ethanhawthorne joined the room. | 11:49:32 | |
ethanhawthorne | Hi, I'm new to diesel and rust and I'm trying to install the diesel cli on my windows 11 machine with just sqllite. When I install it throws the error ""error: linking with x86_64-w64-mingw32-gcc failed: exit code: 1" with the note "note: ld: cannot find -lsqlite3: No such file or directory". I've tried to fix this by making the sqlite3.dll global but I'm still getting the same error. Where do I put the .dll file to let the install compile? | 12:29:50 |
weiznich | In reply to @ethanhawthorne:gitter.im For diesel-cli there is a For building diesel itself later in your application you might want to add the | 12:36:53 |
ethanhawthorne | I've implemented those changes, it gave me an error about not having a gcc.exe I installed MinGW64 which has gcc.exe and have globalised it on my system, although this has given another error saying that gcc.exe did not execute successfully? Not sure what where to go from here I'm using VS code. Here's cargo.toml. [package] name = "Password_Manager" version = "0.1.0" edition = "2021" [dependencies] rocket = "0.5.0" simple-log = "1.6.0" log = "=0.4.21" diesel = { version = "2.1.6", features= ["sqlite"]} libsqlite3-sys = {version="0.26.0", features= ["bundled"]} [dependencies.rocket_sync_db_pools] version = "0.1.0" features = ["diesel_sqlite_pool"] | 14:10:51 |
weiznich | It’s hard to help you with that as these kind of errors are caused by your environment configuration. You can try the following things:
| 15:42:37 |
20 Apr 2024 | ||
ethanhawthorne | could it be something to do with my target when i run gcc -v this is what I get "Using built-in specs. COLLECT_GCC=C:\MinGW\bin\g++.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe Target: mingw32 Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls Thread model: win32 gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) " Could that be the problem and if so how would I change it? Thanks for the help so far. | 16:30:48 |
21 Apr 2024 | ||
ves joined the room. | 07:35:22 | |
ves left the room. | 07:36:15 | |
ves joined the room. | 07:38:09 | |
22 Apr 2024 | ||
silence_zhpf | I have a type question about the update sql : how can I define the type of the UpdateStatment , I don't know how to define the WhereClause ... | 06:11:04 |
weiznich | That usually means that you cannot define these types as they are considered to be private API. | 06:12:25 |
silence_zhpf | That means I can't define a function to return an
| 06:14:28 |