profile
viewpoint

blackwolf12333/GriefLog 2

A logging plugin for Bukkit with rollback.

blackwolf12333/BlockProtection 1

An anti-grief plugin for Bukkit.

blackwolf12333/Game 1

Just a simple game with SDL, dunno if I am ever going to finish it

blackwolf12333/SpaceShooter 1

A simple spaceshooter after a tutorial

blackwolf12333/tumbler 1

Tumbler is a D-Bus service for applications to request thumbnails for various URI schemes and MIME types.

blackwolf12333/BlackwolfOS 0

My attempt at writing an operating system

blackwolf12333/cordova-plugin-filepath 0

Resolve native file paths from content URLs for Cordova platforms

blackwolf12333/cordova-plugin-splashscreen 0

Apache Cordova Plugin splashscreen

startedgoogle/argh

started time in 5 days

issue commentlaunchbadge/sqlx

TypeId panic selecting json column from MySQL

@mehcode this error is technically correct because the current json implementation does not work with that specific TypeId, which is the binary JSON format if I understood correctly.

@iris4865 what version of MySQL are you using?

iris4865

comment created time in 8 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha c70f85044e871df82845281e1aa4e7b61700c048

mysql(chrono): support decoding ZERO_DATES mysql: refactor to a generic MysqlZeroDate enum mysql: test MysqlZeroDate

view details

Peter Maatman

commit sha b713d9c826f0bc0b71f8abdfe236fa5253dfe392

mysql(types): Add note about MysqlZeroDate

view details

push time in 13 days

issue commentlaunchbadge/sqlx

fetch_one method not found

@ufoscout I'm guessing that if you know the database type at runtime you could drop a couple of if statements in there where for each database type you get

if database_type == "mysql" {
    sqlx::query::<MySql>("SELECT 10")
}

Something like that?

Or you can change the C type to be Connection<Database = X> instead of Connect and do something with that, I'm really not familiar enough with either rusts type system or your specific use case to judge if this would be better.

On the other hand I think I saw some discussion recently on the discord that switching at runtime will be added to SQLx itself at some point, but I don't remember any specifics.

ufoscout

comment created time in 13 days

pull request commentlaunchbadge/sqlx

mysql(chrono): support decoding ZERO_DATES without panicing

Ideally decoding of date/time values should be implemented only once and reused for the decodes to chrono and time, but I think this PR is big enough as it is. I'll try to implement something so the actual decode/encode is implemented only once, but on a different branch.

blackwolf12333

comment created time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha f0cc6a0a1abe0aaef12c21f30b1c0df0e1a151a3

mysql(chrono): support decoding ZERO_DATES mysql: refactor to a generic MysqlZeroDate enum mysql: test MysqlZeroDate

view details

Peter Maatman

commit sha 29262dc5cfa0a8b72b0eec7d9b49a473f807e053

mysql(types): Add note about MysqlZeroDate

view details

push time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha aa8b417f85080e55e166649c80e4e6092f5dba6c

mysql(types): Add note about MysqlZeroDate

view details

push time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 4ca50b9af2e49c21e9ab1dea112a9ed082b69a57

mysql(chrono): support decoding ZERO_DATES mysql: refactor to a generic MysqlZeroDate enum mysql: test MysqlZeroDate

view details

push time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 0015a8a26ce381a4a11d9fb8ece50ce9a9436877

mysql(chrono): support decoding ZERO_DATES mysql: refactor to a generic MysqlZeroDate enum mysql: test MysqlZeroDate

view details

push time in 13 days

push eventblackwolf12333/sqlx

Daniel Akhterov

commit sha 80d545109b84148d28316edf6388ee1f33883f64

feat: implement `BIT` support in MSSQL

view details

Daniel Akhterov

commit sha 6a26e341fb0af08ab56b7f7510039d6dca94d888

Merge pull request #413 from launchbadge/feature/mssql-bit-support Feature: implement `BIT` support in MSSQL

view details

Daniel Akhterov

commit sha 639e10248e9890a74b86d0efed5af9195a05e264

feat: add boolean support to sqlx-macros/mssql

view details

Austin Bonander

commit sha 1a83f1bdc1cc761f9302b0a737a30d317acb4cf1

fix(format): fix formatting in sqlx-cli/README.md

view details

Austin Bonander

commit sha 37e59f1494e3953e94343d313b2b7028eed01ea1

doc(readme): note requirement of `offline` feature for `cargo sqlx prepare`

view details

Ryan Leckey

commit sha e3adb88ab5a89002367e181b71a29c37c15f6f75

feat: disassociate Type from Decode further and require only Decode for FromRow + Row + Value

view details

Ryan Leckey

commit sha 11e21e201cbf95d8a7b803492adfb70689a4460a

feat: add a name method to TypeInfo

view details

Ryan Leckey

commit sha 5ac7601fe2312716654743dcf34a73ad0d998cc4

docs: extend documentation on Encode/Decode

view details

Ryan Leckey

commit sha aaa475cc3311422f5a90337172ef4d6ffd9b0b23

refactor: move Decode::accepts to Type::compatible

view details

Ryan Leckey

commit sha 6cfe5ac8112ea953f3e23eaf5cf812c230101b07

refactor: tweak type name display to use TypeInfo::name

view details

Ryan Leckey

commit sha 21717b47a07797d849c556cc7ee93fea5b599c87

fix: AsyncStream should use a zero-capacity stream to ensure we run in lock-step

view details

Ryan Leckey

commit sha 8b4ef3f0b8cbc80082db77a786d68077a130488f

docs: add back type module documentation

view details

Peter Maatman

commit sha 90242494a82f65253a47f640db0db8eec90ed26f

test: expose missing trait bounds for Json<Vec<x>>

view details

Ryan Leckey

commit sha 93728a051c746f1ca03f66f4aeac218949e5a974

fix: impl Deserialize for Json for MySQL instead of DeserializeOwned

view details

Ryan Leckey

commit sha e7e2f5b37ae06cedfece37a03b2cc3a345602e37

fix: implement transparent Serialize and Deserialize for Json<_>

view details

Ryan Leckey

commit sha f8dc7284b9a297dca2befa356ff9ae53d1633caa

chore: update dependencies

view details

Ryan Leckey

commit sha d76002e1103cec8a2a4706efe404db45473d14fc

postgres: ignore more messages during execution if they are deemed not relevant

view details

Ryan Leckey

commit sha 4448c0e629a0e47247dd44abd1027dcac258fe7f

feat: add should_flush and only spawn on drop for PoolConnection if we need to flush

view details

Ryan Leckey

commit sha 7c4c1856988ecc2ac2b8892453aeee09c245257f

chore: update dependencies

view details

Ryan Leckey

commit sha 9abdd7e408c03b57e1e85219d57f69033b11e9f9

style: rustfmt

view details

