Skip to content

Commit

Permalink
Rerun of CodeGen
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvanstraten committed Sep 14, 2023
1 parent ba6c80c commit 9b28d2a
Show file tree
Hide file tree
Showing 17 changed files with 949 additions and 949 deletions.
10 changes: 5 additions & 5 deletions Sources/SwiftyRedis/CodeGen/Commands/acl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// acl.swift
//
//
// Created by CodeGen on 08.09.23.
// Created by CodeGen on 14.09.23.
//
import Foundation
extension RedisConnection {
Expand Down Expand Up @@ -85,7 +85,7 @@ extension RedisConnection {
/// O(N) with N being the number of entries shown.
/// ## Documentation
/// view the docs for [ACL LOG](https://redis.io/commands/acl-log)
public func acl_log<T: FromRedisValue>(_ operation: AclLogOperation? = nil) async throws -> T {
public func acl_log<T: FromRedisValue>(_ operation: Acllogoperation? = nil) async throws -> T {
let cmd = Cmd("ACL").arg("LOG").arg(operation)
return try await cmd.query(self)
}
Expand All @@ -96,7 +96,7 @@ extension RedisConnection {
/// O(N) with N being the number of entries shown.
/// ## Documentation
/// view the docs for [ACL LOG](https://redis.io/commands/acl-log)
public func acl_log(_ operation: AclLogOperation? = nil) async throws {
public func acl_log(_ operation: Acllogoperation? = nil) async throws {
let cmd = Cmd("ACL").arg("LOG").arg(operation)
try await cmd.exec(self)
}
Expand Down Expand Up @@ -350,7 +350,7 @@ extension RedisPipeline {
/// O(N) with N being the number of entries shown.
/// ## Documentation
/// view the docs for [ACL LOG](https://redis.io/commands/acl-log)
public func acl_log(_ operation: AclLogOperation? = nil) -> Self {
public func acl_log(_ operation: Acllogoperation? = nil) -> Self {
let cmd = Cmd("ACL").arg("LOG").arg(operation)
return self.add_command(cmd)
}
Expand Down Expand Up @@ -457,7 +457,7 @@ extension RedisPipeline {
return self.add_command(cmd)
}
}
public enum AclLogOperation: ToRedisArgs {
public enum Acllogoperation: ToRedisArgs {
case COUNT(Int)
case RESET
public func write_redis_args(out: inout [Data]) {
Expand Down
132 changes: 66 additions & 66 deletions Sources/SwiftyRedis/CodeGen/Commands/client.swift

Large diffs are not rendered by default.

172 changes: 86 additions & 86 deletions Sources/SwiftyRedis/CodeGen/Commands/cluster.swift

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions Sources/SwiftyRedis/CodeGen/Commands/command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// command.swift
//
//
// Created by CodeGen on 08.09.23.
// Created by CodeGen on 14.09.23.
//
import Foundation
extension RedisConnection {
Expand Down Expand Up @@ -35,8 +35,8 @@ extension RedisConnection {
/// O(N) where N is the number of commands to look up
/// ## Documentation
/// view the docs for [COMMAND DOCS](https://redis.io/commands/command-docs)
public func command_docs<T: FromRedisValue>(_ commandName: String...) async throws -> T {
let cmd = Cmd("COMMAND").arg("DOCS").arg(commandName)
public func command_docs<T: FromRedisValue>(_ commandname: String...) async throws -> T {
let cmd = Cmd("COMMAND").arg("DOCS").arg(commandname)
return try await cmd.query(self)
}
/// Get array of specific Redis command documentation
Expand All @@ -46,8 +46,8 @@ extension RedisConnection {
/// O(N) where N is the number of commands to look up
/// ## Documentation
/// view the docs for [COMMAND DOCS](https://redis.io/commands/command-docs)
public func command_docs(_ commandName: String...) async throws {
let cmd = Cmd("COMMAND").arg("DOCS").arg(commandName)
public func command_docs(_ commandname: String...) async throws {
let cmd = Cmd("COMMAND").arg("DOCS").arg(commandname)
try await cmd.exec(self)
}
/// Get total number of Redis commands
Expand Down Expand Up @@ -125,8 +125,8 @@ extension RedisConnection {
/// - 7.0.0, Allowed to be called with no argument to get info on all commands.
/// ## Documentation
/// view the docs for [COMMAND INFO](https://redis.io/commands/command-info)
public func command_info<T: FromRedisValue>(_ commandName: String...) async throws -> T {
let cmd = Cmd("COMMAND").arg("INFO").arg(commandName)
public func command_info<T: FromRedisValue>(_ commandname: String...) async throws -> T {
let cmd = Cmd("COMMAND").arg("INFO").arg(commandname)
return try await cmd.query(self)
}
/// Get array of specific Redis command details, or all when no argument is given.
Expand All @@ -138,8 +138,8 @@ extension RedisConnection {
/// - 7.0.0, Allowed to be called with no argument to get info on all commands.
/// ## Documentation
/// view the docs for [COMMAND INFO](https://redis.io/commands/command-info)
public func command_info(_ commandName: String...) async throws {
let cmd = Cmd("COMMAND").arg("INFO").arg(commandName)
public func command_info(_ commandname: String...) async throws {
let cmd = Cmd("COMMAND").arg("INFO").arg(commandname)
try await cmd.exec(self)
}
/// Get an array of Redis command names
Expand All @@ -149,7 +149,7 @@ extension RedisConnection {
/// O(N) where N is the total number of Redis commands
/// ## Documentation
/// view the docs for [COMMAND LIST](https://redis.io/commands/command-list)
public func command_list<T: FromRedisValue>(_ filterby: CommandListFilterby? = nil) async throws -> T {
public func command_list<T: FromRedisValue>(_ filterby: Commandlistfilterby? = nil) async throws -> T {
let cmd = Cmd("COMMAND").arg("LIST").arg((filterby != nil) ? "FILTERBY" : nil).arg(filterby)
return try await cmd.query(self)
}
Expand All @@ -160,7 +160,7 @@ extension RedisConnection {
/// O(N) where N is the total number of Redis commands
/// ## Documentation
/// view the docs for [COMMAND LIST](https://redis.io/commands/command-list)
public func command_list(_ filterby: CommandListFilterby? = nil) async throws {
public func command_list(_ filterby: Commandlistfilterby? = nil) async throws {
let cmd = Cmd("COMMAND").arg("LIST").arg((filterby != nil) ? "FILTERBY" : nil).arg(filterby)
try await cmd.exec(self)
}
Expand All @@ -184,8 +184,8 @@ extension RedisPipeline {
/// O(N) where N is the number of commands to look up
/// ## Documentation
/// view the docs for [COMMAND DOCS](https://redis.io/commands/command-docs)
public func command_docs(_ commandName: String...) -> Self {
let cmd = Cmd("COMMAND").arg("DOCS").arg(commandName)
public func command_docs(_ commandname: String...) -> Self {
let cmd = Cmd("COMMAND").arg("DOCS").arg(commandname)
return self.add_command(cmd)
}
/// Get total number of Redis commands
Expand Down Expand Up @@ -230,8 +230,8 @@ extension RedisPipeline {
/// - 7.0.0, Allowed to be called with no argument to get info on all commands.
/// ## Documentation
/// view the docs for [COMMAND INFO](https://redis.io/commands/command-info)
public func command_info(_ commandName: String...) -> Self {
let cmd = Cmd("COMMAND").arg("INFO").arg(commandName)
public func command_info(_ commandname: String...) -> Self {
let cmd = Cmd("COMMAND").arg("INFO").arg(commandname)
return self.add_command(cmd)
}
/// Get an array of Redis command names
Expand All @@ -241,12 +241,12 @@ extension RedisPipeline {
/// O(N) where N is the total number of Redis commands
/// ## Documentation
/// view the docs for [COMMAND LIST](https://redis.io/commands/command-list)
public func command_list(_ filterby: CommandListFilterby? = nil) -> Self {
public func command_list(_ filterby: Commandlistfilterby? = nil) -> Self {
let cmd = Cmd("COMMAND").arg("LIST").arg((filterby != nil) ? "FILTERBY" : nil).arg(filterby)
return self.add_command(cmd)
}
}
public enum CommandListFilterby: ToRedisArgs {
public enum Commandlistfilterby: ToRedisArgs {
case MODULE(String)
case ACLCAT(String)
case PATTERN(String)
Expand Down
24 changes: 12 additions & 12 deletions Sources/SwiftyRedis/CodeGen/Commands/config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// config.swift
//
//
// Created by CodeGen on 08.09.23.
// Created by CodeGen on 14.09.23.
//
import Foundation
extension RedisConnection {
Expand Down Expand Up @@ -81,7 +81,7 @@ extension RedisConnection {
/// - 7.0.0, Added the ability to pass multiple pattern parameters in one call
/// ## Documentation
/// view the docs for [CONFIG GET](https://redis.io/commands/config-get)
public func config_get<T: FromRedisValue>(_ parameter: ConfigGetParameter...) async throws -> T {
public func config_get<T: FromRedisValue>(_ parameter: Configgetparameter...) async throws -> T {
let cmd = Cmd("CONFIG").arg("GET").arg(parameter)
return try await cmd.query(self)
}
Expand All @@ -94,7 +94,7 @@ extension RedisConnection {
/// - 7.0.0, Added the ability to pass multiple pattern parameters in one call
/// ## Documentation
/// view the docs for [CONFIG GET](https://redis.io/commands/config-get)
public func config_get(_ parameter: ConfigGetParameter...) async throws {
public func config_get(_ parameter: Configgetparameter...) async throws {
let cmd = Cmd("CONFIG").arg("GET").arg(parameter)
try await cmd.exec(self)
}
Expand All @@ -107,8 +107,8 @@ extension RedisConnection {
/// - 7.0.0, Added the ability to set multiple parameters in one call.
/// ## Documentation
/// view the docs for [CONFIG SET](https://redis.io/commands/config-set)
public func config_set<T: FromRedisValue>(_ parameterValue: ConfigSetParametervalue...) async throws -> T {
let cmd = Cmd("CONFIG").arg("SET").arg(parameterValue)
public func config_set<T: FromRedisValue>(_ parametervalue: Configsetparametervalue...) async throws -> T {
let cmd = Cmd("CONFIG").arg("SET").arg(parametervalue)
return try await cmd.query(self)
}
/// Set configuration parameters to the given values
Expand All @@ -120,8 +120,8 @@ extension RedisConnection {
/// - 7.0.0, Added the ability to set multiple parameters in one call.
/// ## Documentation
/// view the docs for [CONFIG SET](https://redis.io/commands/config-set)
public func config_set(_ parameterValue: ConfigSetParametervalue...) async throws {
let cmd = Cmd("CONFIG").arg("SET").arg(parameterValue)
public func config_set(_ parametervalue: Configsetparametervalue...) async throws {
let cmd = Cmd("CONFIG").arg("SET").arg(parametervalue)
try await cmd.exec(self)
}
}
Expand Down Expand Up @@ -168,7 +168,7 @@ extension RedisPipeline {
/// - 7.0.0, Added the ability to pass multiple pattern parameters in one call
/// ## Documentation
/// view the docs for [CONFIG GET](https://redis.io/commands/config-get)
public func config_get(_ parameter: ConfigGetParameter...) -> Self {
public func config_get(_ parameter: Configgetparameter...) -> Self {
let cmd = Cmd("CONFIG").arg("GET").arg(parameter)
return self.add_command(cmd)
}
Expand All @@ -181,17 +181,17 @@ extension RedisPipeline {
/// - 7.0.0, Added the ability to set multiple parameters in one call.
/// ## Documentation
/// view the docs for [CONFIG SET](https://redis.io/commands/config-set)
public func config_set(_ parameterValue: ConfigSetParametervalue...) -> Self {
let cmd = Cmd("CONFIG").arg("SET").arg(parameterValue)
public func config_set(_ parametervalue: Configsetparametervalue...) -> Self {
let cmd = Cmd("CONFIG").arg("SET").arg(parametervalue)
return self.add_command(cmd)
}
}
public struct ConfigGetParameter: ToRedisArgs {
public struct Configgetparameter: ToRedisArgs {
let parameter: String
public init(_ parameter: String) { self.parameter = parameter }
public func write_redis_args(out: inout [Data]) { parameter.write_redis_args(out: &out) }
}
public struct ConfigSetParametervalue: ToRedisArgs {
public struct Configsetparametervalue: ToRedisArgs {
let parameter: String
let value: String
public init(_ parameter: String, _ value: String) {
Expand Down
Loading

0 comments on commit 9b28d2a

Please sign in to comment.