Debian Codegraph @

src/lib.rs

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 //! Core of SQLx, the rust SQL toolkit.
2 //!
3 //! ### Note: Semver Exempt API
4 //! The API of this crate is not meant for general use and does *not* follow Semantic Versioning.
5 //! The only crate that follows Semantic Versioning in the project is the `sqlx` crate itself.
6 //! If you are building a custom SQLx driver, you should pin an exact version for `sqlx-core` to
7 //! avoid breakages:
8 //!
9 //! ```toml
10 //! sqlx-core = { version = "=0.6.2" }
11 //! ```
12 //!
13 //! And then make releases in lockstep with `sqlx-core`. We recommend all driver crates, in-tree
14 //! or otherwise, use the same version numbers as `sqlx-core` to avoid confusion.
15 #![recursion_limit = "512"]
16 #![warn(future_incompatible, rust_2018_idioms)]
17 #![allow(clippy::needless_doctest_main, clippy::type_complexity)]
18 // The only unsafe code in SQLx is that necessary to interact with native APIs like with SQLite,
19 // and that can live in its own separate driver crate.
•20 //#![forbid(unsafe_code)] disabled due to async-io update.
21 // Allows an API be documented as only available in some specific platforms.
22 // <https://doc.rust-lang.org/unstable-book/language-features/doc-cfg.html>
23 #![cfg_attr(docsrs, feature(doc_cfg))]
24
25 #[macro_use]
26 pub mod extrust-analyzer cargo sqlx-core 0.8.3 ext/;
27
28 #[macro_use]
29 pub mod errorrust-analyzer cargo sqlx-core 0.8.3 error/;
30
31 #[macro_use]
32 pub mod argumentsrust-analyzer cargo sqlx-core 0.8.3 arguments/;
33
34 #[macro_use]
35 pub mod poolrust-analyzer cargo sqlx-core 0.8.3 pool/;
36
37 pub mod connectionrust-analyzer cargo sqlx-core 0.8.3 connection/;
38
39 #[macro_use]
40 pub mod transactionrust-analyzer cargo sqlx-core 0.8.3 transaction/;
41
42 #[macro_use]
43 pub mod encoderust-analyzer cargo sqlx-core 0.8.3 encode/;
44
45 #[macro_use]
46 pub mod decoderust-analyzer cargo sqlx-core 0.8.3 decode/;
47
48 #[macro_use]
49 pub mod typesrust-analyzer cargo sqlx-core 0.8.3 types/;
50
51 #[macro_use]
52 pub mod queryrust-analyzer cargo sqlx-core 0.8.3 query/;
53
54 #[macro_use]
55 pub mod acquirerust-analyzer cargo sqlx-core 0.8.3 acquire/;
56
57 #[macro_use]
58 pub mod columnrust-analyzer cargo sqlx-core 0.8.3 column/;
59
60 #[macro_use]
61 pub mod statementrust-analyzer cargo sqlx-core 0.8.3 statement/;
62
63 pub mod commonrust-analyzer cargo sqlx-core 0.8.3 common/;
64 pub mod databaserust-analyzer cargo sqlx-core 0.8.3 database/;
65 pub mod describerust-analyzer cargo sqlx-core 0.8.3 describe/;
66 pub mod executorrust-analyzer cargo sqlx-core 0.8.3 executor/;
67 pub mod from_rowrust-analyzer cargo sqlx-core 0.8.3 from_row/;
68 pub mod fsrust-analyzer cargo sqlx-core 0.8.3 fs/;
69 pub mod iorust-analyzer cargo sqlx-core 0.8.3 io/;
70 pub mod loggerrust-analyzer cargo sqlx-core 0.8.3 logger/;
71 pub mod netrust-analyzer cargo sqlx-core 0.8.3 net/;
72 pub mod query_asrust-analyzer cargo sqlx-core 0.8.3 query_as/;
73 pub mod query_builderrust-analyzer cargo sqlx-core 0.8.3 query_builder/;
74 pub mod query_scalarrust-analyzer cargo sqlx-core 0.8.3 query_scalar/;
75
76 pub mod raw_sqlrust-analyzer cargo sqlx-core 0.8.3 raw_sql/;
77 pub mod rowrust-analyzer cargo sqlx-core 0.8.3 row/;
78 pub mod rtrust-analyzer cargo sqlx-core 0.8.3 rt/;
79 pub mod syncrust-analyzer cargo sqlx-core 0.8.3 sync/;
80 pub mod type_checkingrust-analyzer cargo sqlx-core 0.8.3 type_checking/;
81 pub mod type_inforust-analyzer cargo sqlx-core 0.8.3 type_info/;
82 pub mod valuerust-analyzer cargo sqlx-core 0.8.3 value/;
83
84 #[cfg(feature = "migrate")]
85 pub mod migraterust-analyzer cargo sqlx-core 0.8.3 migrate/;
86
87 #[cfg(feature = "any")]
88 pub mod anyrust-analyzer cargo sqlx-core 0.8.3 any/;
89
90 // Implements test support with automatic DB management.
91 #[cfg(feature = "migrate")]
92 pub mod testingrust-analyzer cargo sqlx-core 0.8.3 testing/;
93
94 pub use errorrust-analyzer cargo sqlx-core 0.8.3 error/::{Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#, Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#};
95
96 pub use eitherrust-analyzer cargo either 1.18.0 crate/::Eitherrust-analyzer cargo either 1.18.0 Either#;
97 pub use hashbrownrust-analyzer cargo hashbrown 0.17.1 crate/::{hash_maprust-analyzer cargo hashbrown 0.17.1 hash_map/, HashMaprust-analyzer cargo hashbrown 0.17.1 map/HashMap#};
98 pub use indexmaprust-analyzer cargo indexmap 2.14.0 crate/::IndexMaprust-analyzer cargo indexmap 2.14.0 map/IndexMap#;
99 pub use percent_encodingrust-analyzer cargo percent-encoding 2.3.2 crate/;
100 pub use smallvecrust-analyzer cargo smallvec 1.15.2 crate/::SmallVecrust-analyzer cargo smallvec 1.15.2 SmallVec#;
101 pub use urlrust-analyzer cargo url 2.5.8 crate/::{selfrust-analyzer cargo url 2.5.8 crate/, Urlrust-analyzer cargo url 2.5.8 Url#};
102
103 pub use bytesrust-analyzer cargo bytes 1.12.1 crate/;
104
105 /// Helper module to get drivers compiling again that used to be in this crate,
106 /// to avoid having to replace tons of `use crate::<...>` imports.
107 ///
108 /// This module can be glob-imported and should not clash with any modules a driver
109 /// would want to implement itself.
110 pub mod driver_preluderust-analyzer cargo sqlx-core 0.8.3 driver_prelude/ {
111 pub use craterust-analyzer cargo sqlx-core 0.8.3 crate/::{
112 acquirerust-analyzer cargo sqlx-core 0.8.3 acquire/, commonrust-analyzer cargo sqlx-core 0.8.3 common/, decoderust-analyzer cargo sqlx-core 0.8.3 decode/, describerust-analyzer cargo sqlx-core 0.8.3 describe/, encoderust-analyzer cargo sqlx-core 0.8.3 encode/, executorrust-analyzer cargo sqlx-core 0.8.3 executor/, extrust-analyzer cargo sqlx-core 0.8.3 ext/, from_rowrust-analyzer cargo sqlx-core 0.8.3 from_row/, fsrust-analyzer cargo sqlx-core 0.8.3 fs/, iorust-analyzer cargo sqlx-core 0.8.3 io/, loggerrust-analyzer cargo sqlx-core 0.8.3 logger/, netrust-analyzer cargo sqlx-core 0.8.3 net/,
113 poolrust-analyzer cargo sqlx-core 0.8.3 pool/, queryrust-analyzer cargo sqlx-core 0.8.3 query/, query_asrust-analyzer cargo sqlx-core 0.8.3 query_as/, query_builderrust-analyzer cargo sqlx-core 0.8.3 query_builder/, query_scalarrust-analyzer cargo sqlx-core 0.8.3 query_scalar/, rtrust-analyzer cargo sqlx-core 0.8.3 rt/, syncrust-analyzer cargo sqlx-core 0.8.3 sync/,
114 };
115
116 pub use craterust-analyzer cargo sqlx-core 0.8.3 crate/::errorrust-analyzer cargo sqlx-core 0.8.3 error/::{Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#, Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#};
117 pub use craterust-analyzer cargo sqlx-core 0.8.3 crate/::{hash_maprust-analyzer cargo hashbrown 0.17.1 hash_map/, HashMaprust-analyzer cargo hashbrown 0.17.1 map/HashMap#};
118 pub use eitherrust-analyzer cargo either 1.18.0 crate/::Eitherrust-analyzer cargo either 1.18.0 Either#;
119 }