push time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha bb9371196c00fe314b8c4be1bdda44404b6e9582

mysql: Fix decoding of TIME '00:00:00.000000' Fixes #418

view details

push time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 40c5022eb157629a6bf1339b6dea34221c70071c

mysql: Fix decoding of TIME '00:00:00.000000' Fixes #418

view details

push time in 13 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha d005f89b0cd423e146867cde8ab7f431cf68c7a2

mysql: Fix decoding of TIME '00:00:00.000000' Fixes #418

view details

push time in 13 days

issue commentlaunchbadge/sqlx

Cannot deserialize 00:00:00 from MariaDB into time::Time and chrono::NaiveTime

I'm actually sort of surprised this crashes on MariaDB, according to their docs this should have worked. The docs about the encoding differ from the docs on MySQL, which does say something about times with all 0. I'm implementing a fix in https://github.com/launchbadge/sqlx/pull/460

leeola

comment created time in 13 days

PR opened launchbadge/sqlx

mysql: Fix decoding of TIME '00:00:00.000000'

Fixes #418

+13 -1

0 comment

2 changed files

pr created time in 13 days

create barnchblackwolf12333/sqlx

branch : mysql_fix_418

created branch time in 13 days

push eventblackwolf12333/sqlx

Daniel Akhterov

commit sha 80d545109b84148d28316edf6388ee1f33883f64

feat: implement `BIT` support in MSSQL

view details

Daniel Akhterov

commit sha 6a26e341fb0af08ab56b7f7510039d6dca94d888

Merge pull request #413 from launchbadge/feature/mssql-bit-support Feature: implement `BIT` support in MSSQL

view details

Daniel Akhterov

commit sha 639e10248e9890a74b86d0efed5af9195a05e264

feat: add boolean support to sqlx-macros/mssql

view details

Austin Bonander

commit sha 1a83f1bdc1cc761f9302b0a737a30d317acb4cf1

fix(format): fix formatting in sqlx-cli/README.md

view details

Austin Bonander

commit sha 37e59f1494e3953e94343d313b2b7028eed01ea1

doc(readme): note requirement of `offline` feature for `cargo sqlx prepare`

view details

Ryan Leckey

commit sha e3adb88ab5a89002367e181b71a29c37c15f6f75

feat: disassociate Type from Decode further and require only Decode for FromRow + Row + Value

view details

Ryan Leckey

commit sha 11e21e201cbf95d8a7b803492adfb70689a4460a

feat: add a name method to TypeInfo

view details

Ryan Leckey

commit sha 5ac7601fe2312716654743dcf34a73ad0d998cc4

docs: extend documentation on Encode/Decode

view details

Ryan Leckey

commit sha aaa475cc3311422f5a90337172ef4d6ffd9b0b23

refactor: move Decode::accepts to Type::compatible

view details

Ryan Leckey

commit sha 6cfe5ac8112ea953f3e23eaf5cf812c230101b07

refactor: tweak type name display to use TypeInfo::name

view details

Ryan Leckey

commit sha 21717b47a07797d849c556cc7ee93fea5b599c87

fix: AsyncStream should use a zero-capacity stream to ensure we run in lock-step

view details

Ryan Leckey

commit sha 8b4ef3f0b8cbc80082db77a786d68077a130488f

docs: add back type module documentation

view details

Peter Maatman

commit sha 90242494a82f65253a47f640db0db8eec90ed26f

test: expose missing trait bounds for Json<Vec<x>>

view details

Ryan Leckey

commit sha 93728a051c746f1ca03f66f4aeac218949e5a974

fix: impl Deserialize for Json for MySQL instead of DeserializeOwned

view details

Ryan Leckey

commit sha e7e2f5b37ae06cedfece37a03b2cc3a345602e37

fix: implement transparent Serialize and Deserialize for Json<_>

view details

Ryan Leckey

commit sha f8dc7284b9a297dca2befa356ff9ae53d1633caa

chore: update dependencies

view details

Ryan Leckey

commit sha d76002e1103cec8a2a4706efe404db45473d14fc

postgres: ignore more messages during execution if they are deemed not relevant

view details

Ryan Leckey

commit sha 4448c0e629a0e47247dd44abd1027dcac258fe7f

feat: add should_flush and only spawn on drop for PoolConnection if we need to flush

view details

Ryan Leckey

commit sha 7c4c1856988ecc2ac2b8892453aeee09c245257f

chore: update dependencies

view details

Ryan Leckey

commit sha 9abdd7e408c03b57e1e85219d57f69033b11e9f9

style: rustfmt

view details

push time in 13 days

issue commentlaunchbadge/sqlx

fetch_one method not found

Looks like the compiler can't figure out which database you are using from the conn argument. And then I think the only function you have available is execute.

ufoscout

comment created time in 18 days

issue commentlaunchbadge/sqlx

Cannot deserialize 00:00:00 from MariaDB into time::Time and chrono::NaiveTime

I was looking at a similar problem with zero dates panicking on decode in https://github.com/launchbadge/sqlx/pull/376, I can see if I can fix this too.

leeola

comment created time in 20 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha d7184fe2994a283f9d19d157023dbdb2d0df3aa2

test: expose missing trait bounds for Json<Vec<x>>

view details

push time in 25 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 9bc2868a05f244b8398087753d2f314874e66252

test: expose missing trait bounds for Json<Vec<x>>

view details

push time in 25 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 93d7646a7b58d9edc82f77e80de5f355baa75091

test: expose missing trait bounds for Json<Vec<x>>

view details

push time in 25 days

push eventblackwolf12333/sqlx

Peter Maatman

commit sha e3ff3c61abbde77a4fb719b37021f8be3f0cccf8

mysql: test MysqlZeroDate

view details

Peter Maatman

commit sha 6f53aec7ce5d64cc1c89b2cdf9598bbe4ce6282c

mysql: allow zero dates on the connection

view details

push time in a month

push eventblackwolf12333/sqlx

Ryan Leckey

commit sha f755da5afb69a1b9d6e9eef8781cdbb4f60b2279

fix: comment in mysql should say mysql

view details

Ryan Leckey

commit sha 519f6aa597e659d3ba38ba5df5399e89515f10d5

chore: setup MSSQL and DB2 in docker-compose

view details

dignifiedquire

commit sha 9b68eb19efa3b2310fcfc92093268bb75d0b7574

fix(sqlx-macros): update trait definitions

view details

rage311

commit sha a0d1106f90daccf015ac6ea75d6b537a28186bee

Added quotes to listen/unlisten channel names to honor case sensitivity and be consistent with 'listen_all()'

view details

Austin Bonander

commit sha e3dbd58bf27555dc58627220e3d19c0252061118

PgConnection: use more obvious/safer query for `ping()`

view details

Austin Bonander

commit sha bddb2e560f74800875c4ccf14d8f5000da4d79e4

fix(macros): fix macros for Postgres

