{"repo":"yunionio/sqlchemy","free":true,"listed":false,"github":"https://github.com/yunionio/sqlchemy","clone":"git clone https://github.com/yunionio/sqlchemy.git","description":"A lightweight golang ORM library inspired by python sqlalchemy","language":"Go","stars":50,"topics":["orm","golang"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"sqlchemy A lightweight golang ORM library inspired by python sqlalchemy. Features ---------------- Automatic creation and synchronization of table schema based on golang struct Query syntax inpired by sqlalchemy Support: MySQL/MariaDB with InnoDB engine / Sqlite (Exprimental) / ClickHouse / Dameng (Exprimental) Support select, insert, update and insertOrupdate (no delete) Quick Examples ---------------- Database initialization Before using sqlchemy, database connection should be setup first. Setup database of default backend(MySQL with InnoDB) Setup database of MySQL with InnoDB explicitly Setup database of SQLite Setup database of ClickHouse Setup database of Dameng Table Schema Table schema is defined by struct field tags Table initialization Create a table from a struct schema Check whether table schema definition is consistent with schema in database. Synchronize database table schema and make it consistent with the struct defintion. Query Construct query Fetch data SubQuery Query can be used as a subquery in other queries. Insert Update Please refer to sqltest/main.go for more examples.","default_branch":null,"files":null,"tree":[],"storefront":"/r/yunionio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yunionio/sqlchemy/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."}