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

334 lines
118 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Á’·záD­.‰ï"C-ae3f0d63c75ff3f6Á sqlx_coreÁž¼éVs‰¯ ;BP¬j`ÿ-c1c087e83c504d5fÁ futures_coreÁÆöc$޳–º¾v¸dK-ac1e9cdb826f83c0Á futures_utilÁäòå®n¹Z<5
¶BCqÔ-ce962efd3c25dc6aÁ futures_taskÁÀð‘ôRî-Ø¡±ê¹-b68ad6d97da04350Á futures_sinkÁL1T𽉤
¾
Èþ.-14e3b8a05e30b9eeÁpin_project_liteÁ·x¼+Ä`·á¨›t—¸Íœ-2dc344ecc91b59efÁslabÁIø–4àzYMW•˜†‚Ä-35aba13cdef5badeÁ
futures_ioÁTo«Š§ J­íZu\Ȩ-94612345b0215f77Áì­†°<šÒ"®9eæ·3š¶Ø-809318e8f6183885Áevent_listenerÁ+JëX»cbœ»óQ-7e2a17274c6eb0b6ÁparkingÁ‹‡Ð¢—qQÙ=¼ùÊcl-b5ff150e1efd5666ÁeitherÁèÿf`X¶.¤Éá¶Ò
Ô-4ca732defe42ee22ÁserdeÁFVæ¸Û•IÄÀzÍ-9c8ce3cf08540cc3Á serde_deriveÁ,w|êñ]ù¿¥­C£ð-975c43f96d83014eÁ
serde_coreÁ²€Ãb˜cÐòžÇÇ
-7a42419d8e43b208Ácrossbeam_queueÁG1M¶ºŸKýl;2-04c07d9f0d9b8a99Ácrossbeam_utilsÁшce¡B.^ ~¶-ÕX-3fc97031a65be933ÁtracingÁÍím#žu‡K2c¦mu°-8c77d689db09a7a1Á tracing_coreÁ ×Üç2cà‡&AfR˜-e3485af10456d858Á once_cellÁ6ÿ]Ô¯q4c]kÂÓ‹-a47cd60ec4e2e104Átracing_attributesÁÿS:FN¢×D2pª`;¨-40899a47d4b3db36ÁlogÁ’@ž®LäÏë´©†l¶æÞ-d2ed4e8c2a586cf8ÁurlÁ|2¿Ë|«ÔËÞ
Î'7‰&h-eb4862146510db1cÁform_urlencodedÁg
¥N`ù®”b§³‚ŽŠ-8b8228a5928ce2f9Ápercent_encodingÁ¼Ë¥"Iý¹é·Aµ†gãä-bde46fa019ba58c1ÁidnaÁ×—Ö½;Çí6öpU…·-5708750a07396acaÁ idna_adapterÁ¨Võý|ìÖà%\!2øB-f67616d3ed188abdÁicu_normalizerÁ‡/CE@îÁŽ<{9ÐháX-4bb868b749a66746Á icu_providerÁ±Õ¿¨ÞNXþNmÖ(/ÂèS-db5b46d656d85189ÁzerotrieÁá}"SŽUMö@0=$_²-05178122ec16f752Á
displaydocÁ©$-.ÿæ§ï=[œiF-53df79815c011341ÁzerofromÁ/ŽErÅÉŽV 7Í-92c585200eab8211Ázerofrom_deriveÁŸæþÇŽá2?M¥e (-abe85a41d9dcc735ÁyokeÁ?9›Š´;1ˆOøÀ-f8bf9e5b8bbb2034Ástable_deref_traitÁ½ÊTýö÷n˜TóQ-á†-771635b0451f799dÁ yoke_deriveÁ×ã„Ô„ýT·+CIƒ•sÙ-ad663b8de2c8c776ÁzerovecÁ 
åLì{'h‚ïhïD¯Ð-719747d224e025f1Ázerovec_deriveÁ£½+d“ð΃-m*¸]-09ac241eaa4a8700Á writeableÁ²é´‘¥1§%‚ý uÈ%-735c33932dd69842Áicu_locale_coreÁ*WéŽu>9gà ¦$hs-18874daa5c5c87adÁlitemapÁÎ xj+Þ*`²ÔtJ²-5054981e83d0528aÁtinystrÁ ²ãЕ 'xË´BXßñÖ-607f5ace9a59a465Áicu_collectionsÁŸÚõñ«œnD&èK˜vf—-7ebf91bcf11bab00Á
potential_utfÁ‘j&fX`ËW¯czw㈛-f50640784dd0cec0Á utf8_iterÁ‚×úÐ'œÌx G¤Ä^-6f20145e2e3e1c24Áicu_normalizer_dataÁÈÙãµ§ù»/ô#\“ï-4d42ceae66c85c80ÁsmallvecÁ[“S‰«2ûÓàÁ3™ËºS-fa382cf08413422fÁicu_propertiesÁѬU°É(W9PKÅQ{5øú-18d7694dd09bc684Áicu_properties_dataÁTˆ{Z3Ñnþ&H¶=_?3-8894fd72e4000317Á
serde_jsonÁ½vD~ü'ÇÄtÛ?-6e8a40e7f3a7e75cÁzmijÁ[‰Œ×ªo–ÛX—x iHÞh-d3bb8ac9b6edd7e7ÁitoaÁrLpèòÐ
ݽ‚AéGT'-7ba5a7b63f68a66bÁuuidÁhퟦ¬EFÕ9_´àië-90bb7996a958157bÁ getrandomÁ4—'mÄÄb8JE—…–×¾O-2602314af26fef0eÁ®f©¾/ô)c§{õa“â‘-a3906971a93fd1b8Áæ\‹±ÔcdùÀTƒ-f86f80b348d33b13ÁchronoÁWqŠ0Ú²9К—±=±VB-6747040ecf3e1b49Á
num_traitsÁËßM6@eg^…RžºQ®–•-cec9984d90a4582aÁiana_time_zoneÁFID}3s;N-6b7b992bdb79ee75ÁhashlinkÁ e¿¡€ãÈ­>¶*®X-9e2ed43f99941422ÁÐû†lôˆ/Æí_Ï̱ -7d7f68df13b21e9eÁallocator_api2ÁÆÛŠfêxuìÌ@˜(}Ïu-7b02f80e4eb85c1bÁ
equivalentÁ˜úôa ,tùƳJ8®ød-293c030140ba1879ÁfoldhashÁ¨%¹9ü'?ž˜ë‰4Î-307afae06628b423ÁbytesÁ`²['3_²µÆ=üå¥-d4f44708ed5da7b6ÁtokioÁJ;Ì3<þÝñŠ7_ú-081d57d1ceb823d6Á parking_lotÁâ°r4¨6ª(ü²Hd©n¼-21962aa896c8619bÁlock_apiÁEcÓŽ/ÅS}sw‡A$P-0e8055cd433fa267Á
scopeguardÁ’‰‘p ÒÞa¢ßöéqÓB-29f0bdb2ea82739eÁparking_lot_coreÁ’Ý%Ž=Eq^U4FOV)àŸ-e1ee0517e8b9a4bfÁmioÁGùj0ðÔ·â"FÆ#0Q-3545320490828222Á tokio_macrosÁóÁm¹^E¼>ŽCê
z3-074a4ab5bbda1a72Ásocket2ÁsT›¸n>~RÊ1G/R-c161f09f0083d1e0Ásignal_hook_registryÁœ¥¿’g›´·DV<{Y<<-b3ea108dcb9d0adeÁerrnoÁÍ\Ý|#{°zŽ¡p&a”-464950f23d45b34dÁrustlsÁ{Žd¢ü úι-1c236759fdf42e19Árustls_pki_typesÁµÛðóœuÌëîÓ0ä-147af539bd630859ÁzeroizeÁ6ƒÛú jåðpÄ"Ô„Ç|-b0245ee0360ecfa9ÁringÁÁóâøµ–¤ü F]ˆ-8bf0a65a1b42544eÁ untrustedÁI /ý+OÆ]‡ôd‰ð.-d6cd86ad6d3ca912Á³žKYÆB |R¬*9"ÌÝ-50ddae19eb09a1dfÁwebpkiÁ[Ûæ~m¦ÎÁT#GÅ×-7ab6aa15d9c21605ÁsubtleÁÞOs&¡A ¹]ujO -cb07c5ee900298efÁ¹
!N¯­Ó”Š®ÑË‘
jM½-3684fb982c3ece70ÁdigestÁ¶þ°* óz긮°Ñˆ*-8124c3906c1a7855Á
crypto_commonÁMy¤íJÇ;&‰îíW^ö-807a0dbc2f77ddb7Á
generic_arrayÁç"„wÑÒÕµµ¥;è-1fbbe396c4d2fae7ÁtypenumÁ/-;@ú¨_z,Ö-6209550d9c65d0a6Á block_bufferÁl²>O;-bsò D’¶Á-fa8e2dfb5eb7e256Ábase64Á¨NÁP5̘B¥õˆ¤Œ-c809ae07e9abf466ÁindexmapÁ9šï‰ŠW…ŠÌÃÓƒ)¾X-e39f47a39f77fff5ÁЭ2Ïs/ƒótà-a971313051c2b5a1Á thiserrorÁ´,-Uô!ÌÓ°™û½©|#§-9a017bdf1f6911cfÁthiserror_implÁ
²,v€ϸ6»˜-248901177889560cÁ webpki_rootsÁË©^i5v$ qÜÞÂP-59afda15952c6c19Áí,­S¸ÄyÄñuhä êB-6b879bfb8daa318dÁ
sqlx_postgresÁFC©6bº[âÛ1|tævw-a8c69def8e2fc5b9ÁhkdfÁL6”ß~Wz€s¯-6b6fe5b97fc546feÁhmacÁ襤ÆÂöÇTé{GØ-b15597c08a36c459ÁrandÁöûƒß銕™1ð-e4be333b0dd276d4Á rand_coreÁU9åaï¡ü_á2:Mlä-1cdd200313d704e7Á rand_chachaÁjž Z¦v×§õ´B~ÍšÆ-22f6af31a589a31aÁ
ppv_lite86Á<<rîd”Û Jøƒ¨x7qï-b7bc7268307ccbaaÁzerocopyÁ{£F™8ù£´ÉÒ6ñ°i-37880aa70dfe9a6cÁ
stringprepÁª])+hcxÕd¬Úh"Þ-eb0faa6406397696Á unicode_bidiÁ@E½è
dœåXKÇ·#öÜ-f3bfbacdd3c273f5Áunicode_normalizationÁ© m”¹×ÕšÂBÓH.åÊ-97fc3b86e8adde18ÁtinyvecÁeMaäÇõ‡ ã RîNSþ-bb3fd78d7c4e5a88Átinyvec_macrosÁö½‡˜$cþó£OOú¼öI-094edce1c837194aÁunicode_propertiesÁ³ÄW7ËÙµÆú‘ðÐi-0166d2186658b947Áfutures_channelÁ{Ï‚ÛìM],´Þ¯"—J-d8b3e3bb0a4b977dÁatoiÁŒ!¨£ò²Šæññ{1!Ù-c297ff67d1bf99f8Á byteorderÁóU|yyÙƒ2µlœë †-f02c079b73e2eb0aÁmd5ÁðûÍ”—&¦œî†„Íh-077cbfb80cf2a6f8ÁbitflagsÁÊCd©Áòt!ž
è±éŠ-795688bf52842371ÁhomeÁJc p|kå¡8äÐÜÑ-821000f2cd9888b1ÁwhoamiÁÓõ#j
¥ÙÑ—¾Ýöô4´-5d3cb37dc8beefeaÁhexÁEÃU| ÛÔÌ¿u7?7-c4047d4b636fae62ÁcrcÁRí[L'¶ÝÐÚuûÑ»-42273947ba9df12bÁ crc_catalogÁÒÖÖc0Áó
Ý´^ûâ×-8da772afb6c02e51ÁdotenvyÁC v=<sdü|ÂPÍè-f0242bbf0be5744bÁmysqlÁ,Ä
»§7ŒÎ MySqlÁ,Ë
»§7MySqlConnectionÁ|Ò
»§7>@
MySqlExecutorÁlã
»§7_a MySqlPoolÁLò
»§7|~MySqlTransactionÁ„ý
»§7 ¢sqliteÁ4â»_sqliteÁœçSqliteÁ4ê»ò8SqliteConnectionÁ„ò»ò8@BSqliteExecutorÁt„»ò8bd
SqlitePoolÁT”»ò8SqliteTransactionÁŒ »ò8¥§À 
  
 !"#$%&'()*+,-./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ÁÕBpüBÕBpœüBœÕBpŸüBŸÕBp¢üB¢ÕBp ¥üB¥ÕBp
¨¥¨ÕBp «¥«ÕBp ®¥®ÕBp
±¥±ÕBp´¥´ÕBp·¥·ÕBpº¥ºÕBp½¥½ÕBpÀ¥À¦ÀÕBp
conjure_valueÁÄ¥p
dupe_valueÁÆ¥
spec_errorÁÈÈÈÈÈÈSpecErrorWrapperÁÎ
ÎÎˆÈ SpecErrorÁÒÒ__sqlx_spec_errorÁÈÕÕÓF× ÈÙÙÓFÛ ÈÝÝÓFß ÈááÓFã ÈååÓFç È __spec_errorÁGtypesÁëëencodeÁîîîîHdecodeÁôôIò=øøøøø¥ þþþþþþþþþþ þ
r
r
}


¨
«
«
®
±
±
´
·
·
º
½
½
À
Æ
Ô
Õ
Õ
Õ
Õ
×
Ù
Ù
Ù
Û
Ý
Ý
ß
á
ã
ç
~“Ò~ttu¼@xˆpyp ‚[¤s¤½Hž¥Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¦~ 8ttu¼@xˆpyp ‚[¤s¤½Hž¥¦ŠìAˆpŽp …Æï¾ÇDœÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ üBÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙúHúHßûHÁ‘4Ý­f‰úM÷ŠìAˆpŽp …Æï¾ÇDœÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ üB
Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙªBªBö­BbufÁ÷<®B÷<9)
-ÜnLÔPçEçEèEGlobalÁ ¿±‡§í#ŠìAˆpŽp …Æï¾ÇDœ„NÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ üB—OŠìAˆpŽp …Æï¾ÇDœˆPÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ üBQŠìAˆpŽp …Æï¾ÇDœÉN—OŠìAˆpŽp …Æï¾ÇDœÍPQŠìAˆpŽp …Æï¾ÇDœ 8´M´MŠìAˆpŽp …Æï¾ÇDœ 8 8¥áVŠìAˆpŽp …Æï¾ÇDœ´MˆVŠìAˆpŽp …Æï¾ÇDœáV×VŠìAˆpŽp …Æï¾ÇDœÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙˆVÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ´MŠìAˆpŽp …Æï¾ÇDœÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ×VÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙáVŠìAˆpŽp …Æï¾ÇDœ‰YÁXŠìAˆpŽp …Æï¾ÇDœÜZ”Z 8ŠìAˆpŽp …Æï¾ÇDœ´MºMÒ 8 8 8 8ÎÎÏFш ¨årñ
‡pÓÏ]Ò 8 8 8ÎÎÏFш ¨årñ
‡pÓ¡^Ò 8 8ÎÎÏFш ¨årñ
‡pÓí^Ò 8ÎÎÏFш ¨årñ
‡pÓ³_ÒÎÎÏFш ¨årñ
‡pÓó_t…
œŸ¢¥¨«®±´·º½À
Õ
Ù
Ý
á
åÎ~ ÒgÌ‚  t¡LìL u,ttu¼@xˆpyp ‚[¤s¤½Hž¡LìLq PhantomDataÁFu\»Ÿ¡L©ŸaFu\»ŸìLÖÝäß  ¡LìL!Š.ŠìAˆpŽp …Æï¾ÇDœ¡LìLx‘bÉbô‹ Îó_Ï(Ä_3ó_:AøJbpÈëîôþÀG<Ç ArgumentsÁLï¡
IntoArgumentsÁlúªColumnÁ4¥ª  ColumnIndexÁ\ȯ ConnectOptionsÁtõÜ
ConnectionÁT…½ databaseÁ$°

DatabaseÁD¶
DescribeÁDÞÊ ExecuteÁ<†ö
ExecutorÁDÉ
FromRowÁ<· Àf
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˜u9 PgConnectionÁd¢:
PgExecutorÁT°uˆ;PgPoolÁ4¼u†<
PgTransactionÁlÄu=PostgresÁDÓu>Ém>AnyÁ¡Î%ANómÏ%AN AnyExecutorÁ\¦ÛBQÄ\‰C
GtestingÁ<ŽäH
test_block_onÁl¾ ÍIþ=|‘„d”>T¼’e¥>¤Þ–fÏ>lðÚhã>”ßßiü>¼øäj­?ŒólÅ?´‡ùmâ?ܦÿnîGdÁ é__rtÁ$ÑêEncodeÁ4صóðÊpóòDecodeÁ4Å!É÷õúp÷ö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¡¹dyª×drª îdf¯ ŠeWÜ
©eL½ ÄeC

Ýe:
öe1Ê f)ö
§f É
Àf Àf(
Eçf¸üfí‘gû ò=ú  ò=
cÓgð ƒ À>ï ØÀ>ÿgŒhâ ݪhÔôÈhǃ åh¬ ©!š?« ž#š?»k®iš £$Ði Ç&èiÃ'ÿiø(“j} )­jqù+Éj^ñ,ìjU-óTÇ.ód F¥kO0»kF¬1Ôk?2ëk9]4€l3³5Í2f6„@1²7„@AoÄl)u9Ül:ùluˆ;”m
u†<«müu=Émóu>Ém>ómðÎ%ANómÏ%ANžnåÛBQÄäCã
GÞnÛäHönÍ ÍIþ=Ìd”>Êe¥>ÈfÏ>Æhã>Äiü>Âj­?ÀlÅ?¾mâ?¼nîGºé´pµêÊp®µóðÊpÃóòúp¨É÷õúp½÷öªq¡Ù@]ÅqÊ%@^vy|ܳt¤ØadILÌ’<ôµ'¬ÝúýœšëÙÜìÉʜ𹼦©ä¢˜{mpüþ#T„ÂJM(+œñ!$üÿÄ©èÒÕüð1²¼É¨« qt`cœ¼ VüÙ D´‚
/2ôÅ
´í
ù ÛÞÈËŒº »„å ¬ ž¡”³ $rY\DG36 T†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ómàÎ%NómÏ%N AnyArgumentsÁdåËOAnyConnectOptionsÁŒóÞ%Pžn\†ÛQAnyPoolOptionsÁt“ÚRAnyQueryResultÁt£å%SAnyRowÁ4³ì%T AnyStatementÁd¿ñUAnyTransactionManagerÁ¬ÍVç¢V AnyTypeInfoÁ\ä†&WAnyTypeInfoKindÁ|ñ&XAnyValueÁDÐ&Y AnyValueRefÁ\ŒÖ&ZAnyKindÁ<ÊÒ%[|~Øü˜'¾´·ŒpsehLO36"% ëíÁÃ¥§xz¼ºhÄÔªqßÙ]ÅqÎÊ%^¼öì æü¤ üÂ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Á¼« 
_ŒË Jï8ï8Ì ð8innerÁé8ãTPàVçaB
_<closure_kind>Áa<closure_signature>Áa<upvars>Áaa_aT»å=”úÔô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.Á(|¶7 ó– ü˜ ù– ‡—, ú–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¢µ”†Úôµ<™Ú(|¡ÚÆ7 þÚ ·Ý „Û ¤Û , …Û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õ
$–Ý$ šÝ8À$œÝ ¡Ý £Ý ­Ý, ¤Ý ¥Ý «Ý, ¦Ý8À$§Ý
¬ÝüÒßü»Ýxu A variant of [`query_as!`][`crate::query_as!`] which does not check the input or output types. This still does parseÁü´Þ[Џ(|ßÖ7 òß Ââ øß –à , ùß8ùŽTúß& „à8õ
$…à$ ‰à, ‹à8ò=,Œà& ‘à8$’à*˜à ›à ‡á à †á, §à8,¨à'­à8Ä\¯à'ºà8³d¼à Èà Éà €á
8Ì4Êà Ñà, Óà8ùŽTÔà$ Þà8ȳ4àà çà, éà8ò=,êà$ ïà8âº<ñà ùà8 ,ûà% ˆá á »á
, á8ùŽT‘á& ›á8õ
$œá$  á, ¢á8ò=,£á& ¨á8$©á$ ­á, ¯á °á ¹á, ±á8À$²á& ¶á8¯·á
ºá*½á Àá Àâ Âá ¿â, Ìá8,Íá'Òá8Ä\Ôá'ßá8³dáá íá îá ¹â8Ì4ïá öá, øá8ùŽTùá$ ƒâ8ȳ4…â Œâ, Žâ8ò=,â$ ”â8À$–â ›â â §â, žâ Ÿâ ¥â,  â8À$¡â
¦â$ ¨â8âº<ªâ ²â8 ,´âüëä$üÆâqn A variant of [`query_file_as!`][`crate::query_file_as!`] which does not check the input or output types. ThisÁü¸ãRO still does parse the query to ensure it's syntactically and semantically validÁì‹ä¹Ï(|©äæ7 å ìç –å ¶å , —å8ùŽT˜å& ¢å8õ
$£å$ §å, ©å8õ
$ªå& ®å8«<¯å*¸å »å «æ ½å ªæ, Çå8,Èå'Íå8Ä\Ïå'Úå8³dÜå èå éå ¤æ
8Ì4êå ñå, óå8ùŽTôå$ þå8—Ê\€æ Œæ, Žæ8õ
$æ$ “æ8âº<•æ æ8 ,Ÿæ% ¬æ ³æ áæ
, ´æ8ùŽTµæ& ¿æ8õ
$Àæ$ Äæ, Ææ8õ
$Çæ& Ëæ8«<Ìæ$ Óæ, Õæ Öæ ßæ, ׿8À$Øæ& Üæ8¯Ýæ
àæ*ãæ ææ êç èæ éç, òæ8,óæ'øæ8Ä\úæ'…ç8³d‡ç “ç ”ç ãç8Ì4•ç œç, žç8ùŽTŸç$ ©ç8—Ê\«ç ·ç, ¹ç8õ
$ºç$ ¾ç8À$Àç Åç Çç Ñç, Èç Éç Ïç, Êç8À$Ëç
Ðç$ Òç8âº<Ôç Üç8 ,ÞçÌ®ïüðçmj A variant of [`query!`][`crate::query!`] which expects a single column from the query and evaluates to anÁüÞè96 instance of [QueryScalar][crate::query::QueryScalar].Á˜éúüœé_\ The name of the column is not required to be a valid Rust identifier, however you can stillÁüüé_\ use the column type override syntax in which case the column name _does_ have to be a validÁüÜê]Z Rust identifier for the override to parse properly. If the override parse fails the errorÁüºë_\ is silently ignored (we just don't have a reliable way to tell the difference). **If you'reÁüšìb_ getting a different type than expected, please check to see if your override syntax is correctÁôýì before opening an issue.**Áœíúü ípm Wildcard overrides like in [`query_as!`][`crate::query_as!`] are also allowed, in which case the output typeÁä‘î is left up to inference.Á®îúü²î96 See [`query!`][`crate::query!`] for more information.Á(|ìîd»ï Èï ·ñ Îï Úï, Ïï8ò=,Ðï& Õï8$Öï*Üï ßï ­ð, éï8,êï'ïï8Ä\ñï'üï8³dþï Šð ‹ð §ð8scalarÁ4Œð “ð8 •ð$ –ð8ȳ4˜ð Ÿð, ¡ð8ò=,¢ð% ®ð ´ð Îð, µð8ò=,¶ð& »ð8$¼ð$ Àð, Âð Ãð Ìð, Äð8À$Åð& Éð8¯Êð
Íð*Ðð Óð µñ, Ýð8,Þð'ãð8Ä\åð'ðð8³dòð þð ÿð ¯ñ 8¬¼4€ñ ‡ñ8 ‰ñ$ Šñ8ȳ4Œñ “ñ, •ñ8ò=,–ñ$ ›ñ8À$ñ ¢ñ ¤ñ ®ñ, ¥ñ ¦ñ ¬ñ, §ñ8À$¨ñ
­ñô€óü»ñWT A variant of [`query_scalar!`][`crate::query_scalar!`] which takes a file path likeÁü“ò*' [`query_file!`][`crate::query_file!`].Á(|¾òö7 Ÿó šõ ¥ó ³ó, ¦ó8õ
$§ó& «ó8«<¬ó*µó ¸ó Šô, Âó8,Ãó'Èó8Ä\Êó'Õó8³d×ó ãó äó „ô8¬¼4åó ìó8 îó$ ïó8—Ê\ñó ýó, ÿó8õ
$€ô% ‹ô ‘ô ­ô, ’ô8õ
$“ô& —ô8«<˜ô$ Ÿô, ¡ô ¢ô «ô, £ô8À$¤ô& ¨ô8¯©ô
¬ô*¯ô ²ô ˜õ, ¼ô8,½ô'Âô8Ä\Äô'Ïô8³dÑô Ýô Þô ’õ 8¬¼4ßô æô8 èô$ éô8—Ê\ëô ÷ô, ùô8õ
$úô$ þô8À$€õ …õ ‡õ ‘õ, ˆõ ‰õ õ, Šõ8À$‹õ
õüúø#üžõc` A variant of [`query_scalar!`][`crate::query_scalar!`] which does not typecheck bind parametersÁü‚ö,) and leaves the output type to inference.Áü¯öOL The query itself is still checked that it is syntactically and semanticallyÁüÿöc` valid for the database, that it only produces one column and that the number of bind parametersÁ|ã÷ is correct.Áó÷úü÷÷@= For this macro variant the name of the column is irrelevant.Á(|¸ø8 žù ¯û ¤ù °ù, ¥ù8ò=,¦ù& «ù8$¬ù*²ù µù ”ú, ¿ù8,Àù'Åù8Ä\Çù'Òù8³dÔù àù áù Žú 8¬¼4âù éù8 ëù$ ìù8ȳ4îù õù, ÷ù8ò=,øù$ ýù8âº<ÿù ‡ú8 ,‰ú% •ú ›ú µú, œú8ò=,ú& ¢ú8$£ú$ §ú, ©ú ªú ³ú, «ú8À$¬ú& °ú8¯±ú
´ú*·ú ºú ­û, Äú8,Åú'Êú8Ä\Ìú'×ú8³dÙú åú æú §û8¬¼4çú îú8 ðú$ ñú8ȳ4óú úú, üú8ò=,ýú$ ‚û8À$„û ‰û ‹û •û, Œû û “û, Žû8À$û
”û$ –û8âº<˜û  û8 ,¢ûü™ÿ(ü³ûb_ A variant of [`query_file_scalar!`][`crate::query_file_scalar!`] which does not typecheck bindÁü–ü74 parameters and leaves the output type to inference.ÁüÎüB? The query itself is still checked that it is syntactically andÁü‘ý`] semantically valid for the database, that it only produces one column and that the number ofÁüòý bind parameters is correct.Á’þúü–þ@šÊ(|×þ8 Âÿ ß Èÿ Öÿ, Éÿ8õ
$Êÿ& Îÿ8«<Ïÿ*Øÿ Ûÿ ¾€, åÿ8,æÿ'ëÿ8Ä\íÿ'øÿ8³dúÿ †€ ‡€ ¸€ 8¬¼4ˆ€ 8 ‘€$ ’€8—Ê\”€  €, ¢€8õ
$£€$ §€8âº<©€ ±€8 ,³€% ¿€ Å€ á€, Æ€8õ
$Ç€& Ë€8«<Ì€$ Ó€, Õ€ Ö€ ߀, ×€8À$Ø€& Ü€8¯Ý€
à€*ã€ æ€ Ý, ð€8,ñ€'ö€8Ä\ø€'ƒ8³d…   ×8¬¼4“ š8 œ$ 8—Ê «, ­8õ
$ ²8À ¹ » Å, ¼ ½ Ã, ¾8À$¿
Ä$ Æ8⺠Ð8 ¤š ü‹‚pm Embeds migrations into the binary by expanding to a static instance of [Migrator][crate::migrate::Migrator].Áü‚ú”€ƒî­ü“ƒ# sqlx::migrate!("db/migrations")Áœ·ƒ .run(&pool)Á„˃–³<܃äƒú”èƒî­üûƒ  use sqlx::migrate::Migrator;Áœ„úü „OL static MIGRATOR: Migrator = sqlx::migrate!(); // defaults to "./migrations"Á<ð„ø„úüü„_\ The directory must be relative to the project root (the directory containing `Cargo.toml`),ÁüÜ…^±Â„»†™Ã̆úüІro See [MigrationSource][crate::migrate::MigrationSource] for details on structure of the ./migrations directory.ÁÇúüLJ41 ## Triggering Recompilation on Migration ChangesÁüü‡da In some cases when making changes to embedded migrations, such as adding a new migration withoutÁüáˆc` changing any Rust source files, you might find that `cargo build` doesn't actually do anything,ÁüʼnYV or when you do `cargo run` your application isn't applying new migrations on startup.ÁŸŠúü£ŠXU This is because our ability to tell the compiler to watch external files for changesÁüüŠ\Y from a proc-macro is very limited. The compiler by default only re-runs proc macros whenÁüÙ‹c` one or more source files have changed, because normally it shouldn't have to otherwise. SQLx isÁü½Œda just weird in that external factors can change the output of proc macros, much to the chagrin ofÁü¢-* the compiler team and IDE plugin authors.ÁÐúüÔ\Y As of 0.5.6, we emit `include_str!()` with an absolute path for each migration, but thatÁü±ŽSP only works to get the compiler to watch _existing_ migration files for changes.Áúü‰a^ Our only options for telling it to watch the whole `migrations/` directory are either via theÁüë\Y user creating a Cargo build script in their project, or using an unstable API on nightlyÁìÈ governed by a `cfg`-flag.Áæúüê)& ##### Stable Rust: Cargo Build ScriptÁü”‘`] The only solution on stable Rust right now is to create a Cargo build script in your projectÁüõ‘:7 and have it print `cargo:rerun-if-changed=migrations`:Á°’út´’ `build.rs`ÁlÃ’
```no_runÁ|Ñ’ fn main() {Áüá’63 println!("cargo:rerun-if-changed=migrations");Á,˜“µæ<ž“¦“úüª“PM You can run `sqlx migrate build-script` to generate this file automatically.Áû“úüÿ“ª§ See: [The Cargo Book: 3.8 Build Scripts; Outputs of the Build Script](https://doc.rust-lang.org/stable/cargo/reference/build-scripts.html#outputs-of-the-build-script)Áª•úü®•! #### Nightly Rust: `cfg` FlagÁüЕZW The `migrate!()` macro also listens to `--cfg sqlx_macros_unstable`, which will enableÁü«–`] the `track_path` feature to directly tell the compiler to watch the `migrations/` directory:ÁŒ—ú
```sh,ignoreÁü¡—<9 $ env RUSTFLAGS='--cfg sqlx_macros_unstable' cargo buildÁ<Þ—æ—úüê—a^ Note that this unfortunately will trigger a fully recompile of your dependency tree, at leastÁü̘YV for the first time you use it. It also, of course, requires using a nightly compiler.Á¦™úüª™EB You can also set it in `build.rustflags` in `.cargo/config.toml`:Á”ð™ ```toml,ignoreÁ\ƒš [build]Áüš.+ rustflags = ["--cfg=sqlx_macros_unstable"]Á<¾šÆšúüÊšA> And then continue building and running your project normally.ÁŒ›úüXU If you're building on nightly anyways, it would be extremely helpful to help us testÁüé›)& this feature and find any bugs in it.Á“œúü—œb_ Subscribe to [the `track_path` tracking issue](https://github.com/rust-lang/rust/issues/73921)Áüúœ@= for discussion and the future stabilization of this feature.Á»úü¿a^ For brevity and because it involves the same commitment to unstable features in `proc_macro`,Áü¡žUR if you're using `--cfg procmacro2_semver_exempt` it will also enable this featureÁü÷žvs (see [`proc-macro2` docs / Unstable Features](https://docs.rs/proc-macro2/1.0.27/proc_macro2/#unstable-features)).Á»„@œôŸÜîŸ(|Š <§  ¯  Ê¡ µ   , ¶ 8dirÁ· & º 8«<» *Ä  Ç  û  È  ú , Ò 8,Ó 'Ø 8Ä\Ú 'å 8„@<ç  î  ï  ô , ð 8ªýñ % ü  ƒ¡ „¡*†¡ ‰¡ Ç¡ Š¡ Æ¡, ”¡8,•¡'š¡8Ä\œ¡'§¡8„@<©¡ °¡ ±¡ À¡7 ./migrationsÁt²¡% È¡„×»å=”³Ô­rtu~‰ŠÄÆŸa\pqŸa p%üÚ#Š Š¡L ¡L¥ss òÍì¡L ë
r¡L_1Áî_2Áö!0D ¥v¦wwvÙ‚ ÍììL Ða‚[¤s¤½HžuxybÉbÐa0jpbÉbÐatt
u¡LìLy{vxpttbt¬ pttÉb̾ ¥{¦||{Ù‚ à ǃ Æ Ða}äÞ å Œ ŒìLÐaz ï z
}¡LìL_argÁ$é ä±

~~Íì
~Ô†Ô†Íì܆
ˆ‡

~~üç
#
܆~~
܆
üÁ 1¥¦ƒƒÙ‚ Æ ǃ É êK„  Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¡Lü– -8¥¦Íì´M ÍìºM ž øLˆ  ´M1 ¥¦ŒŒÙ‚ ö ǃ ù ½c…Æï¾ÇDœŠŽ‘bÉb½c1ip‘bÉb½c
Š¡LìLwy|~ p‘btŒ
pÉbäž
¥¦Ù‚ £
ǃ ¦
½c’üÁ
%È
Ž¡L ŽìL¡L½c Ö

¡LìL¿ Ì
_uÁÒ
ü¥Ô†,¿Ô†Ô†Íì܆æŽüÞ&܆îŽ
܆ü»HüBÈM˜À<„Nü­JüBššÌO›²ˆPü¢LüB§œœ„Nü˜NüB  ¥S¡ŸŸˆPü‘8üB££ºT¤¢¢ÉNüë:üB¦¦ƒU§ð¥¥ÍPüÈ08¥©©ü‰ ÍÌUªdÿ<„¨¨´Mü”488¥¬¬ÍìáV ›V­««áVüä08¥¯¯ü‰ éóV°d< ®®´Mü°488¥²²ž” µ¼W³±±áVü€@8¥µµü‰ …X¶´´‰YüäD88¥¸¸ž” éØY¹<´··ÜZüÌ@8˜¥»˜»ü‰ Ñ«[¼d“<˜ºº‰Yü°D88š¥¾¾šž” µô[¿<€½½ÜZü˜38¥Á¦ÂÂÁü‰ ŒŠ  ½\Ã<×ÀÀºMôç¡L¥ÅÅÙ‚ ü
Ä¡L ü˜!œ œ¡L¡L¥ÇÇ ±Ù‚ ª
Æ¡Lý­””»å=”ðÔê4‹ÎÏÒómì%ÈÉ€l,#¾ÈÊp,9¿cÈÌpÂcÈÌt<@ÄcÈÍlRD.DF"$¢1„–ÐÐÍìó_ §Ä_¨årñ
‡pÓÏÑó_Ä_¢1Uó_Ä_ÎÎ
Ïó_dfÎÎó_ì³ÒÓÒÓÔ†Íì³_ ÇÒÔ†(Ô†ÔÔ*,ü×pŒÚ ܆„_žBoxÁ¡ˆˆ¢ˆl }.xϾ ÌìÝQÒ õÒ
Ô܆³_üË\8ž8Ÿ8 8¡Ö¡Ÿ žÖÍìÏ] оÏ],‰ÌìÏ]$‘ Ï]$˜Ï]Œ]×Ô×JLü®oŒ±¢ ¢Œ] ]¿ Õ ÌÕ
×8888Ï]¨×šªØ²ªØϪØØ×ØÏ] ]žÍŸ¡ˆˆ¢ˆl }.xϾ ÌìÝQüÃE8£8¤8¥Ú£¥¤ÚÍì¡^ ÈÄc¡^<€ã]ÛÔÛ!#üoŒ’¦ ¦ã]ò]¿ Ù ­Ù
Û888¡^ÛšªÜ²ªÜϪÜÜÛÜ¡^ò]Ó¤ü­B8§8¨Þ¨Þ§Íìí^ ²¿cí^´^ßÔß!#üöoŒù© ©´^¾^¿ Ý Ý
ß88í^$•ðßšªà²ªàϪààßàí^¾^Ó¤ü™?8ªâªâÅŸ žì%³_Ôÿ^ãÔã!#üßoŒâ« «ÿ^º á ýá
ã8³_㚪䲪äϪääãä³_„_Ó¤ü«
,ææù °
Ä_çÔçüÞ
o·
¬ ¬Ä_Ä_¿ å ü
å
çó_