view details

Austin Bonander

commit sha 80b4e2fca687c8fd781a7afc8fb780232dfa25f3

fix(macros): reintroduce and fix macro tests for MySQL

view details

Austin Bonander

commit sha 0652864315f0a7f43df6585717fbb929126c71a9

fix(macros): reintroduce and fix test for macros in SQLite

view details

Daniel Akhterov

commit sha 1b9ef2b7f299cbd5ebe584efd3f00d7e3a72752e

fix: comment out mssql module

view details

Daniel Akhterov

commit sha 286324766096de33ae8815b78f2dfc773f06bd1e

fix: remove mssql and db2 modules

view details

Ryan Leckey

commit sha 3bc11cea26194a5d05d3449492e57bb7cdc3227b

fix: comment in mysql should say mysql

view details

Ryan Leckey

commit sha 8c42d7fcc0ff1280a98c098ffbb7a605cbf83021

chore: setup MSSQL and DB2 in docker-compose

view details

Ryan Leckey

commit sha 05eb07e7d4e09c63a88500d00444f006805b5b05

feat(mssql): setup the initial boilerplate for MSSQL Co-authored-by: Daniel Akhterov <akhterovd@gmail.com>

view details

Ryan Leckey

commit sha 9a701313bc18bd8b1f45b07a2e8eaf7568c18b0e

feat(mssql): implement enough to get simple queries working Co-authored-by: Daniel Akhterov <akhterovd@gmail.com>

view details

Ryan Leckey

commit sha c64122c03f87f11ba4e30dbd578b3a48ae1326a3

feat(mssql): implement parameterized queries

view details

Ryan Leckey

commit sha 434bfaa76a446a1f99fef01cd6059ba2792146bd

feat(mssql): handle stream flushing

view details

Ryan Leckey

commit sha 2a272bdd59393cf4814544a5400c021534e52ceb

feat(mssql): setup type tests for MSSQL and add support for all the int types

view details

Ryan Leckey

commit sha 28636c1f5dd816845f736dcb2c3422851dbbe918

feat(mssql): add support for string types including a framework for handling non-UTF8 data

view details

Ryan Leckey

commit sha 12c1137d91284203a37fcf6684fce530b3bd45f1

feat(mssql): add support for f32 and f64

view details

Ryan Leckey

commit sha 18ae43aae820eb2dc95e27ebd1a9dcb2449b3a59

test: fix docker-compose file for postgres

view details

push time in a month

push eventblackwolf12333/sqlx

Ryan Leckey

commit sha 65057f0e05ad4a26cbcf98cdee5242982c346010

fix(core): add missing `.await` in try_stream!

view details

Ryan Leckey

commit sha ec1cfc11e6e65ef3b9ef1177660320d157830704

refactor(core): rename try_stream2 to try_stream (after removal of conflicting async-stream package)

view details

Peter Maatman

commit sha 2a5ea2f71b876e8097e16f5edc75ba0f43593f18

mysql: always use column alias when available If a query has a column alias available we should use that name instead of the column name. Fixes #385

view details

Ryan Leckey

commit sha ce4286dff534d10bfe0545b770de00176f6565e8

test(mssql): handle null-safe equality comparison for type test for nulls

view details

Ryan Leckey

commit sha 72ca9036c5ebdaa04f019d9ddc908d606ba992da

fix(mssql): potential stall on re-using connection after an dropped incomplete fetch stream

view details

Ryan Leckey

commit sha 6fcb520ac96e8db6937766e384a1de63c8900552

fix(mssql): emit nvarchar(max) if len is too large

view details

Ryan Leckey

commit sha a2c55b9f31906b22344570f5c7bcb51d0179b27d

fix(mysql): tweak JSON type so it accepts BINARY in addition to CHAR (and make tests pass in MySQL 5.5)

view details

Ryan Leckey

commit sha 8359c01b7643112052bf5afca2918fa36a05746d

fix(sqlite): set a busy timeout to handle SQLITE_BUSY

view details

Ryan Leckey

commit sha ef6afb64d3b5b9c2b1db6994a512a1e2fab9da51

feat(pool): use Connect::Options over &str

view details

Ryan Leckey

commit sha e7d6e67f036b099fbc6e0d5b9e974e12a1d2c586

docs(pool): add some module docs to sqlx::pool

view details

Ryan Leckey

commit sha 1dac0b5c291c9a9fa97a28fa0c6f5bb01aa21650

fix(postgres): invert the type description logic to allow all "simple" type categories closes #379

view details

Ryan Leckey

commit sha 475ed9e1df43f2df96e334aab805357149fd68e6

fix(mariadb): don't append UNSIGNED to the type of timestamp columns

view details

Austin Bonander

commit sha 646823e0931dffb4eedc209bb8c7f2f74e861281

fix(macros): fix derive for Encode

view details

Pirmin Kalberer

commit sha e5a761934404a49edc11a13f4faf248efcf0d30c

Allow queries on virtual tables

view details

Ryan Leckey

commit sha e9a562f89ade258e87db9c07bc757747484c24f3

fix(mysql): handle MySQL sending more or less bytes than we expect for an integer type

view details

Ryan Leckey

commit sha 9ce596d492d6d017edac3bc099fbd630c765552a

test: temporarily remove test against MSSQL 2017 Getting weird errors when trying to run this with docker. We may have better luck setting up a Windows CI runner to handle the majority of MSSQL testing anyway.

view details

Daniel Akhterov

commit sha 98a0de2cfda45b8d088b3313158f2502a8f28b5d

feat: implement `Order` message type

view details

Caio

commit sha d4329e98d4bb75de6ac854029ec9e6f2a79d739f

refactor: prepare to support postgres ranges - Remove Type bound from Encode + Decode which removes the defaults for produces() and accepts(). This allows custom type implementations to be more flexible.

view details

Ryan Leckey

commit sha fedd883d91a47f754ade4236a3c2b86d0fb47d7a

style: rustfmt

view details

Ryan Leckey

commit sha c9f3e1adca9637818561bd4a786bde7de1245d3c

feat(postgres): add support for built-in range types and allow derives to handle custom range types Co-authored-by: Caio <c410.f3r@gmail.com>

view details

push time in a month

startedsickcodes/Docker-OSX

started time in a month

create barnchblackwolf12333/sqlx

branch : json_bug

created branch time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 2677046a3b5f45d781722815e0ebc46b0824fb6f

test: add test case for fetch_all bug with pool

view details

Ryan Leckey

commit sha e1d22a1840c07e0bbdd97791fc4993413e151384

fix(core): async-stream crate seems to lose the stream if the stream owns the object we are streaming hand-rolled a copy of the idea behind AsyncStream and things seem to work

view details

push time in a month

push eventblackwolf12333/rust_sqlx_bug

Peter Maatman

commit sha e2b9f5e6861c85de3759aaeaa25dc3851b483922

