Files
boc/aamos-ledger-rust/target/debug/deps/libsqlx-1e4e2e922d11492f.rmeta
T

296 lines
126 KiB
Plaintext
Raw Normal View History

rust
ˆ÷#rustc 1.96.0 (ac68faa20 2026-05-25)ÁÀ뉊]!ÜÛê(¹Þ—šên-5be7b69c3ff7b5b8ÁíàÄTËŸ ÜJîÄ)'ß\¥!-3d1337db07d0b3aeÁ¤²XctÔ'ÐÓ©z¨ɽÓ-a4945860e1c53b00Á¤°ð ¾ä-±($²ï=©Ã-7e98a21bfd32b0edÁòÖÀH•‘PIÓHã#£-055f30b747f859b6Árustc_std_workspace_coreÁ­Cçß^ò½èÝ$­Çÿ+Cé-c4878ee60b2242c9ÁŸÃï+Ñ]ŠqB<ÏïW#-8dd1dd90e70d0b6aÁ miniz_oxideÁ€š»J(P>àö÷g\K-1eb618da2918ab7fÁadler2ÁÆ;+Þ®5¥Ìýݰ¦ÛLˆ-f7919172d268e069Á hashbrownÁPäV9ÒÆèÜ"ÊÖVŽ\-0fc2184a5da6723aÁrustc_std_workspace_allocÁs&ØòØy¯s•bæ!‰ýŠ-97e4bf30be240674Á
std_detectÁhŠBîÙºÌI®ËÅš-9dbbf8346ba7ac8bÁrustc_demangleÁûë9´Ç×@Œ’ùXFº-f33013f239bf9f14Ácfg_ifÁÜLhž§Œaã¯>­-0a71c8f33a838301Á addr2lineÁ׎Þ!]8V$É@@-e618e6be60e87ba2ÁgimliÁ¸
°µ~Î1‹Ñt ðÁ€w-1f7768a68858f670ÁobjectÁ
áPÃ?­À¶¼QHJ¥-914cd6a4dbe590d1ÁmemchrÁ›º«8Ór­2Ù $¨ûib-cf21ca6f2bb15dcdÁë
‹ás«LÖ€îâƒ×ɯŒ-ee6f3747e38367f0Á sqlx_macrosÁŒENýXÌMÁÍ"•íňC{-9444a7a0749537abÁ sqlx_coreÁo+³ “rŒˆSâÐ)£‹-2f06495562e54e38Á futures_coreÁJäI@fÄ
×ß›ë:²-b2a01c322c9ccc85Á futures_utilÁo.@\ù>,>.¥&ÖG/o-a464b0ed45ad8247Á futures_taskÁurªVŠˆ* ¨ªoèÿÅ7-8cf213f034b18043Á futures_sinkÁ‚BÛ˜õµËUæh—òË…-40585509b14a1deaÁpin_project_liteÁ`b#ÒÿùM.è}²ð@ñ-7ea160027a0fdab2ÁslabÁiجôm¥(
A
[¾Äƒh-70c6c4d8a9a778fcÁ
futures_ioÁG™êéå&í“Êþ(ã½-10d9063ddf3dea8bÁìÐâà`éÙBÞðg+-67d59ffd555808adÁevent_listenerÁ…é¶ï$
Ì!`€4"³Ð-b0187184aaa1528dÁparkingÁ5׫M Ư³yŸø-800d65fb6d967e86ÁeitherÁsë;à'›ø0*Ù)%|¯s-3fa5e3dba5053aa4ÁserdeÁŸÿ\.©åý¼ Òš-050607dac4fda6a6Á serde_deriveÁ,w|êñ]ù¿¥­C£ð-975c43f96d83014eÁ
serde_coreÁ_³-À Ëï ¢ÖzéÌ»S-cb84d8e698130faaÁcrossbeam_queueÁ”ª<nî¦jdÓ é±w-81c5f34d0da3b8c2Ácrossbeam_utilsÁI^`Ýþh3 ²Þâò]áó-e51418303cdc2645ÁtracingÁ0½Ñ‰¼ï^(¡cB„z-0fb8af102453bef1Á tracing_coreÁ½†ÍÁ~ÙnÙþøeGC-b5138812c9e8341fÁ once_cellÁ4¤83æl0è{—tE-67622b8a8d4197b3Átracing_attributesÁÿS:FN¢×D2pª`;¨-40899a47d4b3db36ÁlogÁ|üç˜ï%l2TÝïáØü-fe03740d56b0bbefÁurlÁ=v—Ç„IILÀf}úY-36cc640e1cc59a75Áform_urlencodedÁ:³ A! »ÓpèÚðé@-b151d3846c59082bÁpercent_encodingÁ
1šŒcL¸Ynº(©±Û-bcbb53d89b814310ÁidnaÁ üdÅ$.ÌÙ},Ê|ßùÌ-8d4389d147778ba2Á idna_adapterÁĆÿÐz0öàQ3|ðË?-8a0b89d6617a1415Áicu_normalizerÁÎñ51.Z§Ë­ž-”Î-c3235b1b9f377fe1Á icu_providerÁ«Ij-²KÃÓûÙ^-d781c4307358ffc0ÁzerotrieÁóôö¬µŠKì|t§×(c-2e59e106bf8bcf22Á
displaydocÁ©$-.ÿæ§ï=[œiF-53df79815c011341ÁzerofromÁ“zÂÚ¤‰ÔžˆÁÕÁpâ-ebe6d0d4f33b764dÁzerofrom_deriveÁŸæþÇŽá2?M¥e (-abe85a41d9dcc735ÁyokeÁ0²Àë[éQ¿ d|Ù‘õ-e00e8f69447c8036Ástable_deref_traitÁê7#JÙ iÕ‰~òÏ-e121373445e25e3fÁ yoke_deriveÁ×ã„Ô„ýT·+CIƒ•sÙ-ad663b8de2c8c776ÁzerovecÁþzôs3û]0oøºÑê±-05e7744103b7d51dÁzerovec_deriveÁ£½+d“ð΃-m*¸]-09ac241eaa4a8700Á writeableÁFLÛ
9>2!fiQxMíHn-0dc003cbca78f018Áicu_locale_coreÁ< &üþsímÿõf§§-cbe933ed93688d5eÁlitemapÁTøUs•a÷á¶…ø¤½-0ffcf6145090791aÁtinystrÁ1
ðìñ3Ðï4;µQ-98301aa19023b8fcÁicu_collectionsÁm˜ÎÑh¦13ÍO4ûç~2-fb1fab0c98bb3350Á
potential_utfÁä/•!zëõƒ‡ƒê^õøÔ-ea64bb8c803395e9Á utf8_iterÁ2ÞàN>Y‚ž*GF2W~üŠ-65437b4baeaecf78Áicu_normalizer_dataÁS¯¸[±¨À”2tw2)-edeec04f49f7a488ÁsmallvecÁ½™îg—ÝÚt´±’ª®b-e608f34be3f30508Áicu_propertiesÁôºG$Ä¥ÐÅXnj7-cddb92d57ead7acaÁicu_properties_dataÁØ”Ä^$ÎÉŽæI-853f209e437288bdÁ
serde_jsonÁÆÑ.ä­pZàTØ}KPI-f5688111e76a40c7ÁzmijÁ¬ ǸÊh<on¿‚]š1ƒ-e65200c02ad231e6ÁitoaÁ®æ
9H}>xû, @º‡I-c4c95ef3ef39a8c3ÁuuidÁÉÌ), -PUÛÜ›4Þ-b5bdb6ac5933525aÁ getrandomÁç.o
å¥zÇ7f-3d09f4a1661db223Á®«ýºõó¿àlé ,Z¶÷k/-c82bfbac630248a2ÁÚ+z˜ÖËó>zj–„÷-8f89ea8b6e77f2aaÁchronoÁãàÌ33gl¢f|jmö-402a86b5755fd164Á
num_traitsÁßåô9}E¦;sðƒ*˜Äˆ-ba46dc99727f6563Áiana_time_zoneÁ §¼
Œ8r }/zèjŽôì-4eaba4969283ffdfÁhashlinkÁZ8Q¥èõÄ_·èfp7…\e-a7e4f739feb47dc1ÁÐ)é\2b;êX±S\Ž -aab585db90c732eaÁallocator_api2Á –ýݤ5úe¸ ÊxväÏ-ec9b304a0bfdb8dfÁ
equivalentÁ¡ Zª÷PQØÊ¸+2×I-7507eaa528d55517ÁfoldhashÁn´áÇ亜=Av‡-pàÕo-032a5228e2caa585ÁbytesÁ^ÍÏ8+än÷+j-122b7cf70504f583ÁtokioÁ·ØÃýø‘f»¹é딄-087392fa1a31dd29Á parking_lotÁŠÝ2.eÒõ²òêÕ†-689a5c8a340e7370Álock_apiÁð¹f^ô}¬öFº™”z¨ò-3f3c7099ed5d8d40Á
scopeguardÁ\…ŒÞ=0ÔB­ïÅA&¹-ccb5054c1d5044beÁparking_lot_coreÁÁ¶+¿™-h¢¼S¯Œ1\-5d7acafd3d98b936ÁmioÁÄ©aZ¦ê@Þ'íˆA-d6954a24ebe3831fÁ tokio_macrosÁóÁm¹^E¼>ŽCê
z3-074a4ab5bbda1a72Ásocket2Á/Æm·}ï3rÑ®‚fqB-f5f25707507e8a7cÁsignal_hook_registryÁ‹A´Ùqà’D;i-a201455211635890ÁerrnoÁ—ë@\ZéíJ÷MˆI-14c535580c974ea2ÁrustlsÁQ™YVoÍZ)™"kbŽ8-98f556f22e69a0c7Árustls_pki_typesÁ÷/ŠNàEÀ~f‘´,=N-49c3c284b93f29dcÁzeroizeÁ…îÁ#pOŠùä­»WÈj-ab1fd11939c9c032ÁringÁ§˜Ç°‘в&L†+]T$ž-bd9a1ffc9d53c253Á untrustedÁDçWì\ðžµV
&Bú/-a5c60ec3711e6e4fÁRÚE®RÄÿ$·Îù-1a378949ea4a11a7ÁwebpkiÁ‚ÇLTQ ŽãAО—~BP-6c278367dc9ca33dÁ aws_lc_rsÁœñ>0¹ÊU´˜ñárÕ—ñ -e87e40d6975cab4aÁ
aws_lc_sysÁ$÷-§Š8‚é=t-4839a170f9755af6ÁsubtleÁŒ2b9ƒñÞéW©Ìà X/-d16c11b7355c0817Á¹
m™ºðT)*Ñ™ÿLI [M[-d8a8a6d92cebf6caÁdigestÁ†§o`Qžðrøš”Y³KË-156b4cbafca24b37Á
crypto_commonÁ-)þ¡ ¤ðô¿¶r_„-b8ab09f8a062f365Á
generic_arrayÁ€Ìºˆ¾[ȨûÜå[ {ë-00b5cb6878626fbeÁtypenumÁ*¸ÐÀùÍk»½e6;-17ae62b50937f0b6Á block_bufferÁ“0ÿçpÅé¦x4-77bdbc66f1284a1aÁbase64Á-ök¶¯€ñiBždòçB¿-12c1f757c45e073bÁindexmapÁ¢°ÿÉc(ã–'øùZÉÝ£-bf96270c5ea4036cÁÐñÒ¬ÕÑ=nsùV42íi'“-2ffaac140a2b5d48Á thiserrorÁ¼Rû¯MI—As.¶ÒÙ¦-d7019a58c4be6017Áthiserror_implÁ
²,v€ϸ6»˜-248901177889560cÁ webpki_rootsÁïbî>9"¸¤œyê0×Y-e7e88eed0be4870bÁÒ-ñ0!$ÅÀlëoX¯Ñ-4b81c59bac4436e9Á
sqlx_postgresÁs^•öfQXI#æÙ(Ã-c2ab5cc6c38b0052ÁhkdfÁfNžww3/ «*lgf-e9a33a1bc0a8a9d8ÁhmacÁÍBÇŒº^—»èeÑÉWIOD-919974fb59bcd563ÁrandÁ«µ|”A [OìÛ®;-3bbd585ba3da2bf1Á rand_coreÁdêä¡lìL·p^˜Œ0Út´-039f6d921c0ed250Á rand_chachaÁþàr–ÓIž7´}h¥ã-6532194ffe05c06fÁ
ppv_lite86Á©;Îî‹jQ(*»ìY2DÎ-3f12509c58b93de6ÁzerocopyÁ©pµA4ÿäK6·kñ-686953f627c37fa6Á
stringprepÁþG?¿}ãvê³rŠ7¯ñ-f5486cc618e19519Á unicode_bidiÁ³£F´uÏ9ºsÒ`n-Õ-df9bbcd7c4e4bac6Áunicode_normalizationÁ:]á#—kŒ'^U'Q-def36fc1e20b201eÁtinyvecÁòÚÅgÉl m©Æys-eecc365b0306dff7Átinyvec_macrosÁ
ÿ˜x üäé÷
Ìø‰­K-608121422b928643Áunicode_propertiesÁÁ{œµžÙÁXYvü0ÜÌ4-a511cfd776fc7110Áfutures_channelÁHCi[‚ÿTÆD µ«;-a679c9e2e2512117ÁatoiÁ­øC1,Þ‚š;ÏHvã0À-4e578245f1f8cde7Á byteorderÁª¡M‡(§EÃŒ c=ùE”Z-44068f628772cd9fÁmd5Á½Këãz|KÞ¶þ::-571ef650b7bfc28fÁbitflagsÁÊ•09³b@{e|ШŸi-e5412d4fc4957378ÁhomeÁ7)J$‡“H¬Úå(*9é-dfb6fb4d0804494bÁwhoamiÁ”;g3K·ÀÖÏaIæN#9÷-b528be9c760fdf40ÁhexÁÔ;»LâT¨DÅòÚáÕ]-4653b467cd4ca887ÁcrcÁ×´bî~È2Mí³¡jæu`-aa45429d9c1c1df2Á crc_catalogÁ£7rsî$ÇöÅS" €#nû-c94697fef4bf6442ÁdotenvyÁ_,ÞÀ^øO)tjˆÎUÖ-a8a9810542ad9b8eÁmysqlÁ,Ä
»Œ8ŒÎ MySqlÁ,Ë
»Œ8MySqlConnectionÁ|Ò
»Œ8>@
MySqlExecutorÁlã
»Œ8_a MySqlPoolÁLò
»Œ8|~MySqlTransactionÁ„ý
»Œ8 ¢sqliteÁ4â»_sqliteÁœçSqliteÁ4ê»×9SqliteConnectionÁ„ò»×9@BSqliteExecutorÁt„»×9bd
SqlitePoolÁT”»×9SqliteTransactionÁŒ »×9¥§À 
  
 !"#$%&'()*+,-./0123456789:;<=>?@ÄABCDEFºJJJJJJJJJJ J
J J J
JJJJ reexportsÁ\\Jinstall_default_driversÁ_ONCEÁ_ macrosÁbqueryÁbquery_uncheckedÁb
query_fileÁbquery_file_uncheckedÁbquery_asÁb
query_file_asÁbquery_as_uncheckedÁbquery_file_as_uncheckedÁb query_scalarÁbquery_file_scalarÁbquery_scalar_uncheckedÁbquery_file_scalar_uncheckedÁbmigrateÁty_matchÁpp same_typeÁr¥pWrapSameÁt
t¥t¦tˆtpz¥z¦zæ p WrapSameExtÁ~WrappedÁ~ wrap_sameÁp¥¦ûAp¥¦ûAp MatchBorrowÁ
¥¦ˆp¥¦æ pMatchBorrowExtÁMatchedÁ match_borrowÁp'aÁºCpáCºCpœáCœºCpŸáCŸºCp¢áC¢ºCp ¥áC¥ºCp
¨¥¨ºCp «¥«ºCp ®¥®ºCp
±¥±ºCp´¥´ºCp·¥·ºCpº¥ººCp½¥½ºCpÀ¥À¦ÀºCp
conjure_valueÁÄ¥p
dupe_valueÁÆ¥
spec_errorÁÈÈÈÈÈÈSpecErrorWrapperÁÎ
ÎÎˆÈ SpecErrorÁÒÒ__sqlx_spec_errorÁÈÕÕ¸G× ÈÙÙ¸GÛ ÈÝݸGß Èáá¸Gã Èåå¸Gç È __spec_errorÁGtypesÁëëencodeÁîîîîHdecodeÁôôI×>øøøøø¥ þþþþþþþþþþ þ
r
r
}


¨
«
«
®
±
±
´
·
·
º
½
½
À
Æ
Ô
Õ
Õ
Õ
Õ
×
Ù
Ù
Ù
Û
Ý
Ý
ß
á
ã
ç
~“Ò~ttu¡Axˆpyp v–çj¡¥Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¦~ 8ttu¡Axˆpyp v–çj¡¥¦ŠÑBˆpŽp Ðà ûÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ áCÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙúHúHßûHÁ‘4Ý­f‰úM÷ŠÑBˆpŽp Ðà ûÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ áC
Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙªBªBö­BbufÁ÷<®B÷<9)
-ÜnL¹QçEçEèEGlobalÁ ¿±‡§í#ŠÑBˆpŽp Ðà ûéNÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ áCüOŠÑBˆpŽp Ðà ûíPÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ áC‚RŠÑBˆpŽp Ðà û®OüOŠÑBˆpŽp Ðà û²Q‚RŠÑBˆpŽp Ðà û 8™N™NŠÑBˆpŽp Ðà û 8 8¥ÆWŠÑBˆpŽp Ðà û™NíVŠÑBˆpŽp Ðà ûÆW¼WŠÑBˆpŽp Ðà ûÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙíVÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ™NŠÑBˆpŽp Ðà ûÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¼WÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙÆWŠÑBˆpŽp Ðà ûîY¦YŠÑBˆpŽp Ðà ûÁ[ùZ 8ŠÑBˆpŽp Ðà û™NŸNÒ 8 8 8 8ÎÎÏòFш i#$çê´^Ò 8 8 8ÎÎÏòFш i#$çê†_Ò 8 8ÎÎÏòFш i#$çêÒ_Ò 8ÎÎÏòFш i#$çê˜`ÒÎÎÏòFш i#$çêØ`t…
œŸ¢¥¨«®±´·º½À
Õ
Ù
Ý
á
åÎ~ ÒgrüÚ&ý †Mî¦bö_1Á_2ÁJ­
}üÞ Ottu¡Axˆpyp !­v–çj¡†MÑM ÑM_argÁnùž"#ù#ž"#
¶cÔœ  
4ù@#á#
ÜWV$ ¼ üç
V
e
qäÈäÈ ArgumentsÁæÈtemplateÁ `çÈÀ `üöMõô]TdgždÈdéeÄüñ
* ŠÑBˆpŽp Ðà û†MÑM¡üÁ
`†MÂf
†M Ì
ÊcÒ
¿_uÁIùž"#ù%ž"#dÔ–¢d -ù@#á#ÈdL! üÞYeemªe§NdÃÈdesùý*#Áý#
àW#¢d
.Äüç/†M PÝi`ùý*#Áý#Ýi#¢d
+Æü˜2†M ¸¦b­Vý3ÝisŒ¨Ø´^…^žBoxÁ¡ˆˆ¢ˆl }.xϾ ÌìÂRb…^äk¿×ü®ÂlüÜA     …^ =Ékðµ´^
ª´^.#'äk¹ØWäk« Éko…^ ©žòj¡ˆˆ¢ˆl }.xÏ´^ÂR³´^Ͱ[ÜÒmزnäkßÔ‰}܆_Úk×^äkb×^äk©Ûüšâoü½A    ×^,­ :Áo†_|L
˜6†_.\´$
èüOäkH4 ¢£8ÜGäkŒ Áo_×^ ŠüO¼ †_Ú°Žïpäšq¾×^×^šüð0àÒ_Úk£_äkb£_äkßüöŸ“sü¤A   £_,” 7ôr '„Ò_ù'„#( %  Ò_
ÈbÒ_ U %O ‚È‚ÈArgumentÁ„È´ÀbökÏ®ÝWj´ 
Ÿ ¹Q¾ ÌÑ
«c¾u¾u
þ 
ùð"=ð"
É,ù„#(*ùÇ"qÑÇ"
 üOùâ"U-Üô$‰šqG4‰ ŽvàÜã
