Skip to content

Commit

Permalink
Updata Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Mauricio Uñate Castro committed Jul 1, 2024
0 parents commit 41839e5
Show file tree
Hide file tree
Showing 48 changed files with 4,518 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Deploy VitePress site to Pages

on:
push:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: npm ci # or pnpm install / yarn install / bun install
- name: Build with VitePress
run: |
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ignore common macOS files and directories
**/.DS_Store

# Ignore automatically generated files and directories
/vendor/
/.fleet
/.idea
/.vscode

# Ignore Composer generated directory and files
/vendor

# Ignore development tool generated files and directories
.fleet
.idea
.vscode
composer.lock

#Node
node_modules
docs/.vitepress/cache
docs/.vitepress/dist
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Raúl Mauricio Uñate Castro

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.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 🚀 SQLServer Lite

![Logo](https://github.com/rmunate/SQLServerLite/assets/91748598/357847a5-917a-47cb-a554-bb6a99e8422d)

If you've ever needed to connect your Laravel project with SQL Server, you may have encountered delays in processing when using the Query Builder or the framework's ORM. These delays could be attributed to the extensive codebase supporting various database engines or other processing overhead.

Furthermore, the lack of support for all SQL Server versions adds to the challenge. To address these issues, this package was developed.

**This library is compatible with PHP +7.4 and Laravel versions 9.0 and higher**

## Documentation
[![📖📖📖 **FULL DOCUMENTATION** 📖📖📖](https://img.shields.io/badge/FULL%20DOCUMENTATION-Visit%20Here-blue?style=for-the-badge)](https://rmunate.github.io/SQLServerLite/)

## Installation
To install the dependency via Composer.

```shell
composer require rmunate/sql-server-lite
```

## License
This project is under the [MIT License](https://choosealicense.com/licenses/mit/).

🌟 Support My Projects! 🚀

[![Become a Sponsor](https://img.shields.io/badge/-Become%20a%20Sponsor-blue?style=for-the-badge&logo=github)](https://github.com/sponsors/rmunate)

Make any contributions you see fit; the code is entirely yours. Together, we can do amazing things and improve the world of development. Your support is invaluable. ✨

If you have ideas, suggestions, or just want to collaborate, we are open to everything! Join our community and be part of our journey to success! 🌐👩‍💻👨‍💻
40 changes: 40 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "rmunate/sql-server-lite",
"description": "Conexión PDO a SQLServer desde PHP estructurado o Laravel",
"keywords": [
"laravel",
"sqlserver",
"sql",
"altum",
"rmunate"
],
"homepage": "https://github.com/rmunate/SQLServerLite",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Rmunate\\SqlServerLite\\": "src/"
}
},
"authors": [
{
"name": "Raul Mauricio Uñate Castro",
"email": "raulmauriciounate@gmail.com",
"role": "owner",
"homepage": "https://github.com/rmunate"
}
],
"require": {
"ext-pdo": "*",
"php": "^7.4|^8.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10"
},
"extra" : {
"branch-alias" : {
"dev-main": "v2.0.x-dev"
}
}
}
117 changes: 117 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
import {defineConfig} from 'vitepress'

export default defineConfig({
title: "SQL Server Lite",
description: "A simple, lightweight, and efficient connection.",
lang: 'en-US',
lastUpdated: false,
base: '/SQLServerLite',
themeConfig: {
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2021-2024 Raul Mauricio Uñate'
},
editLink: {
pattern: 'https://github.com/rmunate/SQLServerLite/tree/main/docs/:path'
},
logo: '/img/favicon.svg',
nav: [
{text: 'v2.2', link: '/'},
],
sidebar: [
{
text: 'Getting Started',
collapsed: false,
items: [
{text: 'Introduction', link: '/getting-started/introduction'},
{text: 'Installation', link: '/getting-started/installation'},
{text: 'Drivers Windows', link: '/getting-started/windows'},
{text: 'Drivers Linux', link: '/getting-started/linux'},
{text: 'Drivers IOS', link: '/getting-started/mac'},
{text: 'Release Notes', link: '/getting-started/changelog'},
]
}, {
text: 'Usage',
collapsed: false,
items: [
{text: 'Connection', link: '/usage/connection'},
{text: 'Attributes', link: '/usage/attributes'},
{text: 'Transaction Control', link: '/usage/transaction-control'},
{text: 'Insert', link: '/usage/insert'},
{text: 'Update', link: '/usage/update'},
{text: 'Delete', link: '/usage/delete'},
{text: 'Select', link: '/usage/select'},
{text: 'Stored Procedures', link: '/usage/stored-procedures'},
{text: 'Final Methods', link: '/usage/final-methods'},
]
}, {
text: 'Contribute',
collapsed: false,
items: [
{text: 'Bug Report', link: 'contribute/report-bugs'},
{text: 'Contribution', link: 'contribute/contribution'}
]
}
],

socialLinks: [
{icon: 'github', link: 'https://github.com/rmunate/SQLServerLite'}
],
search: {
provider: 'local'
}
},
head: [
['link', {
rel: 'stylesheet',
href: '/SQLServerLite/css/style.css'
}
],
['link', {
rel: 'icon',
href: '/SQLServerLite/img/logo.svg',
type: 'image/png'
}
],
['meta', {
property: 'og:image',
content: '/SQLServerLite/img/logo-github.png'
}
],
['meta', {
property: 'og:image:secure_url',
content: '/SQLServerLite/img/logo-github.png'
}
],
['meta', {
property: 'og:image:width',
content: '600'
}
],
['meta', {
property: 'og:image:height',
content: '400'
}
],
['meta', {
property: 'og:title',
content: 'SQLServerLite'
}
],
['meta', {
property: 'og:description',
content: 'A simple, lightweight, and efficient connection.! 🚀'
}
],
['meta', {
property: 'og:url',
content: 'https://rmunate.github.io/SQLServerLite/'
}
],
['meta', {
property: 'og:type',
content: 'website'
}
],
],
})
43 changes: 43 additions & 0 deletions docs/contribute/contribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: Contributing
editLink: true
outline: deep
---

<script setup>
import { VPTeamMembers } from 'vitepress/theme'

const members = [
{
avatar: 'https://avatars.githubusercontent.com/u/91748598?v=4',
name: 'Raúl Mauricio Uñate Castro',
title: 'Creator | Bogotá DC - Colombia',
links: [
{ icon: 'github', link: 'https://github.com/rmunate'},
{ icon: 'linkedin', link: 'https://www.linkedin.com/in/raul-mauricio-unate-castro/' },
{ icon: 'facebook', link: 'https://www.facebook.com/people/Code-Maestro/100093438305767/' },
{ icon: 'instagram', link: 'https://www.instagram.com/code.maestro/' },
{ icon: 'twitter', link: 'https://twitter.com/rmunate' },
]
}
]
</script>

# Contributing

If you want to add support for a new language or want to develop new features, you can submit your requests to the main branch of the repository.

## Contributors

<VPTeamMembers size="small" :members="members" />

## License
This project is under the [MIT License](https://choosealicense.com/licenses/mit/).

🌟 Support My Projects! 🚀

[![Become a Sponsor](https://img.shields.io/badge/-Become%20a%20Sponsor-blue?style=for-the-badge&logo=github)](https://github.com/sponsors/rmunate)

Make any contributions you see fit; the code is entirely yours. Together, we can do amazing things and improve the world of development. Your support is invaluable. ✨

If you have ideas, suggestions, or just want to collaborate, we are open to everything! Join our community and be part of our journey to success! 🌐👩‍💻👨‍💻
14 changes: 14 additions & 0 deletions docs/contribute/report-bugs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Bug Report
editLink: true
outline: deep
---

# Bug Report

If you find errors or opportunities within the package, you can create an incident that we will attend to in the shortest time possible.

Here!:
[https://github.com/rmunate/SQLServerLite/issues/new](https://github.com/rmunate/SQLServerLite/issues/new)

Remember that you can also contribute as a collaborator of this solution.
25 changes: 25 additions & 0 deletions docs/getting-started/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Release Notes
editLink: true
outline: deep
---

# Release Notes

## [2.0.0]

### Added

- **Singleton**: Starting from version 2.0, it is guaranteed to work with the singleton architecture, ensuring a single instance of a persistent connection.

- **Exception Handling**: The way exceptions are thrown has been rewritten for improved readability and clarity.

- **Params**: The usage of params has been refined through a fluent method.

### Changed

- **Final Methods**: The final methods for returning values have been completely redefined.

### Removed

- **Wrappers**: Wrappers for pre-existing package methods have been removed, and no support will be provided for previous versions.
Loading

0 comments on commit 41839e5

Please sign in to comment.