json vec string bug

view details

push time in a month

issue closedlaunchbadge/sqlx

fetch_all only fetches one result on master (0.4.0-pre)

Using query_as!(Customer, "SELECT name FROM customers").fetch_all(&pool).await? I would expect to get a list of customers with a length of the number of rows in the customers table. However I observe that there is only one customer in the returned Vec.

You can reuse the reproduction repository from #385 here.

If you just rename the customer_name field to name and in the select instead of customer.name just do name you will be able to observe that only 1 customer is printed while you should expect 2. Since the setup data provided inserts 2 customers.

This was only tested on a MySQL server 8.0.19. Using the tokio runtime.

closed time in a month

blackwolf12333

issue commentlaunchbadge/sqlx

fetch_all only fetches one result on master (0.4.0-pre)

This is fixed since https://github.com/launchbadge/sqlx/commit/e1d22a1840c07e0bbdd97791fc4993413e151384

blackwolf12333

comment created time in a month

push eventblackwolf12333/sqlx

Ryan Leckey

commit sha c37cc9960dc6f07202a99ef0206a3d00cc853009

test: add remaining databases to core workflow

view details

Ryan Leckey

commit sha a0ccc135aa80eb6ad0ba5e214b361369c6dc6b43

style(mssql): rename MsSql to Mssql as MSSQL is not written MsSQL

view details

Ryan Leckey

commit sha 6497d67b6ac18f9abcbe50a5b048686a5ada4198

feat(mssql): add macro support

view details

Ryan Leckey

commit sha f2885f84a7b79c1547c0c4d0f8786353d2cfd026

fix(mssql): handle NULL values

view details

Ryan Leckey

commit sha 9a7401a427bd2928fd152ad24193a3c93006c123

chore: update dependencies

view details

Ryan Leckey

commit sha 923c7aa18e6da0c6b9ea5f18b62c048b7457a21e

test: fix sqlite configuration

view details

Ryan Leckey

commit sha b46215eca83bb65eb28653de53a9886f192aec48

test: matrix for mssql should be named mssql

view details

Ryan Leckey

commit sha e001815a18ba2939a2844fcb33013de9f71dc3e6

test: fix non-repeatable postgres macro test

view details

Ryan Leckey

commit sha 70e224327ab3824acee283cee4368b2d0176db8e

test: fix yaml indents

view details

Ryan Leckey

commit sha 0039fcc1670ce7f56de600dc3186033825407d9b

test: mysql port is 3306

view details

Ryan Leckey

commit sha e54d030381da5e2629b100c0b11b4a2d11245f2f

fix(mysql): str should produce VARCHAR not BLOB

view details

Peter Maatman

commit sha 1d6c922429dd685d8b6a49264ea6980d5f52ee0f

mysql: always use column alias when available If a query has a column alias available we should use that name instead of the column name. Fixes #385

view details

push time in a month

push eventblackwolf12333/sqlx

Ryan Leckey

commit sha c37cc9960dc6f07202a99ef0206a3d00cc853009

test: add remaining databases to core workflow

view details

Ryan Leckey

commit sha a0ccc135aa80eb6ad0ba5e214b361369c6dc6b43

style(mssql): rename MsSql to Mssql as MSSQL is not written MsSQL

view details

Ryan Leckey

commit sha 6497d67b6ac18f9abcbe50a5b048686a5ada4198

feat(mssql): add macro support

view details

Ryan Leckey

commit sha f2885f84a7b79c1547c0c4d0f8786353d2cfd026

fix(mssql): handle NULL values

view details

Ryan Leckey

commit sha 9a7401a427bd2928fd152ad24193a3c93006c123

chore: update dependencies

view details

Ryan Leckey

commit sha 923c7aa18e6da0c6b9ea5f18b62c048b7457a21e

test: fix sqlite configuration

view details

Ryan Leckey

commit sha b46215eca83bb65eb28653de53a9886f192aec48

test: matrix for mssql should be named mssql

view details

Ryan Leckey

commit sha e001815a18ba2939a2844fcb33013de9f71dc3e6

test: fix non-repeatable postgres macro test

view details

Ryan Leckey

commit sha 70e224327ab3824acee283cee4368b2d0176db8e

test: fix yaml indents

view details

Ryan Leckey

commit sha 0039fcc1670ce7f56de600dc3186033825407d9b

test: mysql port is 3306

view details

Ryan Leckey

commit sha e54d030381da5e2629b100c0b11b4a2d11245f2f

fix(mysql): str should produce VARCHAR not BLOB

view details

push time in a month

issue commentlaunchbadge/sqlx

fetch_all only fetches one result on master (0.4.0-pre)

It looks like it has to do with the Pool. I created a branch with a test case for mysql which can be run with cargo test --no-default-features --features=mysql,runtime-tokio,chrono,macros --t est mysql, the branch can be found here https://github.com/blackwolf12333/sqlx/tree/fetch_all_bug.

blackwolf12333

comment created time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha e73d03646dc5828a4ebf31d77f7f244a4616b5d5

test: add test case for fetch_all bug with pool

view details

push time in a month

create barnchblackwolf12333/sqlx

branch : fetch_all_bug

created branch time in a month

pull request commentlaunchbadge/sqlx

mysql: always use column alias when available

Added a small test case :)

blackwolf12333

comment created time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 3007c7ade36e0f1da019c5fb2b793928c64fc0b4

mysql: always use column alias when available If a query has a column alias available we should use that name instead of the column name. Fixes #385

view details

push time in a month

issue commentlaunchbadge/sqlx

fetch_all only fetches one result on master (0.4.0-pre)

Yes it does. I've been sprinkling the mysql connection executor with printlns. But at some point the loop I expected to continue just doesn't and I end up with the println in the test program. But the interesting thing is that I put printlns at the points where that loop is supposed to end (break/return), but those also don't show up.

As far as I can tell any of the code after the yield in the executors run loop never happens.

blackwolf12333

comment created time in a month

Pull request review commentlaunchbadge/sqlx

mysql: always use column alias when available

 impl<'c> Executor<'c> for &'c mut MySqlConnection {                 for _ in 0..(ok.columns as usize) {                     let def: ColumnDefinition = self.stream.recv().await?;                     let ty = MySqlTypeInfo::from_column(&def);-                    let name = def.name()?;+                    let name = def.alias()?;

Fixed :)

blackwolf12333

comment created time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha d40e953d7e968ca822f6bafa881a01862cabc131

mysql: always use column alias when available If a query has a column alias available we should use that name instead of the column name. Fixes #385

view details

push time in a month

push eventblackwolf12333/rust_sqlx_bug

Peter Maatman

commit sha 7c5720a43e1de8dc905f34b4f86f7c366aeae65f

Initial commit

view details

push time in a month

push eventblackwolf12333/rust_sqlx_bug

Peter Maatman

