All Projects → Selvatico → Go Mocket

Selvatico / Go Mocket

Licence: mit
Go GORM & SQL mocking library

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Go Mocket

Gosql
golang orm and sql builder
Stars: ✭ 141 (-25.79%)
Mutual labels:  gorm, db
Sqldb Logger
A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.
Stars: ✭ 160 (-15.79%)
Mutual labels:  db
Zendea
A free, open-source, self-hosted forum software written in Go 官方QQ群:656868
Stars: ✭ 116 (-38.95%)
Mutual labels:  gorm
Framework
Strongly-typed JavaScript object with support for validation and error handling.
Stars: ✭ 136 (-28.42%)
Mutual labels:  db
Gsheets Db Api
A Python DB-API and SQLAlchemy dialect to Google Spreasheets
Stars: ✭ 122 (-35.79%)
Mutual labels:  db
Go Web
Modern Web Application with Golang
Stars: ✭ 138 (-27.37%)
Mutual labels:  gorm
Ultimate Go
This repo contains my notes on working with Go and computer systems.
Stars: ✭ 1,530 (+705.26%)
Mutual labels:  gorm
Goilerplate
Clean Boilerplate of Go, Domain-Driven Design, Clean Architecture, Gin and GORM.
Stars: ✭ 173 (-8.95%)
Mutual labels:  gorm
Paddleocr
Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Stars: ✭ 18,084 (+9417.89%)
Mutual labels:  db
Myutils
🙏 提供时间轴转星座|生肖工具、系统存储空间获取工具、文件大小格式化工具、获取指定文件大小工具、AES加密解码工具(支持android端平台加密解密,java端和android端相互加密解密)、SharePreference操作工具、 File文件操作工具、日期获取和计算工具、界面跳转Intent操作工具、字符串验证和数值转换操作工具、手机震动工具、系统资源操作工具、网络检测工具、 wifi操作工具、单位换算工具、zip压缩和解压操作工具、XML解析操作工具(只支持几种指定格式)、图片加载和处理工具,数据库操作(增删改查)工具、Base64编码解码工具、MD5加密工具。
Stars: ✭ 130 (-31.58%)
Mutual labels:  db
Ycdatabase
The lightest php database framework written in c language, built in php extension, for mysql
Stars: ✭ 130 (-31.58%)
Mutual labels:  db
Apiproject
[https://www.sofineday.com], golang项目开发脚手架,集成最佳实践(gin+gorm+go-redis+mongo+cors+jwt+json日志库zap(支持日志收集到kafka或mongo)+消息队列kafka+微信支付宝支付gopay+api加密+api反向代理+go modules依赖管理+headless爬虫chromedp+makefile+二进制压缩+livereload热加载)
Stars: ✭ 124 (-34.74%)
Mutual labels:  gorm
Hafas Client
JavaScript client for HAFAS public transport APIs.
Stars: ✭ 125 (-34.21%)
Mutual labels:  db
Gin Admin
RBAC scaffolding based on Gin + Gorm 2.0 + Casbin + Wire
Stars: ✭ 1,835 (+865.79%)
Mutual labels:  gorm
Dgw
dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata
Stars: ✭ 161 (-15.26%)
Mutual labels:  db
Golang Gin Realworld Example App
Exemplary real world application built with Golang + Gin
Stars: ✭ 1,780 (+836.84%)
Mutual labels:  gorm
Gorm Paginator
gorm pagination extension
Stars: ✭ 136 (-28.42%)
Mutual labels:  gorm
Go init
一个用go组织项目结构,主要包括 gin, goredis, gorm, websocket, rabbitmq等。👉
Stars: ✭ 183 (-3.68%)
Mutual labels:  gorm
Cmall Go
golang写的电子商城的API接口
Stars: ✭ 167 (-12.11%)
Mutual labels:  gorm
Laravel Db Profiler
Database Profiler for Laravel Web and Console Applications.
Stars: ✭ 141 (-25.79%)
Mutual labels:  db

GoDoc Build Status Go Report Card

Go-Mocket – Go GORM & SQL Mocking Library

Go-Mocket is a library inspired by DATA-DOG/go-sqlmock.

As an inspiration library, it is the implementation of sql/driver interface but at the same time it follows a different approach and only has a similar API. This library helps to mock any DB connection with jinzhu/gorm, as it was the created to serve this purpose.

List of features in the library:

  • Mock INSERT, UPDATE, SELECT, DELETE
  • Support for transactions
  • 2 API's to use - chaining and via specifying a whole mock object
  • Matching by prepared statements arguments
  • You don't require to change anything inside your code to start using this library
  • Ability to trigger exceptions
  • Attach callbacks to mocked responses to add an additional check or modify a response

NOTE, Please be aware that driver catches SQL without DB specifics. Generation of queries is done by SQL package

Install

go get github.com/Selvatico/go-mocket

Documentation

For detailed usage and examples, look at the Documentation

License

MIT License

Copyright (c) 2017 Seredenko Dmitry

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].