{"repo":"choptastic/sql_bridge","free":true,"listed":false,"github":"https://github.com/choptastic/sql_bridge","clone":"git clone https://github.com/choptastic/sql_bridge.git","description":"SQL_Bridge: An abstraction layer for Erlang SQL databases (MySQL and PostgreSQL)","language":"Erlang","stars":21,"topics":["erlang","mysql","postgresql"],"license":"MIT","category":"databases-storage","readme_excerpt":"SQL Bridge An Erlang SQL Abstraction layer for interfacing with SQL databases. Supported Databases MySQL PostgreSQL Planned for support Microsoft SQL Server SQLite What it does It provides a simple layer on top of existing SQL drivers, abstracting away the pool management, and providing sensible default behaviors. Further, it provides a whole slew of methods for returning and updating data: lists, tuples, proplists, dicts, existence checks, single fields returning and setting, updating data from proplists, and more. Connection Conventions - A process tracks which database it's connecting to, grabbing any of the available database pools. No need to identify a specific pool with requests. - Connections are made automatically when the first query is attempted - A process determines which database to connect to via the sql bridge application variable lookup . - This is used commonly to simplify the process of running a single codebase which connects to different database for different users or for different host headers. Configuration module alias Probably the most unusual configuration to discuss is the module alias . This configuration option allows us to compile a module which exports all the functions of sql bridge , but allows us to use a different module name. In my own apps, I tend to use a module called db which serves as the alias to sql bridge . While it's easy enough to make your own module and do an import , this configuration parameter allows us to skip that step. Th","default_branch":null,"files":null,"tree":[],"storefront":"/r/choptastic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/choptastic/sql_bridge/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}