commit sha 2abae0736cc2d8f204b3a2fbe34f3e176f4bc7d8

Initial commit

view details

push time in a month

PR opened launchbadge/sqlx

mysql: always use column alias when available

If a query has a column alias available we should use that name instead of the column name.

Fixes #385

+2 -2

0 comment

1 changed file

pr created time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha f3d8667911e6eed808261013ae80acf35144f14d

mysql: always use column alias when available If a query has a column alias available we should use that name instead of the column name. Fixes #385

view details

push time in a month

create barnchblackwolf12333/sqlx

branch : use_correct_column_alias

created branch time in a month

issue openedlaunchbadge/sqlx

fetch_all only fetches one result on master (0.4.0-pre)

Using query_as!(Customer, "SELECT name FROM customers").fetch_all(&pool).await? I would expect to get a list of customers with a length of the number of rows in the customers table. However I observe that there is only one customer in the returned Vec.

You can reuse the reproduction repository from #385 here.

If you just rename the customer_name field to name and in the select instead of customer.name just do name you will be able to observe that only 1 customer is printed while you should expect 2. Since the setup data provided inserts 2 customers.

created time in a month

create barnchblackwolf12333/rust_sqlx_bug

branch : master

created branch time in a month

created repositoryblackwolf12333/rust_sqlx_bug

created time in a month

issue openedlaunchbadge/sqlx

query_as macro does not use column alias

On master (0.4.0-pre) if you do a query like

query_as!(Customer, "SELECT customer.name AS customer_name FROM customer;")

With a struct Customer that contains the field customer_name, compilation fails because it seems to look for the name column in the struct instead of customer_name.

created time in a month

push eventblackwolf12333/sqlx

Hasan Ali

commit sha 3e2ed00b60c98c90e4821c8b85ca54b8552d666a

Drop all statements before closing sqlite connection

view details

Peter Maatman

commit sha 4122a3dbd9c7b7f30baa56fb31be7636fc03ce02

mysql: Advance buffer to comply with protocol Fixes #254

view details

Austin Bonander

commit sha a7d039931c4a4dacaa000f3f008656c332304881

fix UI tests looks like the `.stderr` file for a SQLite UI test never got added, and notes on errors in other tests changed slightly

view details

Austin Bonander

commit sha c285e2867069ef967da4a8cd3e381012c0f34414

fix and test handling of 0 for BigDecimal in Postgres/MySQL closes #283

view details

Walther Chen

commit sha c9c82b06c13e0d0457ceee30e7f677dfaad46860

readme example typo I believe `.build()` takes `&str`, but `env:var()` returns ` Result<String, VarError>`

view details

Milan Zivkovic

commit sha 3edf84ae3dab7e631d53d73e5ea0c3eac560cbdf

Todo API example using Actix-web and SQLx with PostgreSQL database

view details

Milan Zivkovic

commit sha a034df87c446ce1993b6dd7602333cd1a4d60894

fix issue with project name

view details

meh

commit sha 7b1cc7fd09f439baac561e15b66feed63a9c5f16

Derive Serialize and Deserialize for Json

view details

Ryan Leckey

commit sha cbccd68963f6968ab939e8c7ad70d506bf1587bc

chore: prepare v0.3.5

view details

PumpkinSeed

commit sha 19edb73ffc195ee16aef92a8c388d82c9a8d1ab9

Add meaningful errors

view details

吴翱翔

commit sha 77cdafe08a11afee2bf72e85afecd7317f6671df

Fix a misspelling in MySQL types document

view details

Blaine Bublitz

commit sha 33915ae3ad08f5b5beb064ae77e88fac000c65a2

Add uppercase support for Type macro

view details

Blaine Bublitz

commit sha 168ce9bed0789e9eb7f9d09ece774332cecd5cc6

Attempt to add integration tests

view details

Blaine Bublitz

commit sha 7283e690ffa5a7a97fe6d6a1dbf994d56422a2b8

rustfmt

view details

Blaine Bublitz

commit sha e5b6754ac622ca9c683c71d440c140fa3155b0d2

fix failures

view details

Blaine Bublitz

commit sha 84f4ab57996608b4874e4b3713c755dfbdaa6472

Attempt to fix copy-paste errors

view details

Blaine Bublitz

commit sha 2ffbe2f06ec3e8792a9394686f8756aafeb6de2f

More copy-paste errors

view details

Blaine Bublitz

commit sha 03ba5ca4340d648564981c8adbc0fd88376d1d7e

I think postgres needs this

view details

Blaine Bublitz

commit sha 28c639fd84676dc51dbef72f263bc1045b581b0d

Seems like postgres needs tests like this

view details

Jesper Axelsson

commit sha 4681285fe17c7d2a608724fc6c751f24168ad4bc

Add support for mysql

view details

push time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 7e56981d879a55e745460e5bce839ea1d1bc1878

wip: Option overlap error

view details

push time in a month

PR opened launchbadge/sqlx

mysql(chrono): support decoding ZERO_DATES without panicing

I forgot to pull from upstream until the very last moment, so I hope I didn't mess anything up while fixing merge conflicts. But it's all still building and the tests still pass so I should be good.

I'm not entirely sure if this is what you had in mind when we discussed this on discord, let me know if I should change anything. I'll try to add something similar for the time feature too.

+89 -6

0 comment

1 changed file

pr created time in a month

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 10c5f172d98259f147e9c65c96efc69d02dc1ff0

mysql: support decoding ZERO_DATES

view details

push time in a month

push eventblackwolf12333/sqlx

Hasan Ali

commit sha 3e2ed00b60c98c90e4821c8b85ca54b8552d666a

Drop all statements before closing sqlite connection

view details

Peter Maatman

commit sha 4122a3dbd9c7b7f30baa56fb31be7636fc03ce02

mysql: Advance buffer to comply with protocol Fixes #254

view details

Austin Bonander

commit sha a7d039931c4a4dacaa000f3f008656c332304881

fix UI tests looks like the `.stderr` file for a SQLite UI test never got added, and notes on errors in other tests changed slightly

view details

Austin Bonander

commit sha c285e2867069ef967da4a8cd3e381012c0f34414

fix and test handling of 0 for BigDecimal in Postgres/MySQL closes #283

view details

Walther Chen

commit sha c9c82b06c13e0d0457ceee30e7f677dfaad46860

readme example typo I believe `.build()` takes `&str`, but `env:var()` returns ` Result<String, VarError>`

view details

Milan Zivkovic

commit sha 3edf84ae3dab7e631d53d73e5ea0c3eac560cbdf

Todo API example using Actix-web and SQLx with PostgreSQL database

view details

Milan Zivkovic

commit sha a034df87c446ce1993b6dd7602333cd1a4d60894

fix issue with project name

view details

meh

commit sha 7b1cc7fd09f439baac561e15b66feed63a9c5f16

