End of an era - Moves SQL to rustlibs and bins rustg. (#30461)

* Probably my magnum opus tbqh

* Knew I'd forget something

* guh

* Oh we lint for that now. Man I am outta touch.

* oogabooga

* Build Rust library

* library pls

* Build Rust library

* balls to it

* off me

* DOES THIS WORK NOW?

* if this works I am done

* this is a fucking violation

* hopium

* Build Rust library

* Build Rust library

* Fixes a major panic

* Build Rust library

* Sort macros out while I am at it

---------

Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
AffectedArc07
2025-10-28 20:57:23 +00:00
committed by GitHub
co-authored by paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent ae4489cb2f
commit e692356100
29 changed files with 1206 additions and 356 deletions
+1 -1
View File
@@ -373,7 +373,7 @@
if(!SSdbcore.IsConnected())
return
var/num_books = clamp(amount, 1, 50) //you don't need more than 50 random books <3
var/list/sql_params = list("amount" = num_books )
var/list/sql_params = list("amount" = num_books)
var/sql = "SELECT id, author, title, content, summary, rating, primary_category, secondary_category, tertiary_category, ckey, reports FROM library GROUP BY title ORDER BY rand() LIMIT :amount"
var/datum/db_query/query = SSdbcore.NewQuery(sql, sql_params)
if(!query.warn_execute())