Files
boc/aamos-command-center/target/release/deps/libsqlx-894774d5031207bb.rlib
T

384 lines
154 KiB
Plaintext
Raw Normal View History

!<arch>
/ 0 0 0 0 98 `
½H½H_ZN4sqlx3any23install_default_drivers17h04d3fa7a3b8edef9EDW.ref.rust_eh_personality// 58 `
sqlx-894774d5031207bb.sqlx.feed5c347cd3e3c9-cgu.0.rcgu.o/
lib.rmeta/ 0 0 0 644 113648 `
ELF·@@GNUÀ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ÁE­:“òÌË1aO;åÐ-6b848a68f8fd98a9Á sqlx_coreÁõ .ÌSáò%µu•òU@-57d8c4aa146e2b8bÁ futures_coreÁÔ #0€ŒlÏ/œ%áàæ!-54e00c79609f6de3Á futures_utilÁ1¡BN[Mä’qŒ0¢è-3af50f1ccacf4a4cÁ futures_taskÁ+ÓÅfÐ4Pú{-¸*1¨-dcd8a3e2825c89abÁ futures_sinkÁݬwÞÚ7Žª _°à\-005b1f0a7b5abe4aÁpin_project_liteÁc:ž“èqPÔ² låî-fa08336265b0d278ÁslabÁ˜ìòͺܓ$® %ãÕ6-940e9d610b73c48bÁ
futures_ioÁµ] óŽe_a€FµwBM-52cc55b2510d5c5fÁì46¯¦ŒïõÅ’Z/¯-a454f505f30bc1f2Áevent_listenerÁàÓö±R€P7ˆù;-82fc96b2cc5af504ÁeitherÁÖÖjmì¦å“٤⿥-19d064815a8d8d65ÁserdeÁ£p/oŒÄf ™ðN'ÖŒ×-adfb72fccb405e33Á serde_deriveÁK6ŽŠSöMv×8£<¯-c3e144455e8966deÁ
serde_coreÁ4ô¥’,JÕ„¾­À7&-32e929951ee3d08aÁcrossbeam_queueÁîæLž×ªƒq­ìâ-224f01e201c18748Ácrossbeam_utilsÁ:¯¶äáPÈŠÆ °¯ØxÖ-55d5552e13fd23eeÁlogÁ9:¢¡Áªú:¦#%%%-5bc5b815000aa8c8ÁurlÁÈÞ[ã<lì·»’\.ÑO-34f06a7b5be4ba48Áform_urlencodedÁ™Ù¦)ž-´Ï«Bó¹«i8-b21a6453ec4c6027Ápercent_encodingÁÙSõU<Zj€ËfYê±-608213e915e95613ÁidnaÁ0òd7ÞVϤÉVQ^QzT-0b27c80ee15b2052Á idna_adapterÁå.2,
z+&润§;¥-3894fd78d4e7d69cÁicu_normalizerÁÓ¯J}Û‹q3n,BY:6*-1ff97b6300c65a3bÁ icu_providerÁfý ecVoÒ–×%aƲ-26ba06420635a5f4ÁzerotrieÁÖjxÄ’Rðo„u˜¤îm-8213996ed0004d51Á
displaydocÁ¯Ü-{6È€Ûù˜ˆÈ
|-e6cd9a7bbe869315ÁzerofromÁÚwóÌ77¬R„Jzðè-b5e12a50bee7a139Ázerofrom_deriveÁ#/\(Ûåè
•Ø‹
Ì÷-b0a52e57dcf964fcÁyokeÁC6€2N‹¢ ˜ox4å-693d60a54f4f9cdeÁstable_deref_traitÁÃ2¯c!#wõáÖZÛd¿-1053a3f8bccf45f4Á yoke_deriveÁÓ‚. I©]F@šÔ¶€~-2347d6299a9342ddÁzerovecÁj†o!AÒwþý"»c Z[-a26db0a583c313b8Ázerovec_deriveÁšÚ¾#Àµlþk¸Úéìí¨-e1300b4489bd91f1Á writeableÁŠÚZVd^GmÕĉé2ÏÌ`-eeb981e21830c22aÁicu_locale_coreÁóÍ>­‹ñ§  «©,Û
-f42a734f84d1ee3dÁlitemapÁ^¿V4êg"ˬçˆÅ2Qi&-4f065ea63c011d48ÁtinystrÁ¸˜›s-ªsV¯™j-c7a86e007016634eÁicu_collectionsÁ’!]úâ?ëòPÞQà™N-b882f5a5cafdd8d3Á
potential_utfÁP°g®œH rUæ™-b10cb335d8d170deÁ utf8_iterÁK——Ø]áR.ý#k-ed71523c288ce9d1Áicu_normalizer_dataÁð¯O´¥lȃb­_ls^u-2cc53e133ce07707ÁsmallvecÁ¥uÓöù¤_êÛc6ÃèÏ-57e80a5b3ccd3003Áicu_propertiesÁlÌ;Øßjyq.ê~žCs(-dc4cdd823550a516Áicu_properties_dataÁ“w‘ŠMXöù\ãmq˜õs-1181beec2790515cÁ
serde_jsonÁóN9G;{=ð“÷f×[áSÔ-5cfb308f35ab7820ÁzmijÁ®“ZCE„–/ZÜ&-d24768eed8a8ed6fÁitoaÁû”­eºùîÉ/Þ ÷ŽÚ<¯-8b71445f6e5565f1ÁuuidÁO]±8BˆßQNI$¥ª-4a6263db0768acd5Á getrandomÁqi÷®~*^e¬6ëø1-b4a33f586d36bdb6Á®Ÿ=ê @Êq{0¡¡£ª-c28393f1568b0153Á`ãŒN€ZÛ:õ\-7ce82f3507212cabÁchronoÁ”™i/6zW@Zqÿ¡-8b6d91dfd9c87b8dÁ
num_traitsÁJb_1³*ŸŒ;«º4½-dd2977d8ba4893dbÁiana_time_zoneÁƒCVæ¶–·?¬–56¡î-85071ef9353bd1ffÁhashlinkÁ•iqrª[ÇŽ.ƒ«Ö-e31d491b2bda4c0cÁÐLx+ÁqSôõ‡ØY-1238f8c7406eef35Áallocator_api2Áúd[^Yñ8ȃ$WãC-db2be312fdeda873ÁahashÁí½&“I´yéžÕèÛ>‰\-ddf9877df20145c3ÁzerocopyÁ Nf<Þß§1*²Es-a1936efa8b233a0bÁ once_cellÁ¢ºWšä\S~ò5Î0¤¹-012a7aaa45f49f1fÁõÿõ¥z±ø'p¦²·Ä-ee9662acccf8949dÁbytesÁ1ž;›¢¥³3t´÷¬-9ab8679fb35a705dÁtokioÁ~í˜ÑFN­ˆ‘Û&ÕǬ‚F-2e8a35e14ae82399Á parking_lotÁ‘{%#NÕÆÇî×Âó³®-d304a3d2e3fa0badÁlock_apiÁ6JÂÉ–Coó;³u‰‰×}³-a58f13f6ba8e2585Á
scopeguardÁ±hú`Ã+ú=*ž)$ý-14a1bf74f002cc8bÁparking_lot_coreÁ+G÷-)¢3ñ6w ÷-96dda93fe1f45ff2ÁmioÁjUa?{`å3c@½åk«üj-e2adf0334040c489Á tokio_macrosÁÅm6‡Ä”蚬îAôGôâ-d13c5e580899166cÁsocket2ÁŒí”l.,.O¦Ýžw ê¸_-477bf62e8b01439eÁsignal_hook_registryÁóÓêܤÞß\ÏÍZ¤êk1„-0df3f4b575f2ad33ÁerrnoÁAX'2k$~t—üt]-06a2f72be8b8e935Á sqlformatÁ]ðÊÃÞŽœ^'Ò
-46096afdf397d8a8ÁnomÁþ¼ó$K€
¯C-æC•Ê-e49733404004917cÁunicode_categoriesÁ|äÇCT)T>Õýã:3-1c856d740c512a59Á¹
ý°-V]S8¤ú
õD 0-a3148a17b1a5f781ÁdigestÁP±µÖ+û•Þ¡•ª´¾À-4789fcc75ff26d88Á
crypto_commonÁQs}
[dPiç•éë£-022979c1362b6763Á
generic_arrayÁîŸÑ[óBãzTi
-23ceb53c09b1f24aÁtypenumÁŘ¼ÿÄs7Äo°‹×Õ
-343b991ff7c0c319Á block_bufferÁ"d•œF,Ú¥ùØÕ\-7b70ef144a3336c4ÁsubtleÁ •òeôÝ9鳪pŠ
½-89a615d2f874ad55ÁindexmapÁ’š= ”½‚•ci¡Œ&¤2-654a95d39e9dd495ÁÐmH¯°gÌÕJÂ/d¿V³-1e5c574056266302Á
equivalentÁÆÞ•©¼ôÙ»wÌ’F¬D-4a285f80be49dab1Á thiserrorÁôæ+V£6MÞ]e3\Ó^è-8921bcad3f43f13cÁthiserror_implÁ“Na%9wJx3Ó<¯bx-2cc63a179908345dÁtracingÁ›t*j[6gôˆ×™¡å©-1143666b7efa7da6Á tracing_coreÁƒZ¦øsÞÝŸädY4`-f43ff70b0c5d0314Átracing_attributesÁ©åûFÔ0"õØcΫ±Î-0dabcc58bbccf33aÁ
sqlx_postgresÁ
Í~<àuR{‰:—ÒHË-8b2365c5795da706ÁhkdfÁõyjªóÛU•&ÿ£4QF-e8e388965c6f1efaÁhmacÁÑC(¼È[ƒËÔ`Õë-46aebcc1ed280377ÁrandÁ;"¬ð°©äP½üC¾Òf-35a5403282aab811Á rand_coreÁ®Ö CÚ"uÍÿ?ê% ½(-53036fee12357457ÁÝô+šçT ÕÒ>£+4ð-aa0343546db87a82Á rand_chachaÁË!|’¬MŠþ¨ ½¢Ë-959580a3d97bee75Á
ppv_lite86Á¡í8ÉLЇ% ®c¾-2314cc2b118bc50cÁ
stringprepÁyvDçö¨\ê`øEÓܵ-c7f957e16220cd5cÁ unicode_bidiÁ&<Ž®“€—îùdÝ©8v -3620a7802968d356Áunicode_normalizationÁÙLÒ&®Ã}»4~Q#Ó¾\-1a1c38039164aeb6ÁtinyvecÁÖö&^»â(¨"ئ°=-b78005b730023ef3Átinyvec_macrosÁÑð\ÁpŽ¥ƒÁ yÒz¬Úñ-7b606265eeb25177Áunicode_propertiesÁ2^ÓÕœ!4V­3^¿-a0bc00b182b38371Ábase64Á*ø{6± S¬oK=i¦½-56ada73a3c1aa3caÁfutures_channelÁ¿êû„ñ’ óÓ¹-89600126d4fe9190ÁatoiÁà F)æRZ³^yQz-6e299a341d90d959Á byteorderÁÒQmÖ£¶³³#<Cn-6e3a8fd85d179480Ámd5Á½E¦‘N¾¼ý¥œ†WP-b7ee55712cf79b54ÁbitflagsÁ¨7AvÖb,* èh©¯³Ö-765f98ff397854cfÁhomeÁZ·êòŸD¢qYÌ8-859daca3dc6351abÁwhoamiÁ¡Á‘Ÿ³šÃ(Œ¢Ñ‰-76d1f1b9c77473caÁhexÁ|¥"àè–ïôr
Û%A-e958af846a0557d7ÁcrcÁª§lU$@68À8µ»Á-9c880b0ef6c7b4dfÁ crc_catalogÁ{Ó‚Ä ]J€Ô7!¼us-acdad7ed5cd000c9ÁdotenvyÁ9Þ+ ùÔ‰¬]k"F-fc52930004df5672ÁmysqlÁ,¢
»²5Œ± MySqlÁ,©
»²5MySqlConnectionÁ|°
»²5>@
MySqlExecutorÁlÁ
»²5_a MySqlPoolÁLÐ
»²5|~sqliteÁ4
»Ç6”› SqliteÁ4—
»Ç6SqliteConnectionÁ„Ÿ
»Ç6@BSqliteExecutorÁt±
Ȃ6bd
SqlitePoolÁTÁ
»Ç6À 
  
 !"#$%&'()*+,-./0123456789:;<=Ä>?@ABCºGGGGGGGGGG G
G G G
GGG reexportsÁXXGinstall_default_driversÁ[ONCEÁ[ macrosÁ^queryÁ^query_uncheckedÁ^
query_fileÁ^query_file_uncheckedÁ^query_asÁ^
query_file_asÁ^query_as_uncheckedÁ^query_file_as_uncheckedÁ^ query_scalarÁ^query_file_scalarÁ^query_scalar_uncheckedÁ^query_file_scalar_uncheckedÁ^migrateÁty_matchÁll same_typeÁn¥lWrapSameÁp
p¥p¦pˆplv¥v¦væ l WrapSameExtÁzWrappedÁz wrap_sameÁl}¥}¦}Á>l¥¦Á>l MatchBorrowÁ
¥¦ˆl¥¦æ lMatchBorrowExtÁMatchedÁ match_borrowÁl'aÁý?l¤@ý?l˜¤@˜ý?l¤@ý?lž¤@žý?l ¡¤@¡ý?l
¤¥¤ý?l §¥§ý?l ª¥ªý?l
­¥­ý?l°¥°ý?l³¥³ý?l¥ý?l¹¥¹ý?l¼¥¼¦¼ý?l
conjure_valueÁÀ¥l
dupe_valueÁÂ¥DtypesÁÅÅencodeÁÈÈÈÈEdecodeÁÎÎF;ÒÒÒÒÒ¥ ØØØØØØØØØØ Ø
n
n
y

Ž
¤
§
§
ª
­
­
°
³
³

¹
¹
¼
Â
zzppqç=tˆlul Ø(´õ¤‚¥Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¦z 8ppqç=tˆlul Ø(´õ¤‚¥¦”?ˆlŠl P”a%¡Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ¤@Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙúHúHßûHÁ‘4Ý­f‰úM÷”?ˆlŠl P”a%¡Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ¤@
Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙªBªBö­BbufÁ÷<®B÷<9)
-ÜnLKçEçEèEGlobalÁ ¿±‡§í#”?ˆlŠl P”a%¡»HÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ¤@ÎI”?ˆlŠl P”a%¡¿JÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ ¤@ÔK”?ˆlŠl P”a%¡€IÎI”?ˆlŠl P”a%¡„KÔK”?ˆlŠl P”a%¡ 8ëGëG”?ˆlŠl P”a%¡ 8 8¥˜Q”?ˆlŠl P”a%¡ëG¿P”?ˆlŠl P”a%¡˜QŽQ”?ˆlŠl P”a%¡Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ¿PÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙëG”?ˆlŠl P”a%¡Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙŽQÛ¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙ˜Q”?ˆlŠl P”a%¡ÀSøR”?ˆlŠl P”a%¡“UËT 8”?ˆlŠl P”a%¡ëGñG}p
˜ž¡¤§ª­°³¹¼
zq
nüÚ&ý ØFîßXö_1Á_2ÁJ­
yüÞ Oppqç=tˆlul Ø(´õ¤‚ØF£G £G_argÁnùž"#  Õö“U…”•–™
 %–™
 ý–™
 K
´™
 M § ïíe¼îËè¿*‹K
ý¨” …·”e·” =·”
-¹” ¥ã†
  ÞÑZ ŠK­é(

 5 O 

”
~
 3
Æ” ² § ïíe¼îËè¿*‚È‚ÈArgumentÁ„È´ÀbökÏ®ÝWj´
Ç”ýГ äÈ
Ö”
ù@#
ÜW:" ¼ üç
V|ý ’Ƕcýä˜W
â|E‡”ý¾(F
×|Ëý×…¨
à|Uî(

{
ÿ_
ÅäÈäÈ ArgumentsÁæÈtemplateÁ `çÈÀ `üöMõô]Td;ÑZC®['”[%¦]¤Ž]¡Ž]ŸŽ] D²\}é(
²?ã^ƒÿ_a
Ús‹K°üñ
* ¹”?ˆlŠl P”a%¡ØF£G¡ŽüÁ
`ØFŠb
ØF Ì
ƒZÒ
¿_uÁIùž"# ÑZ~ { x ”[r ¼ ®[B?;8 5
2 /  
ÑZ²\*
 ] x 
8å\*
¥
 [Ž]( × ¦]¿¼ äÈ·¾Iù@#Çã^h üÞY³¶c¬®â|ª§×|o¤à|Ÿ
ÿ_ÿ_¬œ`ÑZ
®[u”[s¦]òŽ]ïŽ]íŽ]ëªa²\MaØã^ÿ_ùàaóùý*#ø
àWÑZ#,Àüç/ØF NÉh^ùý*#cÉhmÑZ#)Âü˜2ØF ¸ßX­Tý3ÉhqÌ‚  pØF£G q,ÀY7 PhantomDataÁFu\»ŸØFoéiFu\»Ÿ£Gœ£äß  ØF£G!.Šb9Ûj@“kGNÒG^lÅÈÎØÀG<eÖ¨_L
IntoArgumentsÁl˜£ColumnÁ4Ãé ColumnIndexÁ\æîConnectOptionsÁt“±
ConnectionÁT£ databaseÁ$ÎÈ 
DatabaseÁDÔÔ DescribeÁDüáExecuteÁ<¤À
ExecutorÁD­
FromRowÁ<ÕÙ
€n
BpoolÁ$ø±PoolÁ$þÏ;,  Ä;_
query_withÁT§ Æë;DÒ Âë;c
query_as_withÁlÜ Ç
query_builderÁ$Ø QueryBuilderÁd•éÅ<dÆ !Å<gquery_scalar_withÁŒÔ "raw_sqlÁ<… ©$RawSqlÁ4Ž¥%RowÁ¯Ü& StatementÁLÒ' TransactionÁ\þÌ)TransactionManagerÁ”‹Æ*TypeInfoÁD¾Ñ+ó,ó CValueÁ,ƒà.ValueRefÁDŠñ/EitherÁ4¨0errorÁ$ÛX2ErrorÁ,áð3Ía4¯=<¡ ÷5¯=kpostgresÁDÝ o7 PgConnectionÁdç 8
PgExecutorÁTõ 9PgPoolÁ4 :PostgresÁD‰ ;œt;AnyÁ¹Í!>KÆtÎ!>K AnyExecutorÁ\¾¡?NÄ@
DtestingÁ<ªE
test_block_onÁl½ ±F©;|î„`¿;Tó’aÐ;¤ù–bú;l€ÚdŽ<”ÙÞe§<¼×ãfØ<Œúðhð<´Ööi=ÜÒüj__rtÁ$ùÄEncodeÁ4ÅÍÊwÍÌDecodeÁ4ÂÑϽwÑÐAnyPoolÁ<ÇŸ=Y
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 crossplatform 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.
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/
ÁÒG^lÅÈÎØÀ>G?Ö¨_?ùk1£—l*é®lîÊl±
él „mûÈ 
mòÔ ¶méáÏmáÀ
çmØ
€nÐÙ
€nà
B§ṉ¼nÇÏ;Æ Ä;Ö_ïn¼ Æë;» Âë;Ëc¨o® ÇÆo ØäoéÅ< !Å<¢gŸp "Ápy ©$Ùpr¥%ðpnÜ&„qd'žqXÌ)ºqEÆ*Ýq<Ñ+ó;,óK Cr6à.¬r-ñ/År&0Ür X2ñrð3Ía4¯=÷5¯=(kµso7Ís8êsø9…tñ:œtè;œtø;ÆtåÍ!>KÆtøÎ!>KñtÚ¡?NÄÙ@Ø
D±uЪEÉu ±F©;Á`¿;¿aÐ;½bú;»dŽ<¹e§<·fØ<µhð<³i=±j÷v«ùÄw¤ÍÊw¹Í̽wžÑϽw³ÑÐíwŸ=YˆxÉ!=ZåèëÜQâ¤vØÛÀÃ̰³ôÓž¬ûqtœ¸bPSìçAœŽ03 äÀòäçÝ໾œ¼´·Äô{lÿeh¼¬^a58”ð'*œŸ ü¼ú´ååèÈËô¨¹´Ð¯„ð~Œq„ÈbTWIL”– C (úýéìÖÙ¿Âä÷ˆŒ»”‚~ä®gü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.
Á»º¼ÍíX[OnceÁ$‰ï8GHinstall_driversÁ|° ÚIÆtàÍ!KÆtÎ!K AnyArgumentsÁdåLAnyConnectOptionsÁŒóÝ!Mñt\†¡NAnyKindÁ<“Ñ!OAnyPoolOptionsÁtœ PAnyQueryResultÁt¬ä!QAnyRowÁ4Àë!R AnyStatementÁdȯSAnyTransactionManagerÁ¬ÖÎT̤ÏT AnyTypeInfoÁ\í…"UAnyValueÁDúÎ"V AnyValueRefÁ\„Ô"W|~¸ü˜'žloPSEH36ðò×Ùµ·vx^`Ä•íwAŸYˆx0É!Z¼·bìáHü¬ üƒ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.Á¼³ÖX
[ŒÓGï8ï8™¢ð8innerÁé8ãTPàVçaBˆ [<closure_kind>Á]<closure_signature>Á]<upvars>Á]][]å\ÖXÖXÖXTŽ»;”ùÔó4’”„{ü@= 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ÁüÏda server with the schema that the query string will be checked against. All variants of `query!()`Áü´EB 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Áüêb_ 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ÁüÖ]Z 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 Bind paramete
$†“& Š“8«<‹“*”“ —“ ß“ ˜“ Þ“, ¢“8,£“'¨“8Ä\ª“'µ“8еd·“ Ó Ä“ Ø“8 source_fileÁ\Å“ Ñ“, Ó“8õ
$Ô“% à“ æ“ ‚”, ç“8õ
$è“& ì“8«<í“$ ô“, ö“ ÷“ €”, ø“8À$ù“& ý“8¯þ“
*„” ‡” ã” ˆ” â”, ’”8,“”'˜”8Ä\š”'¥”8еd§” ³” ´” Ü”8ÊË\µ” Á”, Ô8õ
$Ä”$ È”8À$Ê” Ï” Ñ” Û”, Ò” Ó” Ù”, Ô”8À$Õ”
Ú”üì–!üé”da A variant of [query_file!] which does not check the input or output types. This still does parseÁüΕ[ä¹(|ª– ; Ž— —™ ”— ¢—, •—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!] 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Áüüµ]Z In addition to the column type overrides supported by [query!], `query_as!()` supports anÁüÚ¶ additional override option:Áú¶úüþ¶_\ If you select a column `foo as "foo: _"` (Postgres/SQLite) or `` foo as `foo: _` `` (MySQL)ÁüÞ·b_
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ÇÐ ÓÐ ÔÐ ŽÑ
84ÕÐ ÜÐ, ÞÐ8¶ŽTßÐ$ éÐ8µµ4ëÐ òÐ, ôÐ8;,õÐ$ úÐ8À$üÐ Ñ ƒÑ Ñ, „Ñ …Ñ ‹Ñ, †Ñ8À$‡Ñ
ŒÑÔóÙü›Ñ;8 Combines the syntaxes of [query_as!] and [query_file!].Á×ÑúüÛÑ?< Enforces requirements of both macros; see them for details.Á›Òú”ŸÒÉ®IJÒä®üËÒ?†¯Ä‹Óίü¤Ó*ð¯üÏÓS¤°,£Ô€±ü©ÔZ±ü„ÕCó±¤ÈÕÖå¤ÝÕôå„òՒ椃֬æ,˜ÖÊæžÖúü¢Ö,À²üÏÖ[X let account = sqlx::query_file_as!(Account, "tests/test-query-account-by-id.sql", 1i32)Áì«×˳„É×ñ³Ú×úäÞ×Þ´üû×1„µ­Øúd±Øʵ<¾Øßµ,ÆØ€±üÌØIýµ”–Ù϶<©Ùê¶(|±Ù; ŽÚ ÇÜ ”Ú ´Ú , •Ú8¶ŽT–Ú&  Ú8õ
$¡Ú$ ¥Ú, §Ú8õ
$¨Ú& ¬Ú8«<­Ú*¶Ú ¹Ú ˜Û »Ú —Û, ÅÚ8,ÆÚ'ËÚ8Ä\ÍÚ'ØÚ8еdÚÚ æÚ çÚ ‘Û 84èÚ ïÚ, ñÚ8¶ŽTòÚ$ üÚ8ÊË\þÚ ŠÛ, ŒÛ8õ
$Û% ™Û ŸÛ ÍÛ
,  Û8¶ŽT¡Û& «Û8õ
$¬Û$ °Û, ²Û8õ
$³Û& ·Û8«<¸Û$ ¿Û, ÁÛ ÂÛ ËÛ, ÃÛ8À$ÄÛ& ÈÛ8¯ÉÛ
ÌÛ*ÏÛ ÒÛ ÅÜ ÔÛ ÄÜ, ÞÛ8,ßÛ'äÛ8Ä\æÛ'ñÛ8еdóÛ ÿÛ €Ü ¾Ü
84Ü ˆÜ, ŠÜ8¶ŽT‹Ü$ •Ü8ÊË\—Ü £Ü, ¥Ü8õ
$¦Ü$ ªÜ8À$¬Ü ±Ü ³Ü ½Ü, ´Ü µÜ »Ü, ¶Ü8À$·Ü
¼ÜüÌÞüËÜb_ A variant of [query_as!] which does not check the input or output types. This still does parseÁü®Ý[ä¹(|ŠÞ); ìÞ ¼á òÞ ß , óÞ8¶ŽTôÞ& þÞ8õ
$ÿÞ$ ƒß, …ß8;,†ß& ‹ß8$Œß*’ß •ß à —ß €à, ¡ß8,¢ß'§ß8Ä\©ß'´ß8еd¶ß Âß Ãß úß
84Äß Ëß, Íß8¶ŽTÎß$ Øß8µµ4Úß áß, ãß8;,äß$ éß8¼¼<ëß óß8 ,õß% ‚à ‰à µà
, Šà8¶ŽT‹à& •à8õ
$–à$ šà, œà8;,à& ¢à8$£à$ §à, ©à ªà ³à, «à8À$¬à& °à8¯±à
´à*·à ºà ºá ¼à ¹á, Æà8,Çà'Ìà8Ä\Îà'Ùà8еdÛà çà èà ³á84éà ðà, òà8¶ŽTóà$ ýà8µµ4ÿà †á, ˆá8;,‰á$ Žá8À$á •á —á ¡á, ˜á ™á Ÿá, šá8À$›á
 á$ ¢á8¼¼<¤á ¬á8 ,®áüÊã$üÀáVS A variant of [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Áìêâ for the current database.Á(|ˆã9; ïã Ëæ õã •ä , öã8¶ŽT÷ã& ä8õ
$‚ä$ †ä, ˆä8õ
$‰ä& ä8«<Žä*—ä šä Šå œä ‰å, ¦ä8,§ä'¬ä8Ä\®ä'¹ä8еd»ä Çä Èä ƒå
84Éä Ðä, Òä8¶ŽTÓä$ Ýä8ÊË\ßä ëä, íä8õ
$îä$ òä8¼¼<ôä üä8 ,þä% ‹å ’å Àå
, “å8¶ŽT”å& žå8õ
$Ÿå$ £å, ¥å8õ
$¦å& ªå8«<«å$ ²å, ´å µå ¾å, ¶å8À$·å& »å8¯¼å
¿å*Âå Åå Éæ Çå Èæ, Ñå8,Òå'×å8Ä\Ùå'äå8еdæå òå óå Âæ84ôå ûå, ýå8¶ŽTþå$ ˆæ8ÊË\Šæ –æ, ˜æ8õ
$™æ$ æ8À$Ÿæ ¤æ ¦æ °æ, §æ ¨æ ®æ, ©æ8À$ªæ
¯æ$ ±æ8¼¼<³æ »æ8 ,½æÌÑíüÏæZW A variant of [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.**ÁèëúüìëZW Wildcard overrides like in [query_as!] are also allowed, in which case the output typeÁäÇì is left up to inference.Áäìúüèì&# See [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À$Ëï
ÐïôíðüÞïLI A variant of [query_scalar!] which takes a file path like [query_file!].Á(|«ðI; Œñ ‡ó ’ñ  ñ, “ñ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À$øò
ýòüÉö#ü‹óda A variant of [query_scalar!] which does not typecheck bind parameters and leaves the output typeÁüðó]Z to inference. 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.Á(|‡öY; íö þø óö ÿö, ôö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 ,ñøüÅü(ü‚ùda A variant of [query_file_scalar!] which does not typecheck bind parameters and leaves the outputÁüçùUR type to inference. 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.Á¾ûúüÂû@íÇ(|ƒüi; îü ‹ÿ ôü ‚ý, õü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.ÁÇ„úüË„41 ## 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,ÁüɆYV 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`Áê¶ 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](h

zzÍìÿ_
zæƒæƒ{|{|Íìü_
–„|

zzüç
#
ÿ_ü_zz
|ÿ_/üÁ 1¥~¦~öÿ Æ Þ€ É ¡F€{  }}Û¼ݼÞ¼©ß¼à¼ÛἈcSñŸ«‡zÙØFü– -8祦ƒƒçÍìëG ÍìñG ž ¯G„{  ëGQ5 ¥¦ˆˆöÿ ö Þ€ ù ŠbP”a%¡ŠÛj“kŠbQ5ilÛj“kŠb
ØF£Gwy|~ lÛjtŒ
l“käž
¥Œ¦Œöÿ £
Þ€ ¦
ŠbŽüÁ
%È
èØF è£Géb Ö

ŽØF£G¿ù0™b1ü¥æƒ,¿æƒæƒÍì™gÙ‹üÞ&ÿ_™g
ÿ_,3ü»H¤@ÿG”À<»Hü­J¤@ƒJ—²¿Jü¢L¤@ÇLš§˜˜»Hü˜N¤@œœÜM¿Jü‘8¤@ŸŸñN žž€Iüë:¤@¢¢ºO£ð¡¡„KüÈ08饥é¥÷† ̓P¦dÿ<„¤¤ëGü”48ê8륨ê¨ëÍì˜Q ÒP©§§˜Qüä08쥫«ì÷† éªQ¬d< ªªëGü°48í8®îí…‘ µóQ¯­­˜Qü€@8辰ï±÷† ¼R²°°ÀSüäD8ð8ñ¥´ñð´…‘ é<´³³“UüÌ@8ò¥·ò·÷† ÑâU¸d“<˜ÀSü°D8ó8ô¥ºôóº…‘ µ«V»<€¹¹“Uü˜38õ¥½¦¾õ¾½÷† ‡‡  ôV¿<×¼¼ñGôçØF¥ÁÁöÿ ü
ÀØF ü˜!ö öØFØF¥Ãà ±öÿ ª
ÂØFýp4l€};lÂü˜+( Conversions between Rust and SQL types.ÁÄúüÈ_\ To see how each SQL type maps to a Rust type, see the corresponding `types` module for eachÁ
database:Áúüº" * Postgres: [postgres::types]ÁäÝ * MySQL: [mysql::types]Áôú * SQLite: [sqlite::types]Áä™ * MSSQL: [mssql::types]Áúüº]Z Any external types that have had [`Type`] implemented for, are re-exported in this moduleÁü˜^[ for convenience as downstream users need to use a compatible version of the external crateÁü÷,) to take advantage of the implementation.Á¤ų́ [`Type`]: types::TypeÁó$¿Æó ÇþÆêDÆUuidÁ%«ÆJsonÁ%ÿÿÆ žÆ JsonRawValueÁe…Æ JsonValueÁM“A“ÆTextÁ%®ƒÆ…ŸÆ„ÞŒ²òt–üÈMJ Provides [`Encode`](encode::Encode) for encoding values for the database.Áw4ÇÊwÌIsNullÁ4ÏËŒ³;=œ—¤·•;tüÎNK Provides [`Decode`](decode::Decode) for decoding values from the database.Á½w4ÍϽwÐ̺#œ”¤´Å;lüËDA Types and traits for the `query` family of functions and macros.Á,˜MapÁ¿»ÔQueryÁ,ijÕQueryAsÁ<íÖ QueryScalarÁ\Ãׄ¬`bMOäØ<ü‚$&|×ü«+( Convenience re-export of common traits.ÁG<üÖÙÊlt˜ ±Ú
élT» Û ½w4Ú ÜÑϽwÜÑÐw4õ ÝÍÊwÝÍÌçmD!
Þ€n<­!Ù
߀n
ßBùklÉ!£àðpë!Üá&„qLƒ"â'ó$¡"ã,ó ãCtõH¬‘ :Œ´ ,ó|‰!Çt¦!¸¤Â!Tä!‡„ü!x\š"i:Ë, úË,Ë,² Ë,ÜË,ðË,¼Ë,ÀË,Ë,ÛË,ßË,¯Ë,Ë,Ë,Ë,êË,îË,·Ë,GË,v‹
native-tlsÁ¤Cwpostgres::typesÁ mysql::typesÁ
Check our FAQÁ8https://www.github.com/launchbadge/sqlx/tree/main/FAQ.mdÁopen a discussionÁ=https://docs.rs/tokio/latest/tokio/runtime/struct.Handle.htmlÁcrate::sqlite::SqlitePoolÁ
crate::sqliteÁ¤Cwɨo€ µs:https://www.github.com/launchbadge/sqlx/tree/main/examplesÁ©tokio::runtimeÁÓ©•ª¤CÈbrowse our example projectsÁäªî¨µstokio::runtime::HandleÁ¯«Ó©Ç6ŽC;https://www.github.com/launchbadge/sqlx/tree/main/README.mdÁث䪵so‰¬¯«Ç6ŽCREADMEÁº¬Ø«‰¬Ç6ŽCÅhttps://www.launchbadge.comÁ©­º¬decode::DecodeÁ%tokio::runtime::Handle::try_current()Áthe LaunchBadge teamÁÙ­©­encode::EncodeÁ…®https://www.async.rsÁ®ó ­  types::TypeÁ Ϯ٭ô®…® async-stdÁ’¯®ó%https://docs.rs/rustls/latest/rustls/Á­ ½wmssqlÁÏ®À¯ô®https://www.tokio.rsÁò¯’¯óRusTLSÁ‘°­ ½w mssql::typesÁʰÀ¯ÉCTokioÁë°ò¯Ã7-https://docs.rs/native-tls/latest/native_tls/Á𱑰ÉC
sqlite::typesÁµ±ʰ½w@https://github.com/launchbadge/sqlx/discussions/new?category=q-aÁܱë°Ã7²5°¨÷±š±ݨº²ÉCε±½©â²ܱ²5Ã7³ª°¨÷±wɨݨº²€©½©â²²5•ª³ªíwcrate::any::install_driversÁ
crate::anyÁ°¢ˆxã:#crate::any::install_default_driversÁÞ´íwþ´°¢ Úˆxã:¡µ [íwÞ´ Úþ´Gˆxã: [°¢¡µíwÞ´þ´°¢ˆxÉ!ã:¡µÞ´íwŸþ´°¢ˆxã:¡µ [íwÞ´ Úþ´Gˆxã:°¢¡µ¢€n
query::MapÁ/https://docs.rs/proc-macro2/1.0.27/proc_macro2/Á
December 2021Á-https://github.com/dotenv-rs/dotenv/issues/74Á https://crates.io/crates/dotenvyÁ query_file!Áquery_file_as!Áquery!Á³ª$proc-macro2 docs / Unstable FeaturesÁì· Offline ModeÁ ¸²¸ query_as!Á‰¹¿;™¹.https://github.com/rust-lang/rust/issues/73921Á½¹Å<gì·https://crates.io/crates/dotenvÁì¹ ¸!https://crates.io/crates/sqlx-cliÁ‰º‰¹¿;the track_path tracking issueÁ¨ºÅ<dotenvÁñº½¹ì¹¨£the README for sqlx-cliÁ¡»‰º¿;Chttps://doc.rust-lang.org/stable/cargo/reference/build-scripts.htmlÁØ»¨ºcrate::sqlite::typesÁ…¼ñºÅ<ú;+https://github.com/rust-lang/rfcs/pull/3307Á¨¼¡»¨£>The Cargo Book: 3.8 Build Scripts; Outputs of the Build ScriptÁռػ crate::mysqlÁ­½…¼úRFC 3307Áܽ¨¼ú;¨£crate::migrate::MigratorÁcrate::migrate::MigrationSourceÁë;crate::mysql::typesÁñ¾­½ž¾Õ¼ú see belowÁ“¿ܽú;5MigratorÁ·¿crate::migrateÁkÔ¿ž¾ë;crate::postgresÁ…Àñ¾ú>https://dev.mysql.com/doc/internals/en/com-query-response.htmlÁºÀ“¿query_file_scalar!Á5ÞÀ·¿°!ñÀ;Ô¿åcrate::postgres::typesÁšÁ…Àë;.the ColumnDefinition structure in COM_QUERY_OKÁ¿ÁºÀ
query_scalar!ÁŽÂÞÀ5MigrationSourceÁ; crate::queryÁ_ÑšÁoñÀ÷bhttps://dev.mysql.com/doc/dev/mysql-server/8.0.12/group__group__cs__column__definition__flags.htmlÁý¿Ácrate::query::QueryScalarÁ¼ÃŽÂßÃ;crate::query::MapÁøÃ ÄÑÂo€ the NOT_NULL flagÁ©ÄýÂcrate::FromRowÁ
œÅ¼ÃØ<h€nßÃÝ·ÑÅøÃÒä¸ýũĬ¹ŸÆœÅÃØ<³ª€nÝ·ÑÅ»²¸ä¸ýÅ™¹¬¹ŸÆÙ
Ø<³ªÖ£éî±Ô À

Ù
ÜÆÑàñ¡ØŠ ³ºµßíßÃLðì ãàéæŒ""“""Û Þ ã ŒMÃMÐLÇLùMÌìÍì“í²—6¡ØŠ ³ºµßíßÃLðì ãàéæŒ""“""Û Þ ã ŒMÃMÐLÇLùMÌìÍì“í²—6ØŠ ³ºµßíßÃLðì ãàéæŒ""“""Û Þ ã ŒMÃMÐLÇLùMÌìÍì“í²—6ØŠ ³ºµßíßÃLðì ãàéæŒ""“""Û Þ ã ŒMÃMÐLÇLùMÌìÍì“í²—6only for type resolutionexplicit panicÅËäËÉãÓ|4\íþµòÓ,”ž¼º9É^ëÜ$ñeê£99éŸN‹«\O>VsÊ2:®fh$IBávsJÙ´¸»ÿzâ¸#€ìÚ†”dˆéñåð§E.mXQJó”<o¡L¯ö?a ï$-eq£W©° $VF„@9ˆ¡p¥(¿ïØñöz6#ƒÖhdPv쯠}ˆ:Ž¡ü  Ì$CG>t˾Ì6ÌÄvž¼.˜W¿@*޽°Ãg‰ˆ^¾ü|ˆ•ç–%P›ä:mùSoH*?2À¸ûèËPKXePþ+ÀØFæ¬é1gW‘0á…}`[$â±m¹qE‚G¾ìÎüõ*P^ù¢mëõõN ™‹º Â~ÌÂPgŒîôMm+·@A—w
'xU¨Bº3Î/,ê!ÚÀÂÿ<|Wa€3K7•ÝÌGò@µ>ÊÉ- Çü¦?~ú/‰­€^ÔfûO6ÛÔÔΕ”×Ù¥°-ö¤–!.ñ0eôVÍÍFVÞ=ìúÊǬšäãZRP5Ê1á©2P=±Û71Ÿnîü’lˆbÑnÇ0+çJD
.bØe[Ìå%+ÁOë;f
'ìpy†T‚cÊŒ¦Î×´4§FqþšqÙäÒ?A8g°:;úbÁ4øâ¥ ÷±­ÉYWhËýoùÖx䉢tòDKlSü g´â'O®ß1™ŸNqÓYƒËØ‚mXÄUŠ7V…¦9«ÒÖ"/ÍôTçzú'L58ñ~këAË@Q¹Ò’„ÎÉF·Ü.Ø-Ñø*©yÄz//ý4àR„ªáââsXµý~ ô-ë)–|Ã|¢¦Ïæ-dø“’ÿ'ç-W3÷6¥¾>°öBLœnL•¢dä¸7#)#Y[i¤cp¸³RÞ”*8^âÁauvÙ¸u]õTÁlä/ò£ØÑ|®Æì).<ï“rV
‰<L4à Þo„œP>‚”Û{½Î^j¹à½êØ
¢ìçÆ¡KÁe}Pó6\p2 õ&!/Ðy¼ol€ÖT1[ñĄ̃më!ÑhqwshÙŠ·æP#îbq3˜‡}uÁW®P¡E&vSMv7½«•,Þ-DÉÅ ñ´±g&yì^k5»}špifþrýƒ¡Q+}[¬&áÜ…ì@æÆ[ó
{ÉWÙì³ú™RëÒ‰òhJb)žA˜[±Þrùžs[†3?-ã:a*7"E¤htª\æ¼ømäÉŽõ¸§‚3ÜŒh/RÌN>âv/<çH؇Òäбö"V°øUOÆÏ”›$s“"º "fŸÕºè‹:ÇÁ^Óœ„ßóœU
G¡ÆA &ãã’ÜG¤ƒ-bõ¤kPRÛ“õÕë‡lÙšTgïöæ)Æ$ú×é—¿ä\!$8ˆ/¾óZRÙ
T±Â1à^f&QE™ì’ Ï‚÷ßIw.?:˪0PVgšåƒORJˆÊ–Bð›Î<ë±Wˆe2Ò F3Úl½…¦^^„ˆ3ßH‹«›ÃþÇ4ñcd‡Íqå‰p«F3æø6’˜Ì Ó\Í[‘ù-·ùùÿË`×…jyÊþYµ~O;eÎ!.¶Ó¡/¤B*»HÉ ¶Œ¥Ð³šŒ!7;Ǭœqs°…›ú0¤ïÿ“ږ߀l^ÌÞËšm¸¿N‘BküŸì´·¤Â£ãã"»ñ‡rЩÞeÒÄ¥m©!ycî“ZßGfßÛ‹¬Ãïaêè±,Âa`s¤·Ö™$8ÔF܇û$g6±íå Z幯\u=\‡5ƒ÷ÿPÞlÃÄ’½~X›3·‚Oáx8Q3Ç„)´»ŒûÍçar}ö¹.‚€þñ’®ƒÃrZ)ñjQøæß¸x0½_ÓÛ ;ÑÞ.ÕF‰¾¼¡æ™=Vè6(9™a(íŠ
ëjgz²8ø5P-&v-3 1¿JE ß5g¤:“—Dò“ z3¦¹è<Sé ñx´2¶SßX]Æ+‹û±<y–jgÁm wË­©¹êÍÁmú‡R¬‘°‰Î¸(ó­Ž;2÷‹ôÞòÿ¦lî==0 Ì‚þœfq¼mæ>‡0ÎÈÇ$¦ÎЍýinkÐÕGcnqSDú5¦{ù5vô"ÿ‹C\2\¯ÁÏ8¨IT©y=)<ÅåæõxãTQ!•ApöØödúö ¹Úä*.‚ìÊh±øÀ©wn‹Qp7îÁ{Ülûªæ¢Ë8—¹
˘
Çi‘îæ<® žíCñ> ­N.tQЬÌG+[=þB»€ú놮À—qîm,% ÂH:)¶l›ºæª{Ö
z}ΩX@úV9ž¶”—Á6HBŸT3\éÚ±—Ñ爇âT]ÅŒêâê!¼»þ…¦$<êJx"}^!ËEw1ïœ#È÷"ÖÏ/#û
Q$·gÉyØü’._[’ƒ
ƬAjÏûWÊã»r •¬sË%%ïyÜ»“Òøí÷h»ʽ£iÛã ++8´›ºŸ l˜RÁ&&Ž´z¥;üEd(}{X¥hCŠI*+JIQ4S
eÂ=U5MªxÓþC]ˆ¢Íç,Wq¹Ó/I«ÿ a { Ï é 1
K
Ÿ
¹
% >   ¼s
áùHQ4SùUÝ þOÁÒbÒ@®Sì1v»E xæH  

ÿ
 +++++++++++++ '  


'  















øHQ2SâTU÷Uÿ™K
¥¨ÇÍÏжÜÊßÂè ýÜþ1ÿ°ÿ+rˆ
P¸áiA[Õ7Á|§GŒÑ[½3 e Ó 5
£
) U ® ÀÑa(<°M¶M¹M¿MÂMÈMÎMÕMÜMàMæMìMðM÷MýMNNNNNN&N,N0N6N<N@NFNLNPNWN]NaNgNmNqNwN}N„NŒNNNœN£NªN®N´NºNÁNÅNÌNÒNØNßNãNêNðNöNüNOO
OOOO!O'O-O4O;OBOÔRÚRâRæRìRòRøRþRS