äkó ôr«£_ ñüOÉüO±ªeë¬t$¬t?åt¾uBåt$¸uR ¿x]¬te°lÀ}ÀAÂtvåu¢µvåvjšq=£_£_$üÙ H« ä˜`Úké_äkbé_äk§
ãüßÈŒzü A  é_ 4ïyŒ
Ôÿ Äÿ 
«&˜`Ð)ÿ ù)„#( !
 ¢d
Æb¢d
Q
%O åt
^ f ¹Q¾u  ˜
«c¾u¾u Å ÊÓùð"=ð"µvù „#('ùÇ"qÑÇ"åvùâ"U'üÞ C$
šqB4
  
¡
 Oä^ äkÝ  ïyé_Ú üOÄüO²ªeæÃ{áÃ{ø¢d#¿xùåtÛ–| åxÃ{_eÁeÀ3À? {Ù{2Ã|^µvåvdšq=é_é_#üØ 3þ èØ`Úk©`äkb©`äk çüÞ
³Ý€üŒ A ©`
 2€üÝ ' %¢düÝ .$… 
è¢däk54…  Š  èäkÜ  €-©`Ù ¢dªÇ~R粩`ˆ©`Ì‚  t†MÑM u,‡c7 PhantomDataÁFu\»Ÿ†Moè‚Fu\»ŸÑM¤äß  †MÑM!Š.Âf9ÚƒA’„IPô‹ ÎØ`Ï(©`3Ø`:AøJbpÈëîôþÀG<ǶdLï¡
IntoArgumentsÁlúªColumnÁ4¥ª  ColumnIndexÁ\ȯ ConnectOptionsÁtõÜ
ConnectionÁT…½ databaseÁ$°

DatabaseÁD¶
DescribeÁDÞÊ ExecuteÁ<†ö
ExecutorÁDÉ
FromRowÁ<· ć
EpoolÁ$Ú¸PoolÁ$àí__query_with_resultÁœ¥ ×>,Õ  ×>c
query_withÁTÜ ƒ ¥?D‡ Ø¥?g
query_as_withÁl Ý
query_builderÁ$Äô QueryBuilderÁdʃ __query_scalar_with_resultÁÔ¥ ©!ÿ?dã ž#ÿ?kquery_scalar_withÁŒñ £$raw_sqlÁ<¢ Ç&RawSqlÁ4« Ã'RowÁÌ ø( StatementÁLï  ) TransactionÁ\
ù+TransactionManagerÁ”¨
ñ,TypeInfoÁDÛ
-ó$ÿ
Ç.ó FValueÁ,  0ValueRefÁD§ ¬1EitherÁ4Å 2errorÁ$ø ]4ErrorÁ,þ ³5Í4… f6é@<¾ ²7é@opostgresÁD˜w9 PgConnectionÁd¢:
PgExecutorÁT°wˆ;PgPoolÁ4¼w†<
PgTransactionÁlÄw=PostgresÁDÓw>ÎŽ>AnyÁ¡Î%ANùŽÏ%AN AnyExecutorÁ\¦ÛBQÄ\‰C
GtestingÁ<ŽäH
test_block_onÁl¾ ÍIã>|‘„dù>T¼’eŠ?¤Þ–f´?lðÚhÈ?”ßßiá?¼øäj’@Œólª@´‡ùmÇ@ܦÿnÓHdÁ é__rtÁ$ÑêEncodeÁ4صóðÑ‘óòDecodeÁ4Å!É÷õ‚’÷öAnyPoolÁ<†Ù@]
AnyConnectionÁl°Ê%@«&øþü' þThe async SQL toolkit for Rust, built with â¤ï¸ by [the LaunchBadge team].
See our [README] to get started or [browse our example projects].
Have a question? [Check our FAQ] or [open a discussion].
### Runtime Support
SQLx supports both the [Tokio] and [async-std] runtimes.
You choose which runtime SQLx uses by default by enabling one of the following features:
* `runtime-async-std`
* `runtime-tokio`
The `runtime-actix` feature also exists but is an alias of `runtime-tokio`.
If more than one runtime feature is enabled, the Tokio runtime is used if a Tokio context exists on the current
thread, i.e. [`tokio::runtime::Handle::try_current()`] returns `Ok`; `async-std` is used otherwise.
Note that while SQLx no longer produces a compile error if zero or multiple runtime features are enabled,
which is useful for libraries building on top of it,
**the use of nearly any async function in the API will panic without at least one runtime feature enabled**.
The chief exception is the SQLite driver, which is runtime-agnostic, including its integration with the query macros.
However, [`SqlitePool`][crate::sqlite::SqlitePool] _does_ require runtime support for timeouts and spawning
internal management tasks.
### TLS Support
For securely communicating with SQL servers over an untrusted network connection such as the internet,
you can enable Transport Layer Security (TLS) by enabling one of the following features:
* `tls-native-tls`: Enables the [`native-tls`] backend which uses the OS-native TLS capabilities:
* SecureTransport on macOS.
* SChannel on Windows.
* OpenSSL on all other platforms.
* `tls-rustls`: Enables the [rustls] backend, a cross-platform TLS library.
* Only supports TLS revisions 1.2 and 1.3.
* If you get `HandshakeFailure` errors when using this feature, it likely means your database server does not support
these newer revisions. This might be resolved by enabling or switching to the `tls-native-tls` feature.
* rustls supports several providers of cryptographic primitives. The default
(enabled when you use the `tls-rustls` feature or `tls-rustls-ring`) is the
`ring` provider, which has fewer build-time dependencies but also has fewer
features. Alternatively, you can use `tls-rustls-aws-lc-rs` to use the
`aws-lc-rs` provider, which enables additional cipher suite support at the cost
of more onerous build requirements (depending on platform support).
If more than one TLS feature is enabled, the `tls-native-tls` feature takes precedent so that it is only necessary to enable
it to see if it resolves the `HandshakeFailure` error without disabling `tls-rustls`.
Consult the user manual for your database to find the TLS versions it supports.
If your connection configuration requires a TLS upgrade but TLS support was not enabled, the connection attempt
will return an error.
The legacy runtime+TLS combination feature flags are still supported, but for forward-compatibility, use of the separate
runtime and TLS feature flags is recommended.
[the LaunchBadge team]: https://www.launchbadge.com
[README]: https://www.github.com/launchbadge/sqlx/tree/main/README.md
[browse our example projects]: https://www.github.com/launchbadge/sqlx/tree/main/examples
[Check our FAQ]: https://www.github.com/launchbadge/sqlx/tree/main/FAQ.md
[open a discussion]: https://github.com/launchbadge/sqlx/discussions/new?category=q-a
[Tokio]: https://www.tokio.rs
[async-std]: https://www.async.rs
[`tokio::runtime::Handle::try_current()`]: https://docs.rs/tokio/latest/tokio/runtime/struct.Handle.html#method.try_current
[`native-tls`]: https://docs.rs/native-tls/latest/native_tls/
[rustls]: https://docs.rs/rustls/latest/rustls/
ÁøJbpÈëîôþÀŒG¶dŒ¡½…ªÛ…yª ò…n¯ ކ`Ü
­†V½ ȆN

á†F
ú†>Ê “‡7ö
«‡/É
ć( ć9
Eì‡%¸ˆ!í–ˆ ×>
  ×>c؈ ƒ ¥? Ø¥?g‘‰÷ ݯ‰êô͉Þƒ ê‰Ä ©!ÿ?à ž#ÿ?Ók³Š³ £$ÕŠ¬ Ç&튦Ã'„‹£ø(˜‹š )²‹ù+΋}ñ,ñ‹u-ótÇ.ó FªŒp0ÀŒh¬1ÙŒb2ðŒ]]4X³5ÍWf6é@V²7é@foÉOw9áC:þ9wˆ;™Ž3w†<°Ž&w=ÎŽw>ÎŽ/>ùŽÎ%ANùŽ0Ï%AN¥ÛBQÄC
Gå äHýü ÍIã>ûdù>ùeŠ?÷f´?õhÈ?óiá?ñj’@ïlª@ímÇ@ënÓHé黑åêёߵóðÑ‘õóò‚’ÚÉ÷õ‚’ð÷ö³’ÔÙ@]Î’ÇÊ%@^¦©¬ܳ¤¤ØšÌ’uôµ`¬ÝHK36œš$ìÉœðòõßâä¢Ñ³¥¨üþ#Œ„Â`cœñY\47Ä© l´

üð1ê¼Éàã·º ©¬˜œ¼ ŽüÙ |´‚
gjJMôÅ
;´í
1 Œº ó„å ä ÖÙËΔ³ Å$ª|knSV@CT†L“(+úýäøðŒ¼÷”ƒæä¯ÏüFC **SEE DOCUMENTATION BEFORE USE**. Runtime-generic database driver.Áø
©üG1©
The underlying database drivers are chosen at runtime from the list set via
[`install_drivers`][crate::any::install_drivers]. Any use of [`AnyConnection`] or [`AnyPool`]
without this will panic.
It is recommended to use [`install_default_drivers`][crate::any::install_default_drivers] to activate all currently compiled-in drivers.
[`AnyConnection`]: sqlx_core::any::AnyConnection
[`AnyPool`]: sqlx_core::any::AnyPool
Á»º¼Îî\_OnceÁ$‰ï8JKinstall_driversÁ|° LùŽàÎ%NùŽÏ%N AnyArgumentsÁdåËOAnyConnectOptionsÁŒóÞ%P¥\†ÛQAnyPoolOptionsÁt“ÚRAnyQueryResultÁt£å%SAnyRowÁ4³ì%T AnyStatementÁd¿ñUAnyTransactionManagerÁ¬ÍV§ÄV AnyTypeInfoÁ\ä†&WAnyTypeInfoKindÁ|ñ&XAnyValueÁDÐ&Y AnyValueRefÁ\ŒÖ&ZAnyKindÁ<ÊÒ%[|~Ûü˜'Á¹qtehLO36"% ëíÁÃ¥§xz¼ºhÄÔ³’Ù]Î’Ê%^¼ö9ì ü¤ üÂKH Install all currently compiled-in drivers for [`AnyConnection`] to use.ÁŽúü’\Y May be called multiple times; only the first call will install drivers, subsequent callsÁÄï will have no effect.Áˆú ### PanicsÁü›OL If [`install_drivers`] has already been called *not* through this function.Áëúüï41 [`AnyConnection`]: sqlx_core::any::AnyConnectionÁ¼« b
_ŒË Jï8ï8‰Âð8innerÁé8ãTPàVçaB
_<closure_kind>Áa<closure_signature>Áa<upvars>Áaa_abbbT»Ê>”úÔô4“””zü@= Statically checked SQL query with `println!()` style syntax.ÁAúüEeb This expands to an instance of [`query::Map`][crate::query::Map] that outputs an ad-hoc anonymousÁü«jg struct type, if the query has at least one output column that is not `Void`, or `()` (unit) otherwise:Áú”š ```rust,ignoreÁÄ­ # use sqlx::Connect;ÁüÆ?< # #[cfg(all(feature = "mysql", feature = "_rt-async-std"))]ÁĆ # #[async_std::main]ÁüŸ*' # async fn main() -> sqlx::Result<()>{ÁüÊSP # let db_url = dotenvy::var("DATABASE_URL").expect("DATABASE_URL must be set");Áü¤ZW # if !(db_url.starts_with("mysql") || db_url.starts_with("mariadb")) { return Ok(()) }ÁüÿC@ # let mut conn = sqlx::MySqlConnection::connect(db_url).await?;ÁüÃ,) // let mut conn = <impl sqlx::Executor>;ÁüðLI let account = sqlx::query!("select (1) as id, 'Herp Derpinson' as name")Áì½ .fetch_one(&mut conn)Á„Û
.await?;Áìúüð>; // anonymous struct has `#[derive(Debug)]` for convenienceÁä¯ println!("{account:?}");ÁüÌ1. println!("{}: {}", account.id, account.name);Áþúd # Ok(())Á< # }Á,—çÑüIF # #[cfg(any(not(feature = "mysql"), not(feature = "_rt-async-std")))]Á”ç # fn main() {}Á ```Á úü† HE The output columns will be mapped to their corresponding Rust types.ÁüÏ 85 See the documentation for your database for details:Áˆ
úüŒ
(% * Postgres: [crate::postgres::types]Áüµ
" * MySQL: [crate::mysql::types]矯
SP * Note: due to wire protocol limitations, the query macros do not know whenÁü¬ WT a column should be decoded as `bool`. It will be inferred to be `i8` instead.Áü„ )& See the link above for details.Áü® $! * SQLite: [crate::sqlite::types]ÁÓ úü× \Y **The method you want to call on the result depends on how many rows you're expecting.**Á´
úü¸
ro | Number of Rows | Method to Call* | Returns | Notes |Áü«ro |----------------| ----------------------------|-----------------------------------------------------|-------|Áüž¢Ÿ | None† | `.execute(...).await` | `sqlx::Result<DB::QueryResult>` | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. |ÁüÁ | Zero or One | `.fetch_optional(...).await`| `sqlx::Result<Option<{adhoc struct}>>` | Extra rows are ignored. |ÁüÆÂ¿ | Exactly One | `.fetch_one(...).await` | `sqlx::Result<{adhoc struct}>` | Errors if no rows were returned. Extra rows are ignored. Aggregate queries, use this. |Áü‰š | At Least One | `.fetch(...)` | `impl Stream<Item = sqlx::Result<{adhoc struct}>>` | Call `.try_next().await` to get each row result. |Áü§]Z | Multiple | `.fetch_all(...)` | `sqlx::Result<Vec<{adhoc struct}>>` | |Áúü‰[X \* All methods accept one of `&mut {connection type}`, `&mut Transaction` or `&Pool`. Áüåvs † Only callable if the query returns no columns; otherwise it's assumed the query *may* return at least one row.ÁœÜ ## RequirementsÁüð^[ * The `DATABASE_URL` environment variable must be set at build-time to point to a databaseÁüÏKH server with the schema that the query string will be checked against.Áü›b_ All variants of `query!()` use [dotenv]<sup>1</sup> so this can be in a `.env` file instead.Áþúü‚vs * Or, `.sqlx` must exist at the workspace root. See [Offline Mode](#offline-mode-requires-the-offline-feature)Á„ù
below.ÁŠúüŽ_\ * The query must be a string literal, or concatenation of string literals using `+` (usefulÁüîda for queries generated by macro), or else it cannot be introspected (and thus cannot be dynamicÁüÓ&# or the result of another macro).Áúúüþ_\ * The `QueryAs` instance will be bound to the same database type as `query!()` was compiledÁüÞ_\ against (e.g. you cannot build against a Postgres database and then run the query againstÁľ a MySQL database).Á×úüÛ[X * The schema of the database URL (e.g. `postgres://` or `mysql://`) will be used toÁü·&# determine the database type.ÁÞúüâ~ <sup>1</sup> The `dotenv` crate itself appears abandoned as of [December 2021](https://github.com/dotenv-rs/dotenv/issues/74)ÁüäKH so we now use the [dotenvy] crate instead. The file format is the same.Á° úü´ -* [dotenv]: https://crates.io/crates/dotenvÁüâ /, [dotenvy]: https://crates.io/crates/dotenvyÁ´’! ## Query ArgumentsÁü©!^[ Like `println!()` and the other formatting macros, you can add bind parameters to your SQLÁüˆ"MJ and this macro will typecheck passed arguments and error on missing ones:ÁÖ"ú”Ú"°ÏÄí"ËÏü†#?íÏÄÆ#µÐüß#*×ÐüŠ$S‹Ñ,Þ$çÑüä$ZöÑü¿%JG # let mut conn = sqlx::mysql::MySqlConnection::connect(db_url).await?;ÁüŠ&,§Óü·& let account = sqlx::query!(Áü×&63 // just pretend "accounts" is a real tableÁüŽ'_\ "select * from (select (1) as id, 'Herp Derpinson' as name) accounts where id = ?",Á„î'
1i32ÁLÿ'ì‰(²Ô„§(ØÔ¸(úä¼(ÅÕüÙ(1ëÕd)±Ö<˜)ÆÖ, )çÑü¦)IäÖ”ð)¶×<ƒ*Ñ×*úü*KH B
$Ï’& Ó’8«<Ô’*Ý’ à’ ¨“ á’ §“, ë’8,ì’'ñ’8Ä\ó’'þ’8ßÔd€“ Œ“  ¡“8 source_fileÁ\Ž“ š“, œ“8õ
$% ©“ ¯“ Ë“, °“8õ
$±“& µ“8«<¶“$ ½“, ¿“ À“ É“, Á“8À$“& Æ“8¯Ç“
Ê“*Í“ Г ¬” Ñ“ «”, Û“8,Ü“'á“8Ä\ã“'î“8ßÔdð“ ü“ ý“ ¥”8Ùë\þ“ Š”, Œ”8õ
$$ ‘”8À$“” ˜” š” ¤”, ›” œ” ¢”, 8À$ž”
£”üÑ–!ü²”_\ A variant of [`query_file!`][`crate::query_file!`] which does not check the input or outputÁü’•^[ types. This still does parse the query to ensure it's syntactically and semantically validÁìñ• for the current database.Á(|=H ó– ü˜ ù– ‡—, ú–8õ
$û–& ÿ–8«<€—*‰— Œ— å—  ä—, ——8,˜—'8Ä\Ÿ—'ª—8ßÔd¬— ¸— ¹— Þ—8Ùë\º— Æ—, È—8õ
$É—$ Í—8¤Ü<Ï— ×—8 ,Ù—% æ— ì— ˆ˜, í—8õ
$î—& ò—8«<ó—$ ú—, ü— ý— †˜, þ—8À$ÿ—& ƒ˜8¯„˜
‡˜*Š˜ ˜ ú˜ Ž˜ ù˜, ˜˜8,™˜'ž˜8Ę'«˜8ßÔd­˜ ¹˜ º˜ ó˜ 8Ùë\»˜ ǘ, ɘ8õ
$ʘ$ Θ8À$И Õ˜ ט á˜, ؘ Ù˜ ߘ, Ú˜8À$Û˜
à˜$ â˜8¤Ü<ä˜ ì˜8 ,–Ïü€™_\ A variant of [`query!`][`crate::query!`] which takes a path to an explicitly defined structÁ¼à™ as the output type.Áø™úüü™ZW This lets you return the struct from a function or add your own trait implementations.ÁךúüÛšb_ **This macro does not use [`FromRow`][crate::FromRow]**; in fact, no trait implementations areÁü¾›?< required at all, though this may change in future versions.Áþ›úü‚œc` The macro maps rows using a struct literal where the names of columns in the query are expectedÁüæœ\Y to be the same as the fields of the struct (but the order does not need to be the same).ÁüÃc` The types of the columns are based on the query and not the corresponding fields of the struct,Áü§ž! so this is type-safe as well.ÁÉžúüÍž This enforces a few things:Áüíž0- * The query must output at least one column.ÁüžŸMJ * The column names of the query must match the field names of the struct.ÁüìŸb_ * The field types must be the Rust equivalent of their SQL counterparts; see the correspondingÁüÏ ,) module for your database for mappings:Áüü ,) * Postgres: [crate::postgres::types]Áü©¡&# * MySQL: [crate::mysql::types]ÁüСWT * Note: due to wire protocol limitations, the query macros do not know whenÁü¨¢[X a column should be decoded as `bool`. It will be inferred to be `i8` instead.Áü„£-* See the link above for details.Áü²£(% * SQLite: [crate::sqlite::types]ÁüÛ£_\ * If a column may be `NULL`, the corresponding field's type must be wrapped in `Option<_>`.Áü»¤>; * Neither the query nor the struct may have unused fields.Áú¤úüþ¤b_ The only modification to the `query!()` syntax is that the struct name is given before the SQLÁ\ᥠstring:Á”í¥°ÏÄ€¦ËÏü™¦?íÏÄÙ¦µÐüò¦*×Ðü§S‹Ñ,ñ§çÑü÷§ZöÑüÒ¨CÚÒ¤–© #[derive(Debug)]Á¤«© struct Account {Á„À©
id: i32,Á¤Ñ© name: StringÁ,æ©ì©úüð©,§Óüª" let account = sqlx::query_as!(Á¤Àª Account,ÁüÕª_µ÷„µ«øLÆ«¶øìЫ²Ô„î«ØÔÿ«ú䃬ÅÕü ¬1ëÕÒ¬údÖ¬±Ö<ã¬ÆÖ,ë¬çÑüñ¬IäÖ”»­¶×<έÑ×Ö­úüÚ­NK **The method you want to call depends on how many rows you're expecting.**Á©®úü­®eb | Number of Rows | Method to Call* | Returns (`T` being the given struct) | Notes |Áü“¯eb |----------------| ----------------------------|----------------------------------------|-------|Áüù¯wt | Zero or One | `.fetch_optional(...).await`| `sqlx::Result<Option<T>>` | Extra rows are ignored. |Áüñ°µ² | Exactly One | `.fetch_one(...).await` | `sqlx::Result<T>` | Errors if no rows were returned. Extra rows are ignored. Aggregate queries, use this. |Áü§² | At Least One | `.fetch(...)` | `impl Stream<Item = sqlx::Result<T>>` | Call `.try_next().await` to get each row result. |Áü¸³PM | Multiple | `.fetch_all(...)` | `sqlx::Result<Vec<T>>` | |Á‰´úü´YV \* All methods accept one of `&mut {connection type}`, `&mut Transaction` or `&Pool`.Áüç´XU (`.execute()` is omitted as this macro requires at least one column to be returned.)ÁÀµúüĵ52 ### Column Type Override: Infer from Struct FieldÁüúµVS In addition to the column type overrides supported by [`query!`][`crate::query!`],ÁüѶ30 [`query_as!()`][`crate::query_as!`] supports anÁü…· additional override option:Á¥·úü©·_\ If you select a c
out_structÁT´Ï& ¾Ï8õ
$¿Ï$ ÃÏ, ÅÏ8×>,ÆÏ& ËÏ8$ÌÏ*ÒÏ ÕÏ °Ð ×Ï ¯Ð, áÏ8,âÏ'çÏ8Ä\éÏ'ôÏ8ßÔdöÏ ‚Ð ƒÐ ©Ð 8recordÁ4„Ð ‹Ð, Ð8»°TŽÐ$ ˜Ð8ŠÕ4šÐ ¡Ð, £Ð8×>,¤Ð% ±Ð ·Ð ãÐ
, ¸Ð8»°T¹Ð& ÃÐ8õ
$ÄÐ$ ÈÐ, ÊÐ8×>,ËÐ& ÐÐ8$ÑÐ$ ÕÐ, ×Ð ØÐ áÐ, ÙÐ8À$ÚÐ& ÞÐ8¯ßÐ
âÐ*åÐ èÐ ×Ñ êÐ ÖÑ, ôÐ8,õÐ'úÐ8Ä\üÐ'‡Ñ8ßÔd‰Ñ •Ñ –Ñ ÐÑ
8޲4—Ñ žÑ,  Ñ8»°T¡Ñ$ «Ñ8ŠÕ4­Ñ ´Ñ, ¶Ñ8×>,·Ñ$ ¼Ñ8À$¾Ñ ÃÑ ÅÑ ÏÑ, ÆÑ ÇÑ ÍÑ, ÈÑ8À$ÉÑ
ÎÑÔãÚüÝÑif Combines the syntaxes of [`query_as!`][`crate::query_as!`] and [`query_file!`][`crate::query_file!`].ÁÇÒúüËÒ?< Enforces requirements of both macros; see them for details.Á‹ÓúÓ°ÏÄ¢ÓËÏü»Ó?íÏÄûÓµÐü”Ô*×Ðü¿ÔS‹Ñ,“ÕçÑü™ÕZöÑüôÕCÚÒ¤¸Öƒ‡¤ÍÖ¡‡„âÖ¿‡¤óÖÙ‡,ˆ×÷‡Ž×úü’×,§Óü¿×[X let account = sqlx::query_file_as!(Account, "tests/test-query-account-by-id.sql", 1i32)Áì›Ø²Ô„¹ØØÔÊØúäÎØÅÕüëØ1ëÕÙúd¡Ù±Ö<®ÙÆÖ,¶ÙçÑü¼ÙIäÖ”†Ú¶×<™ÚÑ×(|¡ÚMH þÚ ·Ý „Û ¤Û , …Û8»°T†Û& Û8õ
$‘Û$ •Û, —Û8õ
$˜Û& œÛ8«<Û*¦Û ©Û ˆÜ «Û ‡Ü, µÛ8,¶Û'»Û8Ä\½Û'ÈÛ8ßÔdÊÛ ÖÛ ×Û Ü 8޲4ØÛ ßÛ, áÛ8»°TâÛ$ ìÛ8Ùë\îÛ úÛ, üÛ8õ
$ýÛ% ‰Ü Ü ½Ü
, Ü8»°T‘Ü& ›Ü8õ
$œÜ$  Ü, ¢Ü8õ
$£Ü& §Ü8«<¨Ü$ ¯Ü, ±Ü ²Ü »Ü, ³Ü8À$´Ü& ¸Ü8¯¹Ü
¼Ü*¿Ü ÂÜ µÝ ÄÜ ´Ý, ÎÜ8,ÏÜ'ÔÜ8Ä\ÖÜ'áÜ8ßÔdãÜ ïÜ ðÜ ®Ý
8޲4ñÜ øÜ, úÜ8»°TûÜ$ …Ý8Ùë\‡Ý “Ý, •Ý8õ