Derive Serialize and Deserialize for Json

view details

Ryan Leckey

commit sha cbccd68963f6968ab939e8c7ad70d506bf1587bc

chore: prepare v0.3.5

view details

PumpkinSeed

commit sha 19edb73ffc195ee16aef92a8c388d82c9a8d1ab9

Add meaningful errors

view details

吴翱翔

commit sha 77cdafe08a11afee2bf72e85afecd7317f6671df

Fix a misspelling in MySQL types document

view details

Blaine Bublitz

commit sha 33915ae3ad08f5b5beb064ae77e88fac000c65a2

Add uppercase support for Type macro

view details

Blaine Bublitz

commit sha 168ce9bed0789e9eb7f9d09ece774332cecd5cc6

Attempt to add integration tests

view details

Blaine Bublitz

commit sha 7283e690ffa5a7a97fe6d6a1dbf994d56422a2b8

rustfmt

view details

Blaine Bublitz

commit sha e5b6754ac622ca9c683c71d440c140fa3155b0d2

fix failures

view details

Blaine Bublitz

commit sha 84f4ab57996608b4874e4b3713c755dfbdaa6472

Attempt to fix copy-paste errors

view details

Blaine Bublitz

commit sha 2ffbe2f06ec3e8792a9394686f8756aafeb6de2f

More copy-paste errors

view details

Blaine Bublitz

commit sha 03ba5ca4340d648564981c8adbc0fd88376d1d7e

I think postgres needs this

view details

Blaine Bublitz

commit sha 28c639fd84676dc51dbef72f263bc1045b581b0d

Seems like postgres needs tests like this

view details

Jesper Axelsson

commit sha 4681285fe17c7d2a608724fc6c751f24168ad4bc

Add support for mysql

view details

push time in a month

create barnchblackwolf12333/sqlx

branch : mysql_zero_dates

created branch time in a month

delete branch blackwolf12333/sqlx

delete branch : mysql_fix_254

delete time in 2 months

PR opened launchbadge/sqlx

mysql: Advance buffer to comply with protocol

Fixes #254

+1 -1

0 comment

1 changed file

pr created time in 3 months

create barnchblackwolf12333/sqlx

branch : mysql_fix_254

created branch time in 3 months

push eventblackwolf12333/sqlx

Felix Wiedemann

commit sha 49f15713d6d6337139dbd730cdffa0df25120546

Move empty host handling to the DB specific code

view details

Felix Wiedemann

commit sha 5628658d3f8d4441691cd20cc16e10c387b127c1

postgres: Add unix domain socket support

view details

Felix Wiedemann

commit sha fc78f15ebf7e575e03404126360f3e193e4085e9

postgres: Add support for non-default socket paths

view details

Felix Wiedemann

commit sha a2673f788034574829c146a93c39cdb0f043bb8e

postgres: Add support for `postgres:///?host=...` connection strings

view details

Felix Wiedemann

commit sha f3fe41ebdb0c1bfa2b02b87e6cefbbf30be776b8

postgres: Use username as default for database name

view details

Felix Wiedemann

commit sha 57f52ffbc49c1a0660d8631c55348bfe1029e2c1

postgres: Use $USER as default for the username

view details

Peter Maatman

commit sha 30d13174ea4393e6a0f1c27a7632caf665177f62

mysql: Add JSON support

view details

Peter Maatman

commit sha 1b04829c46078f3ffd5daaefb9eb543b6f47555d

json: Refactor Encode/Decode for serde values to be generic for DB Since the implementation of Encode and Decode for both mysql and postgres on serde's Value and RawValue were practically the same they were moved to the generic json module.

view details

Ryan Leckey

commit sha 1cdfb8507cab56d019b94094962529032996de8c

fix: remove the `clone` on Encode for JsonValue

view details

Josh Holmer

commit sha f73149a90fdd15ae9fca99dd569a69251336e3f9

Format SQL queries when printing them to the logs Before, the query would be formatted equivalent to the input string: ``` [2020-04-18T23:47:32Z DEBUG sqlx_core::postgres::executor] SELECT id, queue, ..., elapsed: 2.320µs SELECT id, queue, payload, status, priority, created_at, updated_at FROM jobs WHERE status = $1 ORDER BY priority ASC, created_at ASC ``` After, the query is formatted cleanly and consistently: ``` [2020-04-19T00:30:18Z DEBUG sqlx_core::postgres::executor] SELECT id, queue, ..., elapsed: 2.280µs SELECT id, queue, payload, status, priority, created_at, updated_at FROM jobs WHERE status = $1 ORDER BY priority ASC, created_at ASC ``` This uses the `sqlformat` crate, which was ported from the Javascript `sql-formatter-plus` library specifically for this purpose.

view details

Jesper Axelsson

commit sha ccf630fa62a4929d8fe53edaf081f022f4c5e5b8

Use sqlite connection to create database

view details

Jesper Axelsson

commit sha c58b15ce83b63a031666ad5fae71fbb713c80d81

Add mysql as default feature

view details

Jesper Axelsson

commit sha 70654ff2dbc0bc2d8facab7be5a11d55e4afcf18

Use text instead of varchar

view details

Jesper Axelsson

commit sha f491198891d31143f0188da9d3ac66defd85bfa9

List migrations

view details

Jesper Axelsson

commit sha 38892c10126d41db0385ca73fe41afc7bad04a83

Use dialoger for prompt

view details

Josh Holmer

commit sha 627d8292f8e99c9abfe1c67cf2f86f23dcbc3121

Log queries from sqlx::query This will make logged queries show as from `sqlx::query` instead of `sqlx::db_name::executor`. Followup to #268

view details

Josh Holmer

commit sha 581bcf0ceb3e9f512fb2189aa40c1e6940020dc1

Extract slow query threshold to constant

view details

Dan B

commit sha e7c148600537ec7ffcb2fc2e283272fb9dfd8043

Add support for crate specific .env files This change will attempt to load an .env file from CARGO_MANIFEST_DIR, if it exists. For backwards compatibility, if the .env file does not exist, we will fall back to default dotenv behaviour. Resolves #267

view details

push time in 3 months

delete branch blackwolf12333/sqlx

delete branch : mysql_json

delete time in 3 months

pull request commentlaunchbadge/sqlx

mysql: Add JSON support

Oh that's great that you could get rid of the clone!

blackwolf12333

comment created time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha c96de85dccb09cb6064bb1151845415058bb9cc9

json: Refactor Encode/Decode for serde values to be generic for DB Since the implementation of Encode and Decode for both mysql and postgres on serde's Value and RawValue were practically the same they were moved to the generic json module.

view details

push time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 0f408d6fdb1df1db2db8fc9c7b69afdad394d7ff

json: Refactor Encode/Decode for serde values to be database agnostic Since the implementation of Encode and Decode for both mysql and postgres on serde's Value and RawValue were practically the same they were moved to the generic json module.

