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

306 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Áe¬åÄ™LÆXô0Ùr+-65e11b29d1c2f17bÁ futures_coreÁÆöc$޳–º¾v¸dK-ac1e9cdb826f83c0Á futures_utilÁ`Á–ëCÕ'÷…~[o*Þ-1e298781d8e8046eÁ futures_taskÁÀð‘ôRî-Ø¡±ê¹-b68ad6d97da04350Á futures_sinkÁ‰ð{Þý’ç KÛÉÔrë-be912d576bc746f9Á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Á v`C¥×ξ€w¸7$„-f2c255b522140eaeÁ tracing_coreÁ»vr²ñô+]S0V©l-d382389864483468Á once_cellÁ6ÿ]Ô¯q4c]kÂÓ‹-a47cd60ec4e2e104Átracing_attributesÁÿS:FN¢×D2pª`;¨-40899a47d4b3db36ÁlogÁNŠ~ÞïnÂ÷Åò´ ^-d0fa218afbce2067ÁurlÁšä\Rwí¯÷(#HZÖ-20365df434c1e9ddÁform_urlencodedÁvíÅ<oégfz÷
á-79816b41f933df15Ápercent_encodingÁ¼Ë¥"Iý¹é·Aµ†gãä-bde46fa019ba58c1ÁidnaÁm@ú#B&ÞrA\ùŸxhwª-ca21adab3736d65bÁ idna_adapterÁ³”Šœìôñ‚JEM-dc691235e787cd99Áicu_normalizerÁ™‹…Úúîµo³':B-67f6831fbc1d75b4Á 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Áµóª§eâéU
W¹Ñ-8fb808173b3f0087Á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Á,¿¢¨˜É0!ñ?-…”¼9-3beca82a6f76b5d4ÁmioÁGùj0ðÔ·â"FÆ#0Q-3545320490828222Ásocket2ÁsT›¸n>~RÊ1G/R-c161f09f0083d1e0Á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ÁZHõ„ÈöY+Dÿû<ðÒ-0362b31dd7204620Á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ÁÉXïŠ(tJ冾’¬[éx-c17d36c0bbbc5af3Á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Á,Ä
»¶4ŒÎ MySqlÁ,Ë
»¶4MySqlConnectionÁ|Ò
»¶4>@
MySqlExecutorÁlã
»¶4_a MySqlPoolÁLò
»¶4|~MySqlTransactionÁ„ý
»¶4 ¢sqliteÁ4â»_sqliteÁœçSqliteÁ4ê»6SqliteConnectionÁ„ò»6@BSqliteExecutorÁt„»6bd
SqlitePoolÁT”»6SqliteTransactionÁŒ »6¥§À 
  
 !"#$%&'()*+,-./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¥¦¥>p¥¦¥>p MatchBorrowÁ
¥¦ˆp¥¦æ pMatchBorrowExtÁMatchedÁ match_borrowÁp'aÁä?p‹@ä?pœ‹@œä?pŸ‹@Ÿä?p¢‹@¢ä?p ¥@¥ä?p
¨¥¨ä?p «¥«ä?p ®¥®ä?p
±¥±ä?p´¥´ä?p·¥·ä?pº¥ºä?p½¥½ä?pÀ¥À¦Àä?p
conjure_valueÁÄ¥p
dupe_valueÁÆ¥
spec_errorÁÈÈÈÈÈÈSpecErrorWrapperÁÎ
ÎÎˆÈ SpecErrorÁÒÒ__sqlx_spec_errorÁÈÕÕâC× ÈÙÙâCÛ ÈÝÝâCß ÈááâCã ÈååâCç È __spec_errorÁGtypesÁëëencodeÁîîîîHdecodeÁôôI;øøøøø¥ þþþþþþþþþþ þ
r
r
}


¨
«
«
®
±
±
´
·
·
º
½
½
À
Æ
Ô
Õ
Õ
Õ
Õ
×
Ù
Ù
Ù
Û
Ý
Ý
ß
á
ã
ç
~“Ò~ttuË=xˆpyp ¦!‰Ï©¥Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¦~ 8ttuË=xˆpyp ¦!‰Ï©¥¦Šû>ˆpŽp ÛÔ2@ÐÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ‹@Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙúHúHßûHÁ‘4Ý­f‰úM÷Šû>ˆpŽp ÛÔ2@ÐÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ‹@
Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙªBªBö­BbufÁ÷<®B÷<9)
-ÜnLãMçEçEèEGlobalÁ ¿±‡§í#Šû>ˆpŽp ÛÔ2@ГKÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ‹@¦LŠû>ˆpŽp ÛÔ2@ЗMÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ‹@¬NŠû>ˆpŽp ÛÔ2@ÐØK¦LŠû>ˆpŽp ÛÔ2@ÐÜM¬NŠû>ˆpŽp ÛÔ2@Ð 8ÃJÃJŠû>ˆpŽp ÛÔ2@Ð 8 8¥ðSŠû>ˆpŽp ÛÔ2@ÐÃJ—SŠû>ˆpŽp ÛÔ2@ÐðSæSŠû>ˆpŽp ÛÔ2@ÐÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ—SÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙÃJŠû>ˆpŽp ÛÔ2@ÐÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙæSÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙðSŠû>ˆpŽp ÛÔ2@ИVÐUŠû>ˆpŽp ÛÔ2@ÐëW£W 8Šû>ˆpŽp ÛÔ2@ÐÃJÉJÒ 8 8 8 8ÎÎÏœCш ð~• æÇŠÞZÒ 8 8 8ÎÎÏœCш ð~• æÇа[Ò 8 8ÎÎÏœCш ð~• æÇŠü[Ò 8ÎÎÏœCш ð~• æÇŠÂ\ÒÎÎÏœCш ð~• æÇŠ‚]t…
œŸ¢¥¨«®±´·º½À
Õ
Ù
Ý
á
åÎ~ ÒgÌ‚  t°IûI u,ttuË=xˆpyp ¦!‰Ï©°IûIq PhantomDataÁFu\»Ÿ°I©®^Fu\»ŸûIÖÝäß  °IûI!Š.Šû>ˆpŽp ÛÔ2@аIûIx _Ø_ô‹ ΂]Ï(Ó\3]:AøJbpÈëîôþÀG<Ç ArgumentsÁLï¡
IntoArgumentsÁlúªColumnÁ4¥ª  ColumnIndexÁ\ȯ ConnectOptionsÁtõÜ
ConnectionÁT…½ databaseÁ$°

DatabaseÁD¶
DescribeÁDÞÊ ExecuteÁ<†ö
ExecutorÁDÉ
FromRowÁ<· Ïc
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˜n9 PgConnectionÁd¢:
PgExecutorÁT°nˆ;PgPoolÁ4¼n†<
PgTransactionÁlÄn=PostgresÁDÓn>Øj>AnyÁ¡Î%ANkÏ%AN AnyExecutorÁ\¦ÛBQÄ\‰C
GtestingÁ<ŽäH
test_block_onÁl¾ ÍI;|‘„d£;T¼’e´;¤Þ–fÞ;lðÚhò;”ßßi‹<¼øäj¼<ŒólÔ<´‡ùmñ<ܦÿnýDdÁ é__rtÁ$ÑêEncodeÁ4صóðÙmóòDecodeÁ4Å!É÷õ‰n÷ö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®a¡Èayªæarª ýaf¯ ™bWÜ
¸bL½ ÓbC

ìb:
…c1Ê žc)ö
¶c É
Ïc Ïc(
Eöc¸‹dí dû ;ú  ;
câdð ƒ Ï;ï ØÏ;ÿg›eâ ݹeÔô×eǃ ôe¬ ©!©<« ž#©<»k½fš £$ßf Ç&÷fÃ'Žgø(¢g} )¼gqù+Øg^ñ,ûgU-óTÇ.ód F´hO0ÊhF¬1ãh?2úh9]4i3³5Í2f6“=1²7“=AoÓi)n9ëi:ˆjnˆ;£j
n†<ºjün=Øjón>Øj>kðÎ%ANkÏ%AN­kåÛBQÄäCã
GíkÛäH…lÍ ÍI;Ìd£;Êe´;ÈfÞ;Æhò;Äi<Âj¼<ÀlÔ<¾mñ<¼nýDºéÃmµêÙm®µóðÙmÃóò‰n¨É÷õ‰n½÷ö¹n¡Ù@]ÔnÊ%@^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Á|° LkàÎ%NkÏ%N AnyArgumentsÁdåËOAnyConnectOptionsÁŒóÞ%P­k\†ÛQAnyPoolOptionsÁt“ÚRAnyQueryResultÁt£å%SAnyRowÁ4³ì%T AnyStatementÁd¿ñUAnyTransactionManagerÁ¬ÍVöŸV AnyTypeInfoÁ\ä†&WAnyTypeInfoKindÁ|ñ&XAnyValueÁDÐ&Y AnyValueRefÁ\ŒÖ&ZAnyKindÁ<ÊÒ%[|~Øü˜'¾´·ŒpsehLO36"% ëíÁÃ¥§xz¼ºhÄÔ¹nßÙ]ÔnÎÊ%^¼öì æü¤ üÂ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.Á(|E6 ó– ü˜ ù– ‡—, ú–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±²”†Úƒ³<™Úž³(|¡ÚU6 þÚ ·Ý „Û ¤Û , …Û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Áü´Þ[™µ(|ße6 òß Ââ øß –à , ùß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Áì‹äÈÌ(|©äu6 å ìç –å ¶å , —å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!`].Á(|¾ò…6 Ÿó šõ ¥ó ³ó, ¦ó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.Á(|¸ø•6 žù ¯û ¤ù °ù, ¥ù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.Á’þúü–þ@©Ç(|×þ¥6 Âÿ ß Èÿ Öÿ, Éÿ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~‰ŠÄÆ®^\pq®^ p%üÚ#РаI °I¥ss òÍì°I ë
r°I_1Áî_2Áö!«.D ¥v¦wwvèÿ ÍìûI ß^¦!‰Ï©uxy _Ø_ß^«.jp _Ø_ß^tt
u°IûIy{vxptt _t¬ pttØ_̾ ¥{¦||{èÿ à Ö€ Æ ß^}äÞ å Œ ŒûIß^z ï z
}°IûI_argÁ$é ä±

~~Íì
~ãƒãƒÍìëƒ
—„

~~üç
#
냟„~~
ëƒ
üÁ 1¥¦ƒƒèÿ Æ Ö€ É ùH„  Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ°Iü– -8¥¦ÍìÃJ ÍìÉJ ž ‡Jˆ  ÃJ–/ ¥¦ŒŒèÿ ö Ö€ ù Ì`ÛÔ2@ÐŠŽ _Ø_Ì`–/ip _Ø_Ì`
аIûIwy|~ p _tŒ
pØ_äž
¥¦èÿ £
Ö€ ¦
Ì`’üÁ
%È
ްI ŽûI°IÌ` Ö

°IûI¿ Ì