Filter
Exclude
Time range
-
Near
I think you need to instantiate a new DatabaseManager every time that query runs outside of your appโ€™s process. Can be a singleton, or just do it in-line within the `entities` method
23
I think your code will only work if that Intent Query runs in your main app process. If iOS tries to run that query for widget configuration, Spotlight, etc in a separate process, then that dependency wonโ€™t work since youโ€™re only assigning your DatabaseManager in the main app process.
1
20
Replying to @coughski
I'm not there yet! ๐Ÿ˜… So this means another DatabaseManager would be initialised in the extension?
1
1
40
fff-mcp uses word-boundary grep. Search "manager", miss "DatabaseManager". codedb uses a trigram index. Finds substrings. 6x more files returned on the same query. Same latency. Way more results.
1
3
604
๐Ÿ‘‡ Apply now and join the Geminia Tech Team: geminia.co.ke/careers/ #GeminiaInsurance #DatabaseManager #Ikokazike
1
2
246
Replying to @Dimillian
I created this helper class that counts references and then throws an error if there's more than one instance. I used it to make sure my DatabaseManager had only one instance: github.com/wvabrinskas/Huddlโ€ฆ
1
3
192
Framework Architecture: ๐Ÿ” RPCSwapMonitor - Polls contract reserves โš™๏ธ StrategyEngine - Calculates hedge decisions ๐Ÿ›ก๏ธ RiskManager - Validates trades & leverage ๐Ÿ”„ ExchangeManager - Executes on CEXs ๐Ÿ“Š DatabaseManager - Persists snapshots Fully modular.
1
5
351
"I don't like accessing DatabaseManager directly, it scares me" - @BitSquidd then proceeds to create this function inside of ScoreManager...
1
1
20
320
Check out our YouTube! This material isnโ€™t covered yet but itโ€™s coming soon youtube.com/@BlossomBuild DatabaseManager github.com/BlossomBuild/Projโ€ฆ DatabaseViewModel github.com/BlossomBuild/Projโ€ฆ ProjectsListView github.com/BlossomBuild/Projโ€ฆ DeleteProjectAlertView github.com/BlossomBuild/Projโ€ฆ
1
1
15
944
Laravel devs, do you inject DatabaseManager or ConnectionInterface in your constructors as dependencies if you want to avoid using the DB facade? I personally use DatabaseManager but wanted to get opinions on using ConnectionInterface.
14% DatabaseManager
14% ConnectionInterface
1% Connection
71% Stick to facades - DB::
128 votes โ€ข Final results
4
2
6
1,683
Generated from Claud with no prior context except the seed: "Hi Claude I want to serve search results from a Github codebase using vector search over the chunks of the code base. Tell me some high level software architecture designs for this description:" And had a couple of phases of conversation. And it managed to produce this. Very based Claude, very based /vector-search-github/ โ”œโ”€โ”€ data_ingestion/ โ”‚ โ”œโ”€โ”€ github_api_client.py โ”‚ โ”‚ class GitHubAuth: โ”‚ โ”‚ - token: str โ”‚ โ”‚ __init__(token: str) โ”‚ โ”‚ get_headers() -> dict โ”‚ โ”‚ โ”‚ โ”‚ class GitHubRepo: โ”‚ โ”‚ - name: str โ”‚ โ”‚ - api_url: str โ”‚ โ”‚ __init__(name: str, api_url: str) โ”‚ โ”‚ get_file_list() -> list[str] โ”‚ โ”‚ โ”‚ โ”‚ class GitHubClient: โ”‚ โ”‚ - auth: GitHubAuth โ”‚ โ”‚ __init__(auth: GitHubAuth) โ”‚ โ”‚ fetch_repository(repo: GitHubRepo) -> dict โ”‚ โ”‚ get_file_content(repo: GitHubRepo, file_path: str) -> str โ”‚ โ”‚ get_commit_history(repo: GitHubRepo, file_path: str) -> list โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ code_chunker.py โ”‚ โ”‚ class ChunkConfig: โ”‚ โ”‚ - chunk_size: int โ”‚ โ”‚ - overlap: int โ”‚ โ”‚ __init__(chunk_size: int, overlap: int) โ”‚ โ”‚ โ”‚ โ”‚ class Chunk: โ”‚ โ”‚ - content: str โ”‚ โ”‚ - start_line: int โ”‚ โ”‚ - end_line: int โ”‚ โ”‚ __init__(content: str, start_line: int, end_line: int) โ”‚ โ”‚ โ”‚ โ”‚ class CodeChunker: โ”‚ โ”‚ - config: ChunkConfig โ”‚ โ”‚ __init__(config: ChunkConfig) โ”‚ โ”‚ chunk_code(code_string: str) -> list[Chunk] โ”‚ โ”‚ process_file(file_content: str) -> list[Chunk] โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ text_embedding.py โ”‚ โ”‚ class EmbeddingModel: โ”‚ โ”‚ - name: str โ”‚ โ”‚ - dimension: int โ”‚ โ”‚ __init__(name: str, dimension: int) โ”‚ โ”‚ load() -> None โ”‚ โ”‚ โ”‚ โ”‚ class TextEmbedder: โ”‚ โ”‚ - model: EmbeddingModel โ”‚ โ”‚ __init__(model: EmbeddingModel) โ”‚ โ”‚ embed_text(text: str) -> np.ndarray โ”‚ โ”‚ embed_chunks(chunks: list[Chunk]) -> list[np.ndarray] โ”‚ โ”‚ โ”‚ โ”‚ class SimilarityCalculator: โ”‚ โ”‚ compute_similarity(vec1: np.ndarray, vec2: np.ndarray) -> float โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ code_analyzer.py โ”‚ โ”‚ class CodeStructure: โ”‚ โ”‚ - functions: list[str] โ”‚ โ”‚ - classes: list[str] โ”‚ โ”‚ __init__(functions: list[str], classes: list[str]) โ”‚ โ”‚ โ”‚ โ”‚ class ComplexityMetrics: โ”‚ โ”‚ - cyclomatic_complexity: int โ”‚ โ”‚ - cognitive_complexity: int โ”‚ โ”‚ __init__(cyclomatic_complexity: int, cognitive_complexity: int) โ”‚ โ”‚ โ”‚ โ”‚ class CodeAnalyzer: โ”‚ โ”‚ extract_structure(code: str) -> CodeStructure โ”‚ โ”‚ analyze_complexity(code: str) -> ComplexityMetrics โ”‚ โ”‚ detect_language(code: str) -> str โ”œโ”€โ”€ vector_database/ โ”‚ โ”œโ”€โ”€ vector_store.py โ”‚ โ”‚ class VectorEntry: โ”‚ โ”‚ - id: str โ”‚ โ”‚ - vector: np.ndarray โ”‚ โ”‚ - metadata: dict โ”‚ โ”‚ __init__(id: str, vector: np.ndarray, metadata: dict) โ”‚ โ”‚ โ”‚ โ”‚ class VectorStore: โ”‚ โ”‚ - database: DatabaseManager โ”‚ โ”‚ __init__(database: DatabaseManager) โ”‚ โ”‚ insert_vector(entry: VectorEntry) -> None โ”‚ โ”‚ search_similar(query_vector: np.ndarray, top_k: int) -> list[VectorEntry] โ”‚ โ”‚ delete_vector(vector_id: str) -> None โ”‚ โ”‚ update_vector(vector_id: str, new_entry: VectorEntry) -> None โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ indexing.py โ”‚ โ”‚ class IndexConfig: โ”‚ โ”‚ - algorithm: str โ”‚ โ”‚ - parameters: dict โ”‚ โ”‚ __init__(algorithm: str, parameters: dict) โ”‚ โ”‚ โ”‚ โ”‚ class VectorIndex: โ”‚ โ”‚ - config: IndexConfig โ”‚ โ”‚ - index: Any # Placeholder for the actual index structure โ”‚ โ”‚ __init__(config: IndexConfig) โ”‚ โ”‚ build_index(vectors: list[np.ndarray]) -> None โ”‚ โ”‚ query(query_vector: np.ndarray, num_results: int) -> list[int] โ”‚ โ”‚ add_to_index(vector: np.ndarray, id: int) -> None โ”‚ โ”‚ remove_from_index(id: int) -> None โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ database_manager.py โ”‚ โ”‚ class DatabaseConfig: โ”‚ โ”‚ - url: str โ”‚ โ”‚ - max_connections: int โ”‚ โ”‚ __init__(url: str, max_connections: int) โ”‚ โ”‚ โ”‚ โ”‚ class DatabaseManager: โ”‚ โ”‚ - config: DatabaseConfig โ”‚ โ”‚ - connection: Any # Placeholder for the actual database connection โ”‚ โ”‚ __init__(config: DatabaseConfig) โ”‚ โ”‚ create_tables() -> None โ”‚ โ”‚ execute_query(query: str, params: tuple) -> None โ”‚ โ”‚ fetch_all(query: str, params: tuple) -> list โ”‚ โ”‚ close_connection() -> None โ”œโ”€โ”€ search_api/ โ”‚ โ”œโ”€โ”€ query_handler.py โ”‚ โ”‚ class Query: โ”‚ โ”‚ - text: str โ”‚ โ”‚ - filters: dict โ”‚ โ”‚ __init__(text: str, filters: dict) โ”‚ โ”‚ โ”‚ โ”‚ class SearchResult: โ”‚ โ”‚ - content: str โ”‚ โ”‚ - similarity: float โ”‚ โ”‚ - metadata: dict โ”‚ โ”‚ __init__(content: str, similarity: float, metadata: dict) โ”‚ โ”‚ โ”‚ โ”‚ class QueryHandler: โ”‚ โ”‚ - vector_store: VectorStore โ”‚ โ”‚ - text_embedder: TextEmbedder โ”‚ โ”‚ __init__(vector_store: VectorStore, text_embedder: TextEmbedder) โ”‚ โ”‚ process_query(query: Query) -> list[SearchResult] โ”‚ โ”‚ format_results(search_results: list[SearchResult]) -> list[dict] โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ vector_converter.py โ”‚ โ”‚ class VectorConverter: โ”‚ โ”‚ - text_embedder: TextEmbedder โ”‚ โ”‚ __init__(text_embedder: TextEmbedder) โ”‚ โ”‚ text_to_vector(text: str) -> np.ndarray โ”‚ โ”‚ โ”‚ โ”‚ class VectorCompressor: โ”‚ โ”‚ - compression_method: str โ”‚ โ”‚ __init__(compression_method: str) โ”‚ โ”‚ compress_vector(vector: np.ndarray) -> np.ndarray โ”‚ โ”‚ decompress_vector(compressed_vector: np.ndarray) -> np.ndarray โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ similarity_search.py โ”‚ โ”‚ class SearchConfig: โ”‚ โ”‚ - top_k: int โ”‚ โ”‚ - similarity_threshold: float โ”‚ โ”‚ __init__(top_k: int, similarity_threshold: float) โ”‚ โ”‚ โ”‚ โ”‚ class SimilaritySearch: โ”‚ โ”‚ - vector_store: VectorStore โ”‚ โ”‚ - vector_index: VectorIndex โ”‚ โ”‚ - config: SearchConfig โ”‚ โ”‚ __init__(vector_store: VectorStore, vector_index: VectorIndex, config: SearchConfig) โ”‚ โ”‚ search(query_vector: np.ndarray) -> list[SearchResult] โ”‚ โ”‚ range_search(query_vector: np.ndarray, radius: float) -> list[SearchResult] โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ search_optimizer.py โ”‚ โ”‚ class QueryCache: โ”‚ โ”‚ - cache: dict โ”‚ โ”‚ - max_size: int โ”‚ โ”‚ __init__(max_size: int) โ”‚ โ”‚ add(query: str, results: list[SearchResult]) -> None โ”‚ โ”‚ get(query: str) -> list[SearchResult] โ”‚ โ”‚ โ”‚ โ”‚ class SearchOptimizer: โ”‚ โ”‚ - similarity_search: SimilaritySearch โ”‚ โ”‚ - query_cache: QueryCache โ”‚ โ”‚ __init__(similarity_search: SimilaritySearch, query_cache: QueryCache) โ”‚ โ”‚ optimize_query(query: str) -> str โ”‚ โ”‚ cache_frequent_queries(query_history: list[str]) -> None โ”‚ โ”‚ suggest_related_queries(query: str) -> list[str] โ”œโ”€โ”€ web_interface/ โ”‚ โ”œโ”€โ”€ app.py โ”‚ โ”‚ class FlaskApp: โ”‚ โ”‚ - app: Flask โ”‚ โ”‚ - query_handler: QueryHandler โ”‚ โ”‚ __init__(query_handler: QueryHandler) โ”‚ โ”‚ index() -> str โ”‚ โ”‚ search() -> str โ”‚ โ”‚ advanced_search() -> str โ”‚ โ”‚ api_search() -> dict โ”œโ”€โ”€ background_jobs/ โ”‚ โ”œโ”€โ”€ update_codebase.py โ”‚ โ”‚ class UpdateTask: โ”‚ โ”‚ - repo: GitHubRepo โ”‚ โ”‚ - last_update: datetime โ”‚ โ”‚ __init__(repo: GitHubRepo) โ”‚ โ”‚ โ”‚ โ”‚ class CodebaseUpdater: โ”‚ โ”‚ - github_client: GitHubClient โ”‚ โ”‚ - vector_store: VectorStore โ”‚ โ”‚ - tasks: list[UpdateTask] โ”‚ โ”‚ __init__(github_client: GitHubClient, vector_store: VectorStore) โ”‚ โ”‚ check_for_updates() -> list[str] โ”‚ โ”‚ process_updates(updates: list[str]) -> None โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ refresh_vector_db.py โ”‚ โ”‚ class RefreshTask: โ”‚ โ”‚ - chunk: Chunk โ”‚ โ”‚ - last_refresh: datetime โ”‚ โ”‚ __init__(chunk: Chunk) โ”‚ โ”‚ โ”‚ โ”‚ class VectorDBRefresher: โ”‚ โ”‚ - vector_store: VectorStore โ”‚ โ”‚ - code_chunker: CodeChunker โ”‚ โ”‚ - text_embedder: TextEmbedder โ”‚ โ”‚ - tasks: list[RefreshTask] โ”‚ โ”‚ __init__(vector_store: VectorStore, code_chunker: CodeChunker, text_embedder: TextEmbedder) โ”‚ โ”‚ refresh_database() -> None โ”‚ โ”‚ process_chunk(chunk: Chunk) -> None โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ job_scheduler.py โ”‚ โ”‚ class Job: โ”‚ โ”‚ - id: str โ”‚ โ”‚ - func: callable โ”‚ โ”‚ - trigger: str โ”‚ โ”‚ - kwargs: dict โ”‚ โ”‚ __init__(id: str, func: callable, trigger: str, **kwargs) โ”‚ โ”‚ โ”‚ โ”‚ class JobScheduler: โ”‚ โ”‚ - jobs: list[Job] โ”‚ โ”‚ __init__() โ”‚ โ”‚ add_job(job: Job) -> None โ”‚ โ”‚ remove_job(job_id: str) -> None โ”‚ โ”‚ start() -> None โ”‚ โ”‚ shutdown() -> None โ”œโ”€โ”€ config/ โ”‚ โ”œโ”€โ”€ settings.py โ”‚ โ”œโ”€โ”€ logging_config.py โ”‚ โ”‚ class LogConfig: โ”‚ โ”‚ - level: str โ”‚ โ”‚ - format: str โ”‚ โ”‚ - file: str โ”‚ โ”‚ __init__(level: str, format: str, file: str) โ”‚ โ”‚ โ”‚ โ”‚ setup_logging(config: LogConfig) -> None โ”‚ โ”‚ get_logger(name: str) -> Logger โ”œโ”€โ”€ utils/ โ”‚ โ”œโ”€โ”€ performance_monitor.py โ”‚ โ”‚ class Timer: โ”‚ โ”‚ - start_time: float โ”‚ โ”‚ - end_time: float โ”‚ โ”‚ start() -> None โ”‚ โ”‚ stop() -> float โ”‚ โ”‚ โ”‚ โ”‚ class PerformanceMonitor: โ”‚ โ”‚ - timers: dict[str, Timer] โ”‚ โ”‚ - memory_usage: list[float] โ”‚ โ”‚ start_timer(operation: str) -> None โ”‚ โ”‚ stop_timer(operation: str) -> float โ”‚ โ”‚ log_memory_usage() -> None โ”‚ โ”‚ generate_report() -> dict โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ error_handler.py โ”‚ โ”‚ class ErrorContext: โ”‚ โ”‚ - module: str โ”‚ โ”‚ - function: str โ”‚ โ”‚ - parameters: dict โ”‚ โ”‚ __init__(module: str, function: str, parameters: dict) โ”‚ โ”‚ โ”‚ โ”‚ class ErrorHandler: โ”‚ โ”‚ - logger: Logger โ”‚ โ”‚ __init__(logger: Logger) โ”‚ โ”‚ handle_error(error: Exception, context: ErrorContext) -> None โ”‚ โ”‚ log_error(error: Exception, context: ErrorContext) -> None โ”‚ โ”‚ notify_admin(error: Exception, context: ErrorContext) -> None โ”œโ”€โ”€ tests/ โ”‚ โ”œโ”€โ”€ test_github_api_client.py โ”‚ โ”œโ”€โ”€ test_code_chunker.py โ”‚ โ”œโ”€โ”€ test_text_embedding.py โ”‚ โ”œโ”€โ”€ test_vector_store.py โ”‚ โ”œโ”€โ”€ test_query_handler.py โ”‚ โ”œโ”€โ”€ test_similarity_search.py โ”‚ โ””โ”€โ”€ test_web_interface.py โ””โ”€โ”€ main.py initialize_components() -> tuple setup_background_jobs(job_scheduler: JobScheduler) -> None main() -> None