view details

push time in 3 months

push eventblackwolf12333/sqlx

Jesper Axelsson

commit sha c3cc146e7c7be507b14f181d7730802a29ffded6

Update README.md

view details

meh

commit sha bfc52ca2f409b37e9cfc3d0e7fd489639a055cd8

Add query_unchecked and query_file_unchecked macros

view details

meh

commit sha 2fb38dd0c12a253a64251e4a5351fb3675491bd6

Derive all traits and impl Deref and AsRef for types::Json

view details

Josh Holmer

commit sha 8b78680d9cf3846e2993df2d9e378ad133c31e84

Add snake_case rename support for Type macro I encountered a use case while converting a project from Diesel to sqlx, where I had a custom Postgres enum which included a snake case field name: ```rust pub enum JobStatus { NotRun, Finished, Failed, } ``` Which translates to: ```sql CREATE TYPE job_status AS ENUM ('not_run', 'finished', 'failed'); ``` This is likely to be a semi-common use case, so this commit adds snake case support for enums via the `#[sqlx(rename_all = "snake_case")]` attribute.

view details

Samani G. Gikandi

commit sha 7038dd8ab20cc77ff13a2a8dd22386a8db550077

Refactors `realworld` example with multi DB support **General** * Moves `examples/postgres/realworld` to `examples/realworld` * The app is now architected to support multiple DBs * Adds feature flags for `sqlite` and `postgres` to allow user to choose which backend to use *NOTE* Currently it is not possible to compile with `postgres` and `sqlite` enabled as we are using the `query!` and `query_as!` macros and they seem to get unhappy. * Adds CLI flags for picking the DB backend to use at runtime * Adds schema file and implementation for SQLite for `/api/user` routes * Adds stub routes and trait for articles and Articles entity **Changes** * We now use i32 instead of i64 as the user_id to get around some quirks w/ the SQLite driver. * Reimplements existing route handlers w/ an error handling shim so we can use Try inside the biz logic * *FIX* Adds a `user` key to the register user body to conform w/ realworld's API specs APIs were functionally tested using realworld's API test script (https://github.com/gothinkster/realworld/tree/master/api#authentication)

view details

Samani G. Gikandi

commit sha 8138a26b61328245733360ac7c9424a0677c473d

Finishes realworld example implementation * Adds tables for storing articles, tags, favorites, and comments. * Implements all remaining web APIs (articles, tags, profiles, etc) * Refactors `Provide` traits into * `ProvideAuthn` is used to store/retrieve user info * `ProvideData` is used to retrieve application data * ` Provide` traits are now implemented on Connections instead of Pools * Introduces `Db` trait that encapsulates DB connections * Cleans up endpoint functions

view details

Samani G. Gikandi

commit sha 9fb523d4e8694d9798f8a4fc4f942e6af2c14953

Runs rustfmt across realworld

view details

Samani G. Gikandi

commit sha 841d9a7f45220add4cbd8d7db171f5728e958585

Changes PKs in realworld postgres to `SERIAL` `GENERATED` was added in Postgres 12 and we test as far back as 9

view details

Samani G. Gikandi

commit sha 45744e8033cdbea7cc051ad0f7c866362454015f

Updates CI workflow for realworld * Moves realworld into a separate file since it's long * Adds checkout, db provisioning, and build steps for postgres and sqlite

view details

George Kaplan

commit sha 7df6d4dbcfb3eddb2857bd4f9553d682d8f33b56

undo URL percent-encoding for SQLite connection strings

view details

Josh Holmer

commit sha 16229fd0ad85fb1fe3eac1dbc2d30d491319c3c2

Add basic query logging Prints each query performed at DEBUG level, along with a timing of how long the query took to execute. Slow queries will be printed at WARN level. Currently the slow query threshold is hardcoded to 1 second.

view details

Ryan Leckey

commit sha 230eeef94027c784316535a1c416cf020446a778

Merge branch 'snake-case-support' of git://github.com/shssoichiro/sqlx into shssoichiro-snake-case-support

view details

Ryan Leckey

commit sha 145218f116b9c4df815fe24c61ef2120941ffd28

Merge branch 'shssoichiro-snake-case-support'

view details

Jesper Axelsson

commit sha 36301f66985b7dddfce66cb3ef414d55a633c4cd

Started to abstract the postgres database

view details

Jesper Axelsson

commit sha 5295389fdfa78605b36d321908d08818ea12cd4a

Setup features

view details

Jesper Axelsson

commit sha 42213b993784be530f371c1b0a7d593ba31cbcc5

Add feature check for database

view details

Jesper Axelsson

commit sha 93135c51f4d6609dbea9c6f8d7bd1a29d5910771

Start supporting more databases

view details

Jesper Axelsson

commit sha b20c6a2e094123f4656e3fddcafd6010800cbb86

Move migration code to their own files

view details

Jesper Axelsson

commit sha 961ade18d0fe3a82d359d0fe05f2523907bedf36

Moved all migration code for postgres behind traits

view details

Jesper Axelsson

commit sha c1f17c75d24c76ce71df3048f83e24cdb260f65f

Add suport for sqlite

view details

push time in 3 months

push eventblackwolf12333/sqlx

Jesper Axelsson

commit sha e577358686f155e3be0229387958a089f717f9c4

Added migration tool to sqlx

view details

Jesper Axelsson

commit sha fcd6ef43a406d243c878a59d4dd9801766272542

Remove LICENSE and change homepage

view details

Reid Swan

commit sha 58aa15cb8a2dc53ca255f30785f03c05b3fdc64b

Use psql client in container to make action less brittle

view details

kosyak

commit sha 6c9241a3a9c5c3767d7f9d5b3e80f061645a0566

Fixed types of variables that interact with libsqlite3

view details

Lewis Belcher

commit sha 903de3e8d8040070668feabd772992e59094af22

Update README.md Simple terminology fix.

view details

Ryan Leckey

commit sha 70387214a95e9d82801afcc2fa5c76a2d7190318

Merge branch 'feature/cargo-sqlx-migrate' of git://github.com/JesperAxelsson/sqlx into JesperAxelsson-feature/cargo-sqlx-migrate

view details

Ryan Leckey

commit sha 543f89d0eb78799c434cd9321e49de8537262416

Merge branch 'JesperAxelsson-feature/cargo-sqlx-migrate'

view details

sid

commit sha 012c18606952544a5267aab634c0182ceeef7c12

support rename attribute in FromRow macro

view details

Ryan Leckey

commit sha 466b6d6bed12cd481002d1dda14553ca7d4b018a

cargo-sqlx: update SQLx to v0.3

view details

Kristy Brambila

commit sha 0e6164216599aa2f519dbfbcce1fedfc5a4d354f

Make postgres type name resolution case-insensitive

view details

Ryan Leckey

commit sha 72bd933e41a742b0b4b7dcb4c023953a3ce46eae

add MapRow impls; closes #228

view details

Ryan Leckey

commit sha b3fd720aad6700896468d3f779e72d8b1ecec001

test(sqlite): add failing test to illustrate #231

view details

Ryan Leckey

commit sha cd6735b5d787aa0daf51d62c61e0985e7b0123cd

fix(sqlite): handle empty statements, fixes #231

view details

Ryan Leckey

commit sha d360f682f8ff991d949ff7e6a4d0c13dc6738f79

fix(postgres): guarantee the type name on a PgTypeInfo to always be set fixes #241

view details

Ryan Leckey

commit sha 52408f3cbf1444d79afd0dbd2d4597d82772c687

test(postgres): make test_enum_type more resilient

view details

xiaopengli89

commit sha b354ed430db76afe580ffe762bf01b83b4702b63

implement `DECIMAL` type support for mysql

view details

xiaopengli89

commit sha 401ffd19e6f388ee832195ae5e3fb969cfcf8fe1

add test_encode_decimal, test_decode_decimal

view details

xiaopengli89

commit sha 771d423c6fadb928b7e7982b2a3a09a50c8b824c

fix: change u8::MAX to std::u8::MAX

view details

xiaopengli89

commit sha 229635771a0431d03333f21574fc9342c9da68bd

fix: test

view details

xiaopengli89

commit sha d50405743b9663dcd55cc4a66d3ec9d42b0e0b23

add integration tests mysql-types.rs/decimal

view details

push time in 3 months

Pull request review commentlaunchbadge/sqlx

mysql: Add JSON support

 checksum = "130aac562c0dd69c56b3b1cc8ffd2e17be31d0b6c25b61c96b76231aa23e39e1" name = "cargo-sqlx" version = "0.1.0" dependencies = [+ "anyhow",

Not entirely sure why this is here, I just rebased on upstream master.

blackwolf12333

comment created time in 3 months

Pull request review commentlaunchbadge/sqlx

mysql: Add JSON support

+use crate::decode::Decode;+use crate::encode::Encode;+use crate::mysql::database::MySql;+use crate::mysql::protocol::TypeId;+use crate::mysql::types::*;+use crate::mysql::{MySqlTypeInfo, MySqlValue};+use crate::types::{Json, Type};+use serde::{Deserialize, Serialize};+use serde_json::Value as JsonValue;++impl Type<MySql> for JsonValue {+    fn type_info() -> MySqlTypeInfo {+        <Json<Self> as Type<MySql>>::type_info()+    }+}++impl Encode<MySql> for JsonValue {+    fn encode(&self, buf: &mut Vec<u8>) {+        (Box::new(Json(self)) as Box<dyn Encode<MySql>>).encode(buf)

I don't think I understand the rust type system well enough yet, is this the proper way to handle this?

blackwolf12333

comment created time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha d7b122890c0b9a6c836142497d3c1a5556bf84ce

mysql: Add JSON support

view details

push time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 9f287d28ae7d3e7e0ce49139dd14f18c56f9d46d

mysql: Add JSON column type

view details

push time in 3 months

PR opened launchbadge/sqlx

mysql: Add JSON support
+102 -1

0 comment

5 changed files

pr created time in 3 months

push eventblackwolf12333/sqlx

Jesper Axelsson

commit sha e577358686f155e3be0229387958a089f717f9c4

Added migration tool to sqlx

view details

Jesper Axelsson

commit sha fcd6ef43a406d243c878a59d4dd9801766272542

Remove LICENSE and change homepage

view details

Reid Swan

commit sha 58aa15cb8a2dc53ca255f30785f03c05b3fdc64b

Use psql client in container to make action less brittle

view details

kosyak

commit sha 6c9241a3a9c5c3767d7f9d5b3e80f061645a0566

Fixed types of variables that interact with libsqlite3

view details

Lewis Belcher

commit sha 903de3e8d8040070668feabd772992e59094af22

Update README.md Simple terminology fix.

view details

Ryan Leckey

commit sha 70387214a95e9d82801afcc2fa5c76a2d7190318

Merge branch 'feature/cargo-sqlx-migrate' of git://github.com/JesperAxelsson/sqlx into JesperAxelsson-feature/cargo-sqlx-migrate

view details

Ryan Leckey

commit sha 543f89d0eb78799c434cd9321e49de8537262416

Merge branch 'JesperAxelsson-feature/cargo-sqlx-migrate'

view details

sid

commit sha 012c18606952544a5267aab634c0182ceeef7c12

support rename attribute in FromRow macro

view details

Ryan Leckey

commit sha 466b6d6bed12cd481002d1dda14553ca7d4b018a

cargo-sqlx: update SQLx to v0.3

view details

Kristy Brambila

commit sha 0e6164216599aa2f519dbfbcce1fedfc5a4d354f

Make postgres type name resolution case-insensitive

view details

Ryan Leckey

commit sha 72bd933e41a742b0b4b7dcb4c023953a3ce46eae

add MapRow impls; closes #228

view details

Ryan Leckey

commit sha b3fd720aad6700896468d3f779e72d8b1ecec001

test(sqlite): add failing test to illustrate #231

view details

Ryan Leckey

commit sha cd6735b5d787aa0daf51d62c61e0985e7b0123cd

fix(sqlite): handle empty statements, fixes #231

view details

Ryan Leckey

commit sha d360f682f8ff991d949ff7e6a4d0c13dc6738f79

fix(postgres): guarantee the type name on a PgTypeInfo to always be set fixes #241

view details

Ryan Leckey

commit sha 52408f3cbf1444d79afd0dbd2d4597d82772c687

test(postgres): make test_enum_type more resilient

view details

xiaopengli89

commit sha b354ed430db76afe580ffe762bf01b83b4702b63

implement `DECIMAL` type support for mysql

view details

xiaopengli89

commit sha 401ffd19e6f388ee832195ae5e3fb969cfcf8fe1

add test_encode_decimal, test_decode_decimal

view details

xiaopengli89

commit sha 771d423c6fadb928b7e7982b2a3a09a50c8b824c

fix: change u8::MAX to std::u8::MAX

view details

xiaopengli89

commit sha 229635771a0431d03333f21574fc9342c9da68bd

fix: test

view details

xiaopengli89

commit sha d50405743b9663dcd55cc4a66d3ec9d42b0e0b23

add integration tests mysql-types.rs/decimal

view details

push time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha ffcc9e1ab5d6f8117e66b896ae8c16f3f7686625

wip: passing tests

view details

push time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha 712d596f340155691207bcef003ef6e780d780e6

wip: passing tests

view details

push time in 3 months

push eventblackwolf12333/sqlx

Peter Maatman

commit sha d29022c5e49e5595ad23fb255bef1d8238e5cb1a

wip: passing tests

view details

push time in 3 months

more