* Change sqlx::Any to sqlx::Postgres
* Change sqlx::Any to sqlx::Postgres
* Remove JSONified overrides when sqlx feature is enabled, where it makes sense
* Add num-bigint dep
* Remove generic impl for From<T> for Snowflake
For some reason, this trait bound conflicts with another trait bound from the sqlx-pg-uint crate, even though I personally don't get why.
* Remove num_bigint, adsd sqlx-pg-uint
* swap u64 for PgU64 in some files
* use v0.3.0 of sqlx-pg-uint
* Lots of sqlx-postgres type changes
* Lots of sqlx-postgres type changes
* gwah
* Change repr(i8) to repr(i16) in enums when sqlx feature is enabled, fix sqlx incompatibilities
* impl sqlx::postgres::PgHasArrayType for Snowflake
* Try: derive Type for FriendSourceFlags, GuildFolder
* Try: Derive FromRow, Type for DefaultReaction
* Try: Derive Type for CustomStatus
* Try: Derive Type, FromRow for Tag
* Replace conditional compiling of uNN/PgUNN with conditional compiled type alias
* Fix: Conditional compiling errors and warnings
* Bump: wasm-bindgen* crate versions
- Document that create_domain_connection is unimplemented on Spacebar
- Add Discord connection type
- Change ConnectionType::array() into ConnectionType::vector() - returning a fixed size array is dubious, since it'll likely be expanded. Returning a vector is easier keep up to variable length
- Add ConnectionType::discord_vector() and ConnectionType::spacebar_vector() to return a vector ConnectionTypes available on the respective server backends
- add tests test_modify_user_profile, test_disable_user, test_get_user_note, test_set_user_note, test_get_user_affinities, test_get_guild_affinities, test_get_connections
Note: connections are hard to test, since they require secrets / an external service's account
See spacebarchat/server#1188
A deserialization error was happening with get_user_profile, where pronouns should have been serialized as an empty string, but were instead serialized as null.
* The only thing not added yet is create_domain_connection, because it uses errors in a funky way
adds:
- create_connection_callback
- create_contact_sync_connection
- get_connections
- refresh_connection
- modify_connection
- delete_connection
- get_connection_access_token
- get_connection_subreddits
+ related schema for all those routes, and some supporting types
* Bump sqlx to 0.8.0
* Update sqlx syntax to 0.8.0, change MySql for sqlx:: Any
* Update sqlx syntax to 0.8.0, change MySql for sqlx:: Any
* Modify chorus_macros::SqlxBitflagDerive to use sqlx::Any over sqlx::MySql (broken!)
* Fix: `cannot infer type for type parameter `DB` declared on the trait...`
* Change remaining impls of sqlx traits for MySql to sqlx::Any
* Alter chorus_macros to correctly derive SqlxBitFlag for sqlx::Any
* rustc/clippy>=v1.80.0: Do not warn when encountering cfg(tarpaulin_include)
* Port compare_* methods to sqlx v0.8.0