1
1
71
Episode 2 of "How It Works With Holger - Modern Delphi Web Development" is out! ๐ŸŒ๐Ÿ’ป Holger explores code structure, introduces 'AppGlobals' and 'DatabaseManager' classes, and demonstrates Singleton pattern implementation. ๐ŸŽฅ Watch now: youtu.be/P65pQ6xMN1Y

1
4
200
Unlock your potential at TOPLINE SECURITIES! We're hiring a Database Manager to spearhead data excellence in the world of finance. Ready to make your mark? Apply today! #TOPLINECareers #DatabaseManager #PSX"
2
3
8
2,163
ใกใ‚ƒใ‚“ใจๅ‚็…งใ‚’ใƒใ‚งใƒƒใ‚ฏ setUp()ใงใ‚ณใƒณใƒ†ใƒŠใ‚คใƒณใ‚นใ‚ฟใƒณใ‚นใŒๅ†ใ‚ปใƒƒใƒˆใ•ใ‚Œใ‚‹๏ผˆใคใพใ‚Šใ€ๅคใ„Applicationใ‚คใƒณใ‚นใ‚ฟใƒณใ‚นใฏๅ‚็…งใŒใชใใชใ‚‹ใฏใš๏ผ‰ใฎๅ‰ๅพŒใง่จˆๆธฌ ็†่ซ–ไธŠใฏใ€่จˆๆธฌ็”จใฎๅค‰ๆ•ฐใ‹ใ‚‰ใฎๅ‚็…งใฎใฟใฎ(1)ใซใชใ‚‹ใฏใš ๅ‰: Application(67), DatabaseManager(6) ๅพŒ: Application(57), DatabaseManager(5) ๐Ÿ‘€
2
6
902
De belangrijkste video van vandaag is deze, waarin de computerwetenschapper die, naast de databasemanager, een online betalingssysteem voor #Corona #vaccins in Nieuw-Zeeland heeft opgezet, spreekt. Zoals hij zelf zegt, is hij de enige persoon die toegang had tot deze gegevens. Omdat Nieuw-Zeeland een heel klein land is, voerde hij de applicatie alleen uit. De computerwetenschapper ontdekte dat veel mensen die werden geรฏnjecteerd met het โ€˜#Corona-vaccinโ€™ binnen een week na de injectie stierven, waardoor hij de 10 dodelijkste vaccinbatches met een sterftecijfer tot 21% kon identificeren en ook de identiteit van de 10 โ€˜vaccinatorsโ€™ die de meeste mensen hebben gedood (hoewel hij ze โ€˜vaccinators 1, 2, enz.โ€™ noemt). Dit geeft aanwijzingen voor degenen die de dodelijkste batches in elk land willen onderzoeken. (In Nieuw-Zeeland was het het #Pfizer-vaccin dat de meeste mensen doodde). RAFA แดกแด€ษดษดแด‡แด‡ส€ แด›ษชส€แด€ษดษดษชแด‡ แด‡แด‡ษด แดกแด‡แด› แดกแดส€แด…แด›, แดกแดส€แด…แด› ส€แด‡ส™แด‡สŸสŸษชแด‡ แด‡แด‡ษด แด˜สŸษชแด„สœแด›!
3
3
120
24 May 2023
Imagine a "DatabaseManager" class which job is, well, manage a database schema. If you need to create a mock of an "IDatabaseAdapterFactory" (and I use the term "mock" liberally) that returns a mock of an "IDatabaseAdapter" to test the manager, chances arโ€ฆlnkd.in/e2K5mb7Z

2
403
If you are looking for a career move that will enable you to play a key role in creating significant, lasting change you will be excited about working here. For further information please go to: animalsasia.bamboohr.com/carโ€ฆ #DatabaseManager #Recruitment #AnimalsAsia
2
13
22
2,018