Skip to content

Commit

Permalink
chore: rename all sqlite occurences to mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
lejoko committed May 15, 2024
1 parent 23e8f86 commit f972c0e
Show file tree
Hide file tree
Showing 99 changed files with 883 additions and 883 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ erl_crash.dump
*.ez

# Ignore package tarball (built via "mix hex.build").
ash_sqlite-*.tar
ash_mysql-*.tar

test_migration_path
test_snapshots_path
Expand Down
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline

<!-- changelog -->

## [v0.1.2](https://github.com/ash-project/ash_sqlite/compare/v0.1.2-rc.1...v0.1.2) (2024-05-11)
## [v0.1.2](https://github.com/ash-project/ash_mysql/compare/v0.1.2-rc.1...v0.1.2) (2024-05-11)




## [v0.1.2-rc.1](https://github.com/ash-project/ash_sqlite/compare/v0.1.2-rc.0...v0.1.2-rc.1) (2024-05-06)
## [v0.1.2-rc.1](https://github.com/ash-project/ash_mysql/compare/v0.1.2-rc.0...v0.1.2-rc.1) (2024-05-06)



Expand All @@ -19,13 +19,13 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline

* properly scope deletes to the records in question

* update ash_sqlite to get `ilike` behavior fix
* update ash_mysql to get `ilike` behavior fix

### Improvements:

* support `contains` function

## [v0.1.2-rc.0](https://github.com/ash-project/ash_sqlite/compare/v0.1.1...v0.1.2-rc.0) (2024-04-15)
## [v0.1.2-rc.0](https://github.com/ash-project/ash_mysql/compare/v0.1.1...v0.1.2-rc.0) (2024-04-15)



Expand All @@ -42,7 +42,7 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline

* fix datetime migration type discovery

## [v0.1.1](https://github.com/ash-project/ash_sqlite/compare/v0.1.0...v0.1.1) (2023-10-12)
## [v0.1.1](https://github.com/ash-project/ash_mysql/compare/v0.1.0...v0.1.1) (2023-10-12)



Expand All @@ -53,9 +53,9 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline

* support query aggregates

## [v0.1.0](https://github.com/ash-project/ash_sqlite/compare/v0.1.0...v0.1.0) (2023-10-12)
## [v0.1.0](https://github.com/ash-project/ash_mysql/compare/v0.1.0...v0.1.0) (2023-10-12)


### Improvements:

* Port and adjust `AshPostgres` to `AshSqlite`
* Port and adjust `AshPostgres` to `AshMysql`
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
![Logo](https://github.com/ash-project/ash/blob/main/logos/cropped-for-header-black-text.png?raw=true#gh-light-mode-only)
![Logo](https://github.com/ash-project/ash/blob/main/logos/cropped-for-header-white-text.png?raw=true#gh-dark-mojde-only)

[![CI](https://github.com/ash-project/ash_sqlite/actions/workflows/elixir.yml/badge.svg)](https://github.com/ash-project/ash_sqlite/actions/workflows/elixir.yml)
[![CI](https://github.com/ash-project/ash_mysql/actions/workflows/elixir.yml/badge.svg)](https://github.com/ash-project/ash_mysql/actions/workflows/elixir.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Hex version badge](https://img.shields.io/hexpm/v/ash_sqlite.svg)](https://hex.pm/packages/ash_sqlite)
[![Hexdocs badge](https://img.shields.io/badge/docs-hexdocs-purple)](https://hexdocs.pm/ash_sqlite)
[![Hex version badge](https://img.shields.io/hexpm/v/ash_mysql.svg)](https://hex.pm/packages/ash_mysql)
[![Hexdocs badge](https://img.shields.io/badge/docs-hexdocs-purple)](https://hexdocs.pm/ash_mysql)

# AshSqlite
# AshMysql

Welcome! `AshSqlite` is the SQLite data layer for [Ash Framework](https://hexdocs.pm/ash).
Welcome! `AshMysql` is the MySQL data layer for [Ash Framework](https://hexdocs.pm/ash).

## Tutorials

- [Get Started](documentation/tutorials/getting-started-with-ash-sqlite.md)
- [Get Started](documentation/tutorials/getting-started-with-ash-mysql.md)

## Topics

- [What is AshSqlite?](documentation/topics/about-ash-sqlite/what-is-ash-sqlite.md)
- [What is AshMysql?](documentation/topics/about-ash-mysql/what-is-ash-mysql.md)

### Resources

Expand All @@ -35,4 +35,4 @@ Welcome! `AshSqlite` is the SQLite data layer for [Ash Framework](https://hexdoc

## Reference

- [AshSqlite.DataLayer DSL](documentation/dsls/DSL:-AshSqlite.DataLayer.md)
- [AshMysql.DataLayer DSL](documentation/dsls/DSL:-AshMysql.DataLayer.md)
26 changes: 13 additions & 13 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import Config

if Mix.env() == :dev do
config :git_ops,
mix_project: AshSqlite.MixProject,
mix_project: AshMysql.MixProject,
changelog_file: "CHANGELOG.md",
repository_url: "https://github.com/ash-project/ash_sqlite",
repository_url: "https://github.com/ash-project/ash_mysql",
# Instructs the tool to manage your mix version in your `mix.exs` file
# See below for more information
manage_mix_version?: true,
# Instructs the tool to manage the version in your README.md
# Pass in `true` to use `"README.md"` or a string to customize
manage_readme_version: [
"README.md",
"documentation/tutorials/getting-started-with-ash-sqlite.md"
"documentation/tutorials/getting-started-with-ash-mysql.md"
],
version_tag_prefix: "v"
end
Expand All @@ -21,33 +21,33 @@ if Mix.env() == :test do
config :ash, :validate_domain_resource_inclusion?, false
config :ash, :validate_domain_config_inclusion?, false

config :ash_sqlite, AshSqlite.TestRepo,
config :ash_mysql, AshMysql.TestRepo,
username: "root",
database: "ash_mysql_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox

# sobelow_skip ["Config.Secrets"]
config :ash_sqlite, AshSqlite.TestRepo, password: "root"
config :ash_mysql, AshMysql.TestRepo, password: "root"

config :ash_sqlite, AshSqlite.TestRepo, migration_primary_key: [name: :id, type: :binary_id]
config :ash_mysql, AshMysql.TestRepo, migration_primary_key: [name: :id, type: :binary_id]

config :ash_sqlite, AshSqlite.TestNoSandboxRepo,
config :ash_mysql, AshMysql.TestNoSandboxRepo,
username: "root",
database: "ash_mysql_test",
hostname: "localhost"

# sobelow_skip ["Config.Secrets"]
config :ash_sqlite, AshSqlite.TestNoSandboxRepo, password: "root"
config :ash_mysql, AshMysql.TestNoSandboxRepo, password: "root"

config :ash_sqlite, AshSqlite.TestNoSandboxRepo,
config :ash_mysql, AshMysql.TestNoSandboxRepo,
migration_primary_key: [name: :id, type: :binary_id]

# ecto_repos: [AshSqlite.TestRepo, AshSqlite.TestNoSandboxRepo],
config :ash_sqlite,
ecto_repos: [AshSqlite.TestRepo],
# ecto_repos: [AshMysql.TestRepo, AshMysql.TestNoSandboxRepo],
config :ash_mysql,
ecto_repos: [AshMysql.TestRepo],
ash_domains: [
AshSqlite.Test.Domain
AshMysql.Test.Domain
]

config :logger, level: :debug
Expand Down
Loading

0 comments on commit f972c0e

Please